Paparazzi UAS  v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
mcu_arch.h File Reference

stm32 arch dependant microcontroller initialisation functions. More...

#include "std.h"
#include <BOARD_CONFIG>
+ 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)
 

Functions

void mcu_arch_init (void)
 Initialize the specific archittecture functions. More...
 
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.h.

Macro Definition Documentation

◆ MyByteSwap16

#define MyByteSwap16 (   in,
  out 
)
Value:
{ \
asm volatile ( \
"rev16 %0, %1\n\t" \
: "=r" (out) \
: "r"(in) \
); \
}

Definition at line 46 of file mcu_arch.h.

Function Documentation

◆ mcu_arch_init()

void mcu_arch_init ( void  )

Initialize the specific archittecture functions.

Definition at line 155 of file mcu_arch.c.

References PRINT_CONFIG_MSG().

Referenced by mcu_init().

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

◆ timer_get_frequency()

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 311 of file mcu_arch.c.

Referenced by adc_init_rcc(), ppm_arch_init(), pwm_input_set_timer(), and set_servo_timer().

+ Here is the caller graph for this function: