discoverpixy
Functions
System

Functions

bool system_init ()
 
void system_delay (uint32_t msec)
 
void system_process ()
 
void system_toggle_led ()
 

Detailed Description

The System Module provides access to delay functions, leds and provides a system init function

Function Documentation

void system_delay ( uint32_t  msec)

Sleeps for a certain amount of time

Parameters
msecThe number of milliseconds to sleep

Definition at line 26 of file system.c.

27 {
28  ll_system_delay(msec);
29 }
void ll_system_delay(uint32_t msec)

Here is the call graph for this function:

bool system_init ( )

Initializes the system. Call this method at the start of your app_init() function and before using any system_* functions

Returns
true on success

Definition at line 21 of file system.c.

22 {
23  return ll_system_init();
24 }
bool ll_system_init()

Here is the call graph for this function:

Here is the caller graph for this function:

void system_process ( )

Executes pending system events (like handling usb, timers etc). Call this somewhere in app_process().

Definition at line 31 of file system.c.

32 {
34 }
void ll_system_process()

Here is the call graph for this function:

Here is the caller graph for this function:

void system_toggle_led ( )

Toggles a Status Led. Use this function for debugging or to show activity

Definition at line 36 of file system.c.

37 {
39 }
void ll_system_toggle_led()

Here is the call graph for this function: