Account
ArmsysApi 0.12.18 |
Public Member Functions | Public Attributes | Static Public Attributes | Private Attributes | List of all members
BSys Class Reference
#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... | |
BUInt32 | clockUs () |
Simple 32bit microsecond clock. More... | |
BUInt64 | timeUs () |
Return the time in microseconds. More... | |
void | timeUsSet (BUInt64 timeUs) |
Sets the system time. More... | |
void | timeUsAdjust (BInt32 timeUs) |
Adjusts the 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 |
BUInt64 | otimeUsBase |
The base time in microseconds. More... | |
BUInt64 | otimeUsLast |
The last time in microseconds. More... | |
Constructor & Destructor Documentation
◆ BSys()
BSys::BSys | ( | ) |
Member Function Documentation
◆ clockUs()
BUInt32 BSys::clockUs | ( | ) |
Simple 32bit microsecond clock.
◆ init()
void BSys::init | ( | ) |
Initialise system with optional system tick.
◆ reset()
void BSys::reset | ( | Bool | bootLoader = 0 | ) |
Reset the system.
◆ run()
◆ 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()
Print information on the tasks running.
◆ timeUs()
BUInt64 BSys::timeUs | ( | ) |
Return the time in microseconds.
◆ timeUsAdjust()
void BSys::timeUsAdjust | ( | BInt32 | timeUs | ) |
Adjusts the system time.
◆ timeUsSet()
void BSys::timeUsSet | ( | BUInt64 | timeUs | ) |
Sets the system time.
Member Data Documentation
◆ devices
BDevices BSys::devices |
Device power and clock control.
◆ interrupts
BInterrupt BSys::interrupts |
Interrupts.
◆ otimer
| private |
◆ otimeUsBase
| private |
The base time in microseconds.
◆ otimeUsLast
| private |
The last time in microseconds.
◆ rtosRunning
| 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:
Generated by 1.8.15