mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
0980775f01
custom debug stream run docker with project dir, specify dir to makefile remove unused includes fix broken F1
24 lines
No EOL
435 B
C++
24 lines
No EOL
435 B
C++
#include "flipper.h"
|
|
#include <stdio.h>
|
|
|
|
extern "C" {
|
|
FILE* get_debug();
|
|
}
|
|
|
|
extern "C" void app() {
|
|
FILE* debug_uart = get_debug();
|
|
|
|
fprintf(debug_uart, "hello Flipper!\n");
|
|
|
|
GpioPin red_led = {LED_RED_GPIO_Port, LED_RED_Pin};
|
|
|
|
app_gpio_init(red_led, GpioModeOutput);
|
|
|
|
|
|
while(1) {
|
|
delay(100);
|
|
app_gpio_write(red_led, true);
|
|
delay(100);
|
|
app_gpio_write(red_led, false);
|
|
}
|
|
} |