SikendeRTOS
RTOS for ARM Cortex M3+ SoCs designed and written from scratch
Switch.c File Reference

Board Switch setup for TM4c123. More...

#include "tm4c123gh6pm.h"
#include "OS.h"
#include "Switch.h"
Include dependency graph for Switch.c:

Go to the source code of this file.

Macros

#define SW1   0x10
 
#define SW2   0x01
 

Functions

void SW1_Init (void(*task)(void), uint32_t priority)
 
void SW2_Init (void(*task)(void), uint32_t priority)
 
void SW1_Debounce (void)
 
void SW2_Debounce (void)
 
void GPIOPortF_Handler (void)
 

Variables

void(* SW1_Task )(void)
 
void(* SW2_Task )(void)
 
uint32_t SW1_Priority
 
uint32_t SW2_Priority
 
uint32_t SW1_LastState
 
uint32_t SW2_LastState
 

Detailed Description

Board Switch setup for TM4c123.

Author
Sijin Woo (https://github.com/SijWoo)

Definition in file Switch.c.

Macro Definition Documentation

◆ SW1

#define SW1   0x10

Definition at line 11 of file Switch.c.

◆ SW2

#define SW2   0x01

Definition at line 12 of file Switch.c.

Function Documentation

◆ GPIOPortF_Handler()

void GPIOPortF_Handler ( void  )

Definition at line 93 of file Switch.c.

Here is the call graph for this function:

◆ SW1_Debounce()

void SW1_Debounce ( void  )

Definition at line 77 of file Switch.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SW1_Init()

void SW1_Init ( void(*)(void)  task,
uint32_t  priority 
)

Definition at line 23 of file Switch.c.

Here is the caller graph for this function:

◆ SW2_Debounce()

void SW2_Debounce ( void  )

Definition at line 85 of file Switch.c.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ SW2_Init()

void SW2_Init ( void(*)(void)  task,
uint32_t  priority 
)

Definition at line 48 of file Switch.c.

Here is the caller graph for this function:

Variable Documentation

◆ SW1_LastState

uint32_t SW1_LastState

Definition at line 20 of file Switch.c.

◆ SW1_Priority

uint32_t SW1_Priority

Definition at line 17 of file Switch.c.

◆ SW1_Task

void(* SW1_Task) (void) ( void  )

Definition at line 14 of file Switch.c.

◆ SW2_LastState

uint32_t SW2_LastState

Definition at line 21 of file Switch.c.

◆ SW2_Priority

uint32_t SW2_Priority

Definition at line 18 of file Switch.c.

◆ SW2_Task

void(* SW2_Task) (void) ( void  )

Definition at line 15 of file Switch.c.