NinjaFlight
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
system.c File Reference
#include <string.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
#include <platform.h>
#include "build_config.h"
#include "gpio.h"
#include "light_led.h"
#include "sound_beeper.h"
#include "nvic.h"
#include "serial.h"
#include "serial_uart.h"
#include "system.h"
Include dependency graph for system.c:

Data Structures

struct  extiCallbackHandlerConfig_s
 

Macros

#define EXTI_CALLBACK_HANDLER_COUNT   1
 
#define SHORT_FLASH_DURATION   50
 
#define CODE_FLASH_DURATION   250
 

Typedefs

typedef struct
extiCallbackHandlerConfig_s 
extiCallbackHandlerConfig_t
 

Functions

void registerExtiCallbackHandler (int irqn, extiCallbackHandlerFunc *fn)
 
void unregisterExtiCallbackHandler (int irqn, extiCallbackHandlerFunc *fn)
 
void EXTI15_10_IRQHandler (void)
 
void SysTick_Handler (void)
 
uint32_t micros (void)
 
uint32_t millis (void)
 
void systemInit (void)
 
void usleep (uint32_t us)
 
void failureMode (failureMode_e mode)
 

Variables

uint32_t cachedRccCsrValue
 

Macro Definition Documentation

#define CODE_FLASH_DURATION   250
#define EXTI_CALLBACK_HANDLER_COUNT   1
#define SHORT_FLASH_DURATION   50

Typedef Documentation

Function Documentation

void EXTI15_10_IRQHandler ( void  )
void failureMode ( failureMode_e  mode)

Here is the call graph for this function:

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 SysTick_Handler ( void  )
void unregisterExtiCallbackHandler ( int  irqn,
extiCallbackHandlerFunc fn 
)
void usleep ( uint32_t  us)

Here is the call graph for this function:

Variable Documentation

uint32_t cachedRccCsrValue