31 #ifdef PERIPHERALS_AUTO_INIT
36 #if defined RADIO_CONTROL
37 #if defined RADIO_CONTROL_BIND_IMPL_FUNC & defined SPEKTRUM_BIND_PIN_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
115 #ifdef PERIPHERALS_AUTO_INIT
121 #if defined RADIO_CONTROL_POWER_PORT
125 #ifdef PERIPHERAL3V3_ENABLE_PORT
130 #if defined RADIO_CONTROL & defined RADIO_CONTROL_BIND_IMPL_FUNC & defined SPEKTRUM_BIND_PIN_PORT
131 RADIO_CONTROL_BIND_IMPL_FUNC();
224 #if USE_UDP0 || USE_UDP1 || USE_UDP2
233 INFO(
"PERIPHERALS_AUTO_INIT not enabled! Peripherals (including sys_time) need explicit initialization.")
arch independent PIPE API
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
#define PERIPHERAL3V3_ENABLE_ON
void spi_slave_hs_init(void)
#define RADIO_CONTROL_POWER_PORT
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)
Automatic initialization of actived LED Set to OFF at startup.
void WEAK board_init(void)
Optional board init function called at the start of mcu_init().
#define RADIO_CONTROL_POWER_ON
arch independent Random Number Generator API
#define PERIPHERAL3V3_ENABLE_PORT
Arch independent mcu ( Micro Controller Unit ) utilities.
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
#define PERIPHERAL3V3_ENABLE_PIN
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 gpio_setup_input(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs.
void spi_init_slaves(void)
spi_init_slaves() function
Architecture independent I2C (Inter-Integrated Circuit Bus) API.