mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 13:03:13 +00:00
110a9efc3c
* proof of concept * fix syntax for rust and add auto fix syntax * fix syntax for C * fix bug with files owner * add information to wiki * try to add ci * format code from master * even more format fixes * change docker to docker-compose * Exclude ./target_*/build directories from format check * Run rustfmt only on project files * add ulimit setup for long clang list * merge * fix rustfmt, exclude target Inc directory * sync with master * abspath Co-authored-by: aanper <mail@s3f.ru> Co-authored-by: Vadim Kaushan <admin@disasm.info>
30 lines
491 B
C
30 lines
491 B
C
#pragma once
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#include "main.h"
|
|
#include "flipper_hal.h"
|
|
#include "cmsis_os.h"
|
|
#include "furi.h"
|
|
#include "log.h"
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
// 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
|