NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
system.h File Reference
#include <stdbool.h>
Include dependency graph for system.h:

Go to the source code of this file.

Typedefs

typedef void extiCallbackHandlerFunc (void)
 

Enumerations

enum  failureMode_e {
  FAILURE_DEVELOPER = 0, FAILURE_MISSING_ACC, FAILURE_ACC_INIT, FAILURE_ACC_INCOMPATIBLE,
  FAILURE_INVALID_EEPROM_CONTENTS, FAILURE_FLASH_WRITE_FAILED, FAILURE_GYRO_INIT_FAILED
}
 

Functions

void systemInit (void)
 
void usleep (uint32_t us)
 
uint32_t micros (void)
 
uint32_t millis (void)
 
void failureMode (uint8_t mode)
 
void systemReset (void)
 
void systemResetToBootloader (void)
 
bool isMPUSoftReset (void)
 
void enableGPIOPowerUsageAndNoiseReductions (void)
 
void registerExtiCallbackHandler (int irqn, extiCallbackHandlerFunc *fn)
 
void unregisterExtiCallbackHandler (int irqn, extiCallbackHandlerFunc *fn)
 

Variables

uint32_t hse_value
 
uint32_t cachedRccCsrValue
 

Typedef Documentation

typedef void extiCallbackHandlerFunc(void)

Enumeration Type Documentation

Enumerator
FAILURE_DEVELOPER 
FAILURE_MISSING_ACC 
FAILURE_ACC_INIT 
FAILURE_ACC_INCOMPATIBLE 
FAILURE_INVALID_EEPROM_CONTENTS 
FAILURE_FLASH_WRITE_FAILED 
FAILURE_GYRO_INIT_FAILED 

Function Documentation

void enableGPIOPowerUsageAndNoiseReductions ( void  )

Here is the call graph for this function:

void failureMode ( uint8_t  mode)
bool isMPUSoftReset ( void  )
uint32_t micros ( void  )
uint32_t millis ( void  )
void registerExtiCallbackHandler ( int  irqn,
extiCallbackHandlerFunc fn 
)

Here is the call graph for this function:

void systemInit ( void  )

Here is the call graph for this function:

void systemReset ( void  )
void systemResetToBootloader ( void  )

Here is the call graph for this function:

void unregisterExtiCallbackHandler ( int  irqn,
extiCallbackHandlerFunc fn 
)
void usleep ( uint32_t  us)

Here is the call graph for this function:

Variable Documentation

uint32_t cachedRccCsrValue
uint32_t hse_value