ChibiOS/RT
Macros | Functions | Variables
ChibiOS_ARM.h File Reference

ChibiOS for Due and Teensy 3.0. More...

#include <utility/ch.h>
#include <utility/hal.h>
Include dependency graph for ChibiOS_ARM.h:
This graph shows which files directly or indirectly include this file:

Macros

#define CHIBIOS_ARM_VERSION   20151117
 
#define HANDLER_STACK_SIZE   100
 
#define MEMORY_FILL_PATTERN   0X55555555UL
 

Functions

void chBegin (void(*mainThread)())
 
size_t chHandlerStackSize ()
 
size_t chHeapMainSize ()
 
size_t chUnusedHandlerStack ()
 
size_t chUnusedHeapMain ()
 
size_t chUnusedStack (void *wsp, size_t size)
 

Variables

unsigned long _ebss
 
unsigned long _estack
 

Detailed Description

ChibiOS for Due and Teensy 3.0.

Macro Definition Documentation

#define CHIBIOS_ARM_VERSION   20151117

ChibiOS_ARM version YYYYMMDD

#define HANDLER_STACK_SIZE   100

number of 32-bit entries in main stack

#define MEMORY_FILL_PATTERN   0X55555555UL

fill pattern for heap, process stack, and main stack

Function Documentation

void chBegin ( void(*)()  mainThread)

Start ChibiOS/RT - does not return

Parameters
[in]mainThreadFunction to be called before repeated calls to loop().
size_t chHandlerStackSize ( )
inline
Returns
size of Handler stack in bytes
size_t chHeapMainSize ( )
inline
Returns
size of heap/loop stack in bytes
size_t chUnusedHandlerStack ( )

Determine unused bytes in the handler stack area

Returns
number of unused bytes
size_t chUnusedHeapMain ( )

Determine unused bytes in the heap/main stack area

Returns
number of unused bytes

Determine unused bytes in the heap/loop stack area

Returns
number of unused bytes
size_t chUnusedStack ( void *  wsp,
size_t  size 
)

Determine unused stack for a thread

Parameters
[in]wsppointer to working space for thread
[in]sizeworking space size
Returns
number of unused stack locations

Variable Documentation

unsigned long _ebss

end of bss section

unsigned long _estack

end of heap/stack area