2020-09-01 10:34:23 +00:00
|
|
|
#pragma once
|
|
|
|
|
2020-08-24 15:31:22 +00:00
|
|
|
#ifdef __cplusplus
|
2020-08-07 06:58:20 +00:00
|
|
|
extern "C" {
|
2020-08-24 15:31:22 +00:00
|
|
|
#endif
|
|
|
|
|
2020-09-29 23:18:30 +00:00
|
|
|
#include "main.h"
|
|
|
|
#include "flipper_hal.h"
|
|
|
|
#include "cmsis_os.h"
|
2020-10-13 08:22:43 +00:00
|
|
|
#include "furi-deprecated.h"
|
|
|
|
|
2020-09-29 23:18:30 +00:00
|
|
|
#include "log.h"
|
2020-10-02 06:44:05 +00:00
|
|
|
#include "input/input.h"
|
2020-08-24 15:31:22 +00:00
|
|
|
|
|
|
|
#ifdef __cplusplus
|
2020-08-07 06:58:20 +00:00
|
|
|
}
|
2020-08-24 15:31:22 +00:00
|
|
|
#endif
|
2020-08-07 06:58:20 +00:00
|
|
|
|
2020-10-17 08:48:52 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
|
2020-08-17 09:45:53 +00:00
|
|
|
// Arduino defines
|
|
|
|
|
2020-08-07 06:58:20 +00:00
|
|
|
#define pinMode app_gpio_init
|
|
|
|
#define digitalWrite app_gpio_write
|
|
|
|
#define digitalRead app_gpio_read
|
|
|
|
#define EEMEM
|
|
|
|
#define delayMicroseconds delay_us
|
|
|
|
#define delay osDelay
|
|
|
|
#define byte uint8_t
|
|
|
|
|
|
|
|
#define OUTPUT GpioModeOutput
|
|
|
|
#define INPUT GpioModeInput
|
|
|
|
#define LOW false
|
|
|
|
#define HIGH true
|
2020-10-10 10:32:06 +00:00
|
|
|
|
|
|
|
void set_exitcode(uint32_t _exitcode);
|