Paparazzi UAS  v5.12_stable-4-g9b43e9b
Paparazzi is a free software Unmanned Aircraft System.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
mcu_arch.c File Reference

stm32 arch dependant microcontroller initialisation functions. More...

#include "mcu.h"
#include <BOARD_CONFIG>
#include <inttypes.h>
#include <libopencm3/stm32/gpio.h>
#include <libopencm3/stm32/rcc.h>
#include <libopencm3/stm32/timer.h>
#include <libopencm3/stm32/flash.h>
#include <libopencm3/cm3/scb.h>
#include "std.h"
+ Include dependency graph for mcu_arch.c:

Go to the source code of this file.

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...
 

Detailed Description

stm32 arch dependant microcontroller initialisation functions.

Definition in file mcu_arch.c.

Function Documentation

void mcu_arch_init ( void  )

Definition at line 168 of file mcu_arch.c.

References CORTEX_VTOR_INIT, PRINT_CONFIG_MSG(), and SCB.

+ Here is the call graph for this function:

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.

Currently implemented for STM32F1x and STM32F405xx/407xx STM32F415xx/417xx. Not valid for STM32F42xxx and STM32F43xxx.

Parameters
[in]timer_peripheralUnsigned int32. Timer register address base
Returns
Unsigned int32. Timer base frequency

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: