2020-08-17 09:45:53 +00:00
|
|
|
#include "flipper.h"
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
FILE* get_debug();
|
|
|
|
}
|
2020-08-07 06:58:20 +00:00
|
|
|
|
|
|
|
extern "C" void app() {
|
2020-08-17 09:45:53 +00:00
|
|
|
FILE* debug_uart = get_debug();
|
|
|
|
|
|
|
|
fprintf(debug_uart, "hello Flipper!\n");
|
2020-08-07 06:58:20 +00:00
|
|
|
|
|
|
|
GpioPin red_led = {LED_RED_GPIO_Port, LED_RED_Pin};
|
|
|
|
|
|
|
|
app_gpio_init(red_led, GpioModeOutput);
|
|
|
|
|
2020-08-17 09:45:53 +00:00
|
|
|
|
2020-08-07 06:58:20 +00:00
|
|
|
while(1) {
|
|
|
|
delay(100);
|
|
|
|
app_gpio_write(red_led, true);
|
|
|
|
delay(100);
|
|
|
|
app_gpio_write(red_led, false);
|
|
|
|
}
|
|
|
|
}
|