Data Structures | |
struct | task_entry_t |
Startup task table. More... | |
Defines | |
#define | HANDLE void |
#define | NULL 0 |
Typedefs | |
typedef signed char | int8 |
typedef unsigned char | uint8 |
typedef signed short | int16 |
typedef unsigned short | uint16 |
typedef signed long | int32 |
typedef unsigned long | uint32 |
Enumerations | |
enum | STATUS { SYS_OK, SYS_ERROR, SYS_IDLE, SYS_MBX, SYS_SEM, SYS_RESUMED, SYS_TOUT, SYS_MBX_TOUT, SYS_SEM_TOUT, SYS_NONE } |
System calls return and task entry codes. More... | |
Functions | |
void | uSMARTX_Init (task_entry_t *ptbl) |
uSMARTX kernel initialisation function | |
STATUS | uSMARTX_Scheduler (void) |
Task scheduler. | |
void | uSMARTX_Tick (void) |
uSMARTX system tick | |
size_t | INT_Disable (void) |
Globaly disable interrupts. | |
void | INT_Enable (void) |
Globaly enable interrupts. | |
void | INT_Restore (size_t flags) |
Restore status of interrupts. |
|
|
Globaly disable interrupts. This function globaly disables interrupts and returns the state of global interrupts flags before disabling interrupts. This value can later be used by calling INT_Restore() function to restore the state of interrupts disable flags.
|
|
Globaly enable interrupts. This function globaly enables interrupts.
|
|
Restore status of interrupts. This function restore the status of interrupts to the given state. Usually this function is used in conjunction with INT_Disable() function.
|
|
uSMARTX kernel initialisation function The uSmartX kernel must initialise its internal structures and tasks. Priori to start the system and call the scheduler for the first time this function must be called.
|
|
Task scheduler.
|
|
uSMARTX system tick This function takes care of the kernel system tick evaluation. Put this function where you will be incrementing your system tick. Normally this is placed in a timer ISR rutine.
|