mirror of
https://github.com/DarkFlippers/unleashed-firmware.git
synced 2024-12-22 04:41:36 +03:00
16 lines
323 B
C
16 lines
323 B
C
|
#pragma once
|
||
|
#include "stdint.h"
|
||
|
|
||
|
// Arduino defines
|
||
|
#define pinMode gpio_init
|
||
|
#define digitalWrite gpio_write
|
||
|
#define digitalRead gpio_read
|
||
|
#define delayMicroseconds delay_us
|
||
|
#define delay osDelay
|
||
|
|
||
|
#define OUTPUT GpioModeOutputPushPull
|
||
|
#define INPUT GpioModeInput
|
||
|
#define LOW false
|
||
|
#define HIGH true
|
||
|
|
||
|
typedef uint8_t byte;
|