1313#define USB_PRODUCT "T-LoRa-Pager"
1414
1515// ST7796
16- #define DISP_WIDTH (222)
17- #define DISP_HEIGHT (480)
18- #define SD_CS (21)
16+ #define DISP_WIDTH (222)
17+ #define DISP_HEIGHT (480)
18+ #define SD_CS (21)
1919
2020static const uint8_t TX = 43 ;
2121static const uint8_t RX = 44 ;
@@ -30,61 +30,61 @@ static const uint8_t MOSI = 34;
3030static const uint8_t MISO = 33 ;
3131static const uint8_t SCK = 35 ;
3232
33- #define KB_INT (6)
34- #define KB_BACKLIGHT (46)
33+ #define KB_INT (6)
34+ #define KB_BACKLIGHT (46)
3535
3636// Rotary
37- #define ROTARY_A (40)
38- #define ROTARY_B (41)
39- #define ROTARY_C (7)
37+ #define ROTARY_A (40)
38+ #define ROTARY_B (41)
39+ #define ROTARY_C (7)
4040
4141// Interrupt IO port
42- #define RTC_INT (1)
43- #define NFC_INT (5)
44- #define SENSOR_INT (8)
45- #define NFC_CS (39)
46-
47- // ES8311
48- #define I2S_WS (18)
49- #define I2S_SCK (11)
50- #define I2S_MCLK (10)
51- #define I2S_SDOUT (45)
52- #define I2S_SDIN (17)
42+ #define RTC_INT (1)
43+ #define NFC_INT (5)
44+ #define SENSOR_INT (8)
45+ #define NFC_CS (39)
46+
47+ // ES8311
48+ #define I2S_WS (18)
49+ #define I2S_SCK (11)
50+ #define I2S_MCLK (10)
51+ #define I2S_SDOUT (45)
52+ #define I2S_SDIN (17)
5353
5454// GPS
55- #define GPS_TX (12)
56- #define GPS_RX (4)
57- #define GPS_PPS (13)
55+ #define GPS_TX (12)
56+ #define GPS_RX (4)
57+ #define GPS_PPS (13)
5858
5959// LoRa, SD, ST25R3916 card share SPI bus
60- #define LORA_SCK (SCK) // share spi bus
61- #define LORA_MISO (MISO) // share spi bus
62- #define LORA_MOSI (MOSI) // share spi bus
63- #define LORA_CS (36)
64- #define LORA_RST (47)
65- #define LORA_BUSY (48)
66- #define LORA_IRQ (14)
60+ #define LORA_SCK (SCK) // share spi bus
61+ #define LORA_MISO (MISO) // share spi bus
62+ #define LORA_MOSI (MOSI) // share spi bus
63+ #define LORA_CS (36)
64+ #define LORA_RST (47)
65+ #define LORA_BUSY (48)
66+ #define LORA_IRQ (14)
6767
6868// SPI interface display
69- #define DISP_MOSI (MOSI)
70- #define DISP_MISO (MISO)
71- #define DISP_SCK (SCK)
72- #define DISP_RST (-1)
73- #define DISP_CS (38)
74- #define DISP_DC (37)
75- #define DISP_BL (42)
69+ #define DISP_MOSI (MOSI)
70+ #define DISP_MISO (MISO)
71+ #define DISP_SCK (SCK)
72+ #define DISP_RST (-1)
73+ #define DISP_CS (38)
74+ #define DISP_DC (37)
75+ #define DISP_BL (42)
7676
7777// External expansion chip IO definition
78- #define EXPANDS_DRV_EN (0)
79- #define EXPANDS_AMP_EN (1)
80- #define EXPANDS_KB_RST (2)
81- #define EXPANDS_LORA_EN (3)
82- #define EXPANDS_GPS_EN (4)
83- #define EXPANDS_NFC_EN (5)
84- #define EXPANDS_DISP_RST (6)
85- #define EXPANDS_GPS_RST (7)
86- #define EXPANDS_KB_EN (8)
87- #define EXPANDS_GPIO_EN (9)
78+ #define EXPANDS_DRV_EN (0)
79+ #define EXPANDS_AMP_EN (1)
80+ #define EXPANDS_KB_RST (2)
81+ #define EXPANDS_LORA_EN (3)
82+ #define EXPANDS_GPS_EN (4)
83+ #define EXPANDS_NFC_EN (5)
84+ #define EXPANDS_DISP_RST (6)
85+ #define EXPANDS_GPS_RST (7)
86+ #define EXPANDS_KB_EN (8)
87+ #define EXPANDS_GPIO_EN (9)
8888
8989// Peripheral definition exists
9090#define USING_AUDIO_CODEC
0 commit comments