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.")
#define PERIPHERAL3V3_ENABLE_PORT
arch independent PIPE API
arch independent UART (Universal Asynchronous Receiver/Transmitter) API
void mcu_init(void)
Microcontroller peripherals initialization.
Platform-independent software I2C implementation.
#define PERIPHERAL3V3_ENABLE_PIN
Some architecture independent helper functions for GPIOs.
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_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 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.