APM:Libraries
Macros | Functions
boards.cpp File Reference
#include "boards.h"
#include <usb.h>
Include dependency graph for boards.cpp:

Go to the source code of this file.

Macros

#define PLL_M   8
 
#define PLL_N   168
 
#define PLL_P   2
 
#define PLL_Q   7
 

Functions

static void setupNVIC (void)
 Generic board initialization routines. More...
 
static void enableFPU (void)
 
static void setupCCM (void)
 
void setupADC (void)
 
void setupTimers (void)
 
void usb_init (void)
 
void board_set_rtc_register (uint32_t sig, uint16_t reg)
 
uint32_t board_get_rtc_register (uint16_t reg)
 
void init (void)
 Generic board initialization function. More...
 
void pre_init ()
 
void emerg_delay (uint32_t n)
 
void NMI_Handler ()
 

Macro Definition Documentation

◆ PLL_M

#define PLL_M   8

Referenced by NMI_Handler().

◆ PLL_N

#define PLL_N   168

◆ PLL_P

#define PLL_P   2

◆ PLL_Q

#define PLL_Q   7

Referenced by NMI_Handler().

Function Documentation

◆ board_get_rtc_register()

uint32_t board_get_rtc_register ( uint16_t  reg)

Definition at line 151 of file boards.cpp.

Referenced by HAL_F4Light::HAL_F4Light(), F4Light::DSM_parser::init(), init(), HAL_F4Light::lateInit(), and HAL_F4Light::run().

Here is the caller graph for this function:

◆ board_set_rtc_register()

void board_set_rtc_register ( uint32_t  sig,
uint16_t  reg 
)

Definition at line 141 of file boards.cpp.

Referenced by F4Light::Scheduler::_reboot(), F4Light::Scheduler::_try_kill_task_or_reboot(), F4Light::DSM_parser::init(), init(), HAL_F4Light::lateInit(), HAL_F4Light::run(), F4Light::Scheduler::system_initialized(), and VCP_DataRx().

Here is the caller graph for this function:

◆ emerg_delay()

void emerg_delay ( uint32_t  n)

Definition at line 257 of file boards.cpp.

Referenced by __attribute__(), is_bare_metal(), and NMI_Handler().

Here is the caller graph for this function:

◆ enableFPU()

static INLINE void enableFPU ( void  )
static

Definition at line 68 of file boards.cpp.

Referenced by init().

Here is the caller graph for this function:

◆ init()

void init ( void  )
inline

Generic board initialization function.

This function is called before main(). It ensures that the clocks and peripherals are configured properly for use with wirish, then calls boardInit().

See also
boardInit()

Definition at line 165 of file boards.cpp.

Referenced by pre_init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ NMI_Handler()

void NMI_Handler ( void  )

Definition at line 269 of file boards.cpp.

Referenced by is_bare_metal().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pre_init()

void pre_init ( void  )

Definition at line 250 of file boards.cpp.

Here is the call graph for this function:

◆ setupADC()

void setupADC ( void  )

◆ setupCCM()

static INLINE void setupCCM ( void  )
static

Definition at line 83 of file boards.cpp.

Referenced by pre_init().

Here is the caller graph for this function:

◆ setupNVIC()

static INLINE void setupNVIC ( void  )
static

Generic board initialization routines.

Definition at line 123 of file boards.cpp.

Referenced by init().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setupTimers()

void setupTimers ( void  )

◆ usb_init()

void usb_init ( void  )

Definition at line 51 of file boards.cpp.

Referenced by HAL_F4Light::run().

Here is the call graph for this function:
Here is the caller graph for this function: