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-29 07:58:19 +00:00
|
|
|
gpio_init(led_record, GpioModeOutputOpenDrain);
|
2020-08-26 01:56:33 +00:00
|
|
|
|
|
|
|
while(1) {
|
2020-10-29 07:58:19 +00:00
|
|
|
gpio_write(led_record, true);
|
2020-08-26 01:56:33 +00:00
|
|
|
delay(500);
|
2020-10-29 07:58:19 +00:00
|
|
|
gpio_write(led_record, false);
|
2020-08-26 01:56:33 +00:00
|
|
|
delay(500);
|
|
|
|
}
|
|
|
|
}
|