2020-08-26 01:56:33 +00:00
|
|
|
#include "flipper.h"
|
2020-10-26 07:16:54 +00:00
|
|
|
#include "flipper_v2.h"
|
2020-08-26 01:56:33 +00:00
|
|
|
|
|
|
|
void application_blink(void* p) {
|
|
|
|
// create pin
|
|
|
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
2020-09-29 23:18:30 +00:00
|
|
|
|
2020-10-26 07:16:54 +00:00
|
|
|
// TODO open record
|
|
|
|
GpioPin* led_record = &led;
|
|
|
|
|
2020-08-26 01:56:33 +00:00
|
|
|
// configure pin
|
2020-10-26 07:16:54 +00:00
|
|
|
pinMode(led_record, GpioModeOutputOpenDrain);
|
2020-08-26 01:56:33 +00:00
|
|
|
|
|
|
|
while(1) {
|
2020-10-26 07:16:54 +00:00
|
|
|
digitalWrite(led_record, HIGH);
|
2020-08-26 01:56:33 +00:00
|
|
|
delay(500);
|
2020-10-26 07:16:54 +00:00
|
|
|
digitalWrite(led_record, LOW);
|
2020-08-26 01:56:33 +00:00
|
|
|
delay(500);
|
|
|
|
}
|
|
|
|
}
|