WIP target lo

custom debug stream

run docker with project dir, specify dir to makefile

remove unused includes

fix broken F1
This commit is contained in:
aanper
2020-08-17 12:45:53 +03:00
parent 419a7644a4
commit 0980775f01
16 changed files with 320 additions and 45 deletions

View File

@@ -1,12 +1,20 @@
#include "Arduino.h"
#include "flipper.h"
#include <stdio.h>
extern "C" {
FILE* get_debug();
}
extern "C" void app() {
printf("hello Flipper!\n");
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);