|
Paparazzi UAS
v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
|
stm32 arch dependant microcontroller initialisation functions. More...
#include "std.h"
Include dependency graph for mcu_arch.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | MyByteSwap16(in, out) |
| #define | mcu_int_enable() {} |
| #define | mcu_int_disable() {} |
Functions | |
| void | mcu_arch_init (void) |
| uint32_t | timer_get_frequency (uint32_t timer_peripheral) |
| Get Timer clock frequency (before prescaling) Only valid if using the internal clock for the timer. More... | |
stm32 arch dependant microcontroller initialisation functions.
Definition in file mcu_arch.h.
| #define mcu_int_disable | ( | ) | {} |
Definition at line 49 of file mcu_arch.h.
| #define mcu_int_enable | ( | ) | {} |
Definition at line 48 of file mcu_arch.h.
| #define MyByteSwap16 | ( | in, | |
| out | |||
| ) |
Definition at line 40 of file mcu_arch.h.
| void mcu_arch_init | ( | void | ) |
Definition at line 109 of file mcu_arch.c.
References CORTEX_VTOR_INIT, MAMCR, MAMCR_FULL, MAMTIM, MAMTIM_CYCLES, MEMMAP, MEMMAP_FLASH, PLLCFG, PLLCFG_MSEL, PLLCFG_PSEL, PLLCON, PLLCON_PLLC, PLLCON_PLLE, PLLFEED, PLLSTAT, PLLSTAT_LOCK, PRINT_CONFIG_MSG(), reset(), SCB, VICDefVectAddr, VICIntEnClear, VICIntSelect, VPBDIV, and VPBDIV_VALUE.
Referenced by mcu_init().
Here is the call graph for this function:
Here is the caller graph for this function:Get Timer clock frequency (before prescaling) Only valid if using the internal clock for the timer.
Currently implemented for STM32F1x and STM32F405xx/407xx STM32F415xx/417xx. Not valid for STM32F42xxx and STM32F43xxx.
| [in] | timer_peripheral | Unsigned int32. Timer register address base |
Definition at line 263 of file mcu_arch.c.
Referenced by adc_init_rcc(), ppm_arch_init(), pwm_input_set_timer(), set_servo_timer(), and SpektrumTimerInit().
Here is the caller graph for this function: