mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-12-11 21:52:28 +00:00
38 lines
622 B
C
38 lines
622 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "main.h"
|
|
#include "flipper_hal.h"
|
|
#include "cmsis_os.h"
|
|
#include "furi-deprecated.h"
|
|
|
|
#include "log.h"
|
|
#include "input/input.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
// Arduino defines
|
|
|
|
#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
|
|
|
|
void set_exitcode(uint32_t _exitcode);
|
|
|
|
#define FURI_LIB (const char*[])
|