979af6c165
* add delay function * todo about delay_isr * remove arduino defines and fix all apps to use core-api/hal-api * delay for local target * remove warnings of task_equal * fix BSP_SD_Init * fix USBD_static * grio read constant pointer to gpio * add TODO about ISR context * const void* arg for pubsub api * mark unused functions * app pointers now pointed to constant apps * fix printf format * fix "unused" warnings in local target * fix const pin read in local target * fix int to pointer warnings in local target * power read mutex error fix * delete old makefile * add -werror Co-authored-by: Aleksandr Kutuzov <aku@plooks.com> Co-authored-by: aanper <mail@s3f.ru>
20 lines
423 B
C
20 lines
423 B
C
#include "flipper.h"
|
|
#include "flipper_v2.h"
|
|
|
|
void application_blink(void* p) {
|
|
// create pin
|
|
GpioPin led = {.pin = GPIO_PIN_8, .port = GPIOA};
|
|
|
|
// TODO open record
|
|
GpioPin* led_record = &led;
|
|
|
|
// configure pin
|
|
gpio_init(led_record, GpioModeOutputOpenDrain);
|
|
|
|
while(1) {
|
|
gpio_write(led_record, true);
|
|
delay(500);
|
|
gpio_write(led_record, false);
|
|
delay(500);
|
|
}
|
|
} |