|
Paparazzi UAS
v5.18.0_stable
Paparazzi is a free software Unmanned Aircraft System.
|
Go to the documentation of this file.
31 #ifdef PERIPHERALS_AUTO_INIT
37 #if defined RADIO_CONTROL
38 #if defined RADIO_CONTROL_BIND_IMPL_FUNC & defined SPEKTRUM_BIND_PIN_PORT
42 #if USE_UART0 || USE_UART1 || USE_UART2 || USE_UART3 || USE_UART4 || USE_UART5 || USE_UART6 || USE_UART7 || USE_UART8
46 #if USE_I2C0 || USE_I2C1 || USE_I2C2 || USE_I2C3 || USE_I2C4 || USE_SOFTI2C0 || USE_SOFTI2C1
50 #if USE_SOFTI2C0 || USE_SOFTI2C1
51 #define USING_SOFTI2C 1
120 #ifdef PERIPHERALS_AUTO_INIT
126 #if defined RADIO_CONTROL_POWER_PORT
130 #ifdef PERIPHERAL3V3_ENABLE_PORT
135 #if defined RADIO_CONTROL & defined RADIO_CONTROL_BIND_IMPL_FUNC & defined SPEKTRUM_BIND_PIN_PORT
136 RADIO_CONTROL_BIND_IMPL_FUNC();
241 #if USE_UDP0 || USE_UDP1 || USE_UDP2
250 INFO(
"PERIPHERALS_AUTO_INIT not enabled! Peripherals (including sys_time) need explicit initialization.")
void WEAK board_init(void)
Optional board init function called at the start of mcu_init().
#define PERIPHERAL3V3_ENABLE_PORT
static void led_init(void)
Automatic initialization of actived LED Set to OFF at startup.
void i2c_event(void)
i2c_event() function
void mcu_event(void)
MCU event functions.
#define PERIPHERAL3V3_ENABLE_PIN
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
arch independent ADC (Analog to Digital Converter) API
arch independent Random Number Generator API
arch independent PIPE API
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
#define RADIO_CONTROL_POWER_ON
void uart_arch_init(void)
void gpio_setup_input(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs.
Arch independent mcu ( Micro Controller Unit ) utilities.
Architecture independent timing functions.
void spi_slave_hs_init(void)
arch independent LED (Light Emitting Diodes) API
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
#define PERIPHERAL3V3_ENABLE_ON
#define RADIO_CONTROL_POWER_PIN
void adc_init(void)
Adc init.
#define RADIO_CONTROL_POWER_PORT
void WEAK board_init2(void)
Optional board init function called at the end of mcu_init().
void spi_init_slaves(void)
spi_init_slaves() function
void mcu_init(void)
Microcontroller peripherals initialization.