30 #define A_RX_PIN GPIO10
31 #define A_RX_PORT A_PORT
32 #define A_TX_PIN GPIO9
33 #define A_TX_PORT A_PORT
37 #define B_RX_PIN GPIO3
38 #define B_RX_PORT B_PORT
39 #define B_TX_PIN GPIO2
40 #define B_TX_PORT B_PORT
48 for (; nCount != 0; nCount--);
void mcu_init(void)
Microcontroller peripherals initialization.
static void gpio_clear(ioportid_t port, uint16_t pin)
Clear a gpio output to low level.
Some architecture independent helper functions for GPIOs.
int main(int argc, char **argv)
void gpio_setup_output(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as outputs.
void gpio_setup_input_pullup(ioportid_t port, uint16_t gpios)
Setup one or more pins of the given GPIO port as inputs with pull up resistor enabled.
Architecture independent timing functions.
static void main_event(void)
Arch independent mcu ( Micro Controller Unit ) utilities.
static uint8_t gpio_get(ioportid_t port, uint16_t pin)
Get level of a gpio.
static void main_periodic(void)
static bool sys_time_check_and_ack_timer(tid_t id)
Check if timer has elapsed.
arch independent LED (Light Emitting Diodes) API
void Delay(volatile uint32_t nCount)
static void gpio_set(ioportid_t port, uint16_t pin)
Set a gpio output to high level.
tid_t sys_time_register_timer(float duration, sys_time_cb cb)
Register a new system timer.