FreeRTOS C-Addons
1.1.0
C-Addon functionality to FreeRTOS
|
#include "slist.h"
Go to the source code of this file.
Data Structures | |
struct | Stack_t_ |
Macros | |
#define | IsStackEmpty(_stack) ((_stack)->Count == 0) |
Typedefs | |
typedef struct Stack_t_ | Stack_t |
Functions | |
void | InitStack (Stack_t *Stack) |
void | PushOnStack (Stack_t *Stack, SlNode_t *Node) |
SlNode_t * | PopOffStack (Stack_t *Stack) |
#define IsStackEmpty | ( | _stack | ) | ((_stack)->Count == 0) |
Definition at line 101 of file stack_simple.h.
The stack structure, we leverage low overhead singly linked lists here.
void InitStack | ( | Stack_t * | Stack | ) |
Initialize a Stack structure you provide.
Stack | Pointer to your stack structure. |
Definition at line 44 of file stack_simple.c.
Pop an item off the stack.
Note that you have to have embedded an SListNode inside your data structure.
Stack | Pointer to your stack structure. |
Definition at line 65 of file stack_simple.c.
Push an item onto the stack.
Note that you have to have embedded an SListNode inside your data structure.
Stack | Pointer to your stack structure. |
Node | The SListNode you want on the stack. |
Definition at line 51 of file stack_simple.c.