Netcruzer RTOS Fibers. More...
Go to the source code of this file.
Data Structures | |
struct | FIBER_TCB_ |
struct | NZOS_FIBER_INFO_ |
Macros | |
#define | __INLINE_FUNCTION__ extern inline __attribute__((always_inline)) |
#define | nzosFIBER_LEVELS ( 2 ) |
#define | nzFbrSchedule(pFbrTCB) |
Typedefs | |
typedef struct FIBER_TCB_ | FIBER_TCB |
typedef struct NZOS_FIBER_INFO_ | NZOS_FIBER_INFO |
Functions | |
WORD | nzFbrCreate (BYTE level, BOOL highPriority, void(*ptrFiber)(void), FIBER_TCB *fbrTcb) |
Variables | |
NZOS_FIBER_INFO | zvFbrInfo |
Netcruzer RTOS Fibers.
Netcruzer RTOS Functions
The following defines are used to configure this module, and should be placed in projdefs.h. Note that all items marked [-DEFAULT-] are defaults, and do not have to be placed in projdefs.h if they contain desired configuration! For details, see Project Configuration.
Software License Agreement
The software supplied herewith is owned by Modtronix Engineering, and is protected under applicable copyright laws. The software supplied herewith is intended and supplied to you, the Company customer, for use solely and exclusively on products manufactured by Modtronix Engineering. The code may be modified and can be used free of charge for commercial and non commercial applications. All rights are reserved. Any use in violation of the foregoing restrictions may subject the user to criminal sanctions under applicable laws, as well as to civil liability for the breach of the terms and conditions of this license.
THIS SOFTWARE IS PROVIDED IN AN 'AS IS' CONDITION. NO WARRANTIES, WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER.
File History
2014-02-02, David H. (DH):
#define nzFbrSchedule | ( | pFbrTCB) |
Schedule the fiber to run once. This call can be made from an ISR or Task. The fiber will be run as soon as there are no priority 2-7 interrups pending or being executed.
pFbrTCB | Pointer to the Fiber TCB of the fiber to schedule for running. |
WORD nzFbrCreate | ( | BYTE | level, |
BOOL | highPriority, | ||
void(*)(void) | ptrFiber, | ||
FIBER_TCB * | fbrTcb | ||
) |
Creates a fiber. To run the created fiber, call nzFbrSchedule() function. The nzosFIBER_LEVELS define defines how many Fiber levels there are. Each level has 8 fibers of incementing priority. The higher the level, the higher the priority. So, if the system is configured for 4 levels, there can be a total of 32 (4x8) fibers.
level | The fiber level, a value from 1 to nzosFIBER_LEVELS. |
highPriority | TRUE if the created fiber must have the highest priority available in the given level. If FALSE, it will be given the lowest available priority for the given level. |
ptrFiber | Pointer to fiber function. |
fbrTcb | Pointer to FIBER_TCB |