unleashed-firmware/core/flipper.h

31 lines
511 B
C
Raw Normal View History

#pragma once
#ifdef __cplusplus
2020-08-07 06:58:20 +00:00
extern "C" {
#endif
2020-08-07 06:58:20 +00:00
#include "main.h"
#include "flipper_hal.h"
2020-08-07 06:58:20 +00:00
#include "cmsis_os.h"
#include "furi.h"
#include "log.h"
#ifdef __cplusplus
2020-08-07 06:58:20 +00:00
}
#endif
2020-08-07 06:58:20 +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