31 #ifdef PERIPHERALS_AUTO_INIT
36 #if defined RADIO_CONTROL
37 #if defined RADIO_CONTROL_LINK || defined RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT
41 #if USE_UART0 || USE_UART1 || USE_UART2 || USE_UART3 || USE_UART4 || USE_UART5 || USE_UART6 || USE_UART7 || USE_UART8
45 #if USE_I2C0 || USE_I2C1 || USE_I2C2 || USE_I2C3
99 #ifdef PERIPHERALS_AUTO_INIT
105 #if defined RADIO_CONTROL_POWER
110 #if defined RADIO_CONTROL & defined RADIO_CONTROL_SPEKTRUM_PRIMARY_PORT & defined RADIO_CONTROL_BIND_IMPL_FUNC & defined SPEKTRUM_BIND_PIN_PORT
111 RADIO_CONTROL_BIND_IMPL_FUNC();
204 #if USE_UDP0 || USE_UDP1 || USE_UDP2
209 INFO(
"PERIPHERALS_AUTO_INIT not enabled! Peripherals (including sys_time) need explicit initialization.")
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
#define RADIO_CONTROL_POWER
void spi_slave_hs_init(void)
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
Architecture independent SPI (Serial Peripheral Interface) API.
#define RADIO_CONTROL_POWER_PIN
void uart_arch_init(void)
void WEAK board_init2(void)
Optional board init function called at the end of mcu_init().
Architecture independent timing functions.
static void led_init(void)
void WEAK board_init(void)
Optional board init function called at the start of mcu_init().
#define RADIO_CONTROL_POWER_ON
Arch independent mcu ( Micro Controller Unit ) utilities.
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
arch independent LED (Light Emitting Diodes) API
void mcu_event(void)
MCU event functions.
void adc_init(void)
Adc init.
void i2c_event(void)
i2c_event() function
void spi_init_slaves(void)
spi_init_slaves() function
Architecture independent I2C (Inter-Integrated Circuit Bus) API.