Electronics and Software
Engineering Innovation
ArmsysApi  0.12.18

#include <BSys.h>

Public Member Functions

 BSys ()
 
void init ()
 Initialise system with optional system tick. More...
 
void setTaskHeap (void *base, size_t length)
 Optionaly set the tasks heap and stack. More...
 
void reset (Bool bootLoader=0)
 Reset the system. More...
 
void start ()
 Start timers, interrupts etc. More...
 
void run (FuncRun func=0, BUInt stackSize=1024)
 Run RTOS system by starting scheduler. More...
 
UInt32 timeUs ()
 Return the time in microseconds. More...
 
void timeUsReset ()
 Reset system time. More...
 
void systemStatePrint ()
 Print the system state. More...
 
void taskStatsPrint (Bool fromPrev=0, Bool noPrint=0)
 Print information on the tasks running. More...
 

Public Attributes

BDevices devices
 Device power and clock control. More...
 
BInterrupt interrupts
 Interrupts. More...
 
BHeap taskHeap
 Optional heap for task data and stacks. More...
 

Static Public Attributes

static Bool rtosRunning = 0
 The RTOS is running. More...
 

Private Attributes

BTim otimer
 

Constructor & Destructor Documentation

◆ BSys()

BSys::BSys ( )

Member Function Documentation

◆ init()

void BSys::init ( )

Initialise system with optional system tick.

◆ reset()

void BSys::reset ( Bool  bootLoader = 0)

Reset the system.

◆ run()

void BSys::run ( FuncRun  func = 0,
BUInt  stackSize = 1024 
)

Run RTOS system by starting scheduler.

◆ setTaskHeap()

void BSys::setTaskHeap ( void *  base,
size_t  length 
)

Optionaly set the tasks heap and stack.

◆ start()

void BSys::start ( )

Start timers, interrupts etc.

◆ systemStatePrint()

void BSys::systemStatePrint ( )

Print the system state.

◆ taskStatsPrint()

void BSys::taskStatsPrint ( Bool  fromPrev = 0,
Bool  noPrint = 0 
)

Print information on the tasks running.

◆ timeUs()

UInt32 BSys::timeUs ( )

Return the time in microseconds.

◆ timeUsReset()

void BSys::timeUsReset ( )

Reset system time.

Member Data Documentation

◆ devices

BDevices BSys::devices

Device power and clock control.

◆ interrupts

BInterrupt BSys::interrupts

Interrupts.

◆ otimer

BTim BSys::otimer
private

◆ rtosRunning

Bool BSys::rtosRunning = 0
static

The RTOS is running.

◆ taskHeap

BHeap BSys::taskHeap

Optional heap for task data and stacks.


The documentation for this class was generated from the following files: