2023-02-10 01:25:30 +01:00
|
|
|
#pragma once
|
|
|
|
#pragma clang diagnostic push
|
|
|
|
#pragma ide diagnostic ignored "OCUnusedMacroInspection"
|
|
|
|
|
|
|
|
// this should be defined by our build script
|
2023-04-21 21:42:16 +02:00
|
|
|
#ifndef AFRAPAY_GIT_BRANCH
|
|
|
|
#define AFRAPAY_GIT_BRANCH "?"
|
2023-02-10 01:25:30 +01:00
|
|
|
#endif
|
|
|
|
|
2023-04-21 21:42:16 +02:00
|
|
|
#ifndef AFRAPAY_GIT_COMMIT
|
|
|
|
#define AFRAPAY_GIT_COMMIT "unknown"
|
|
|
|
#endif
|
2023-02-10 01:25:30 +01:00
|
|
|
//MFRC522 pinout (front) 3V3 RST GND IRQ MISO MOSI SCK SDA
|
|
|
|
//MFRC522 pinout (rear) SDA SCK MOSI MISO IRQ GND RST 3V3
|
|
|
|
#define PIN_HSPI_RST 4
|
|
|
|
#define PIN_HSPI_MISO 12
|
|
|
|
#define PIN_HSPI_MOSI 13
|
|
|
|
#define PIN_HSPI_SCLK 14
|
|
|
|
#define PIN_HSPI_SS 15
|
|
|
|
#define PIN_HWSERIAL_RX 16
|
|
|
|
#define PIN_HWSERIAL_TX 17
|
|
|
|
#define PIN_BUZZER 19
|
|
|
|
#define PIN_OLED_SDA 21
|
|
|
|
#define PIN_OLED_SCL 22
|
|
|
|
#define PIN_INTERRUPT_TRANSACT 26
|
|
|
|
#define PIN_INTERRUPT_BALANCE 25
|
|
|
|
#define PIN_INTERRUPT_LINK 33
|
|
|
|
#define PIN_INTERRUPT_CANCEL 32
|