blob: 3891c6136ebaf1efe0f61f6ebd212b986f6fe54b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#define SPI_DIV_NET 16
#define SPI_DIV_EVE 4
#define SPI_DIV_SDC 1024
#define SPI_DIV_CAM 24
#define SPI_CSID_NET 0
#define SPI_CSID_EVE 3
#define SPI_CSID_SDC -1
#define SPI_CSID_CAM 2
#define SPI_CSPIN_NET -1
#define SPI_CSPIN_EVE -1
#define SPI_CSPIN_SDC 0
#define SPI_CSPIN_CAM -1
#define SPI_CSPIN_LCD 11
#define SPI_IOF_MASK ((1 << IOF_SPI1_SCK) | (1 << IOF_SPI1_MOSI) | (1 << IOF_SPI1_MISO) | (1 << IOF_SPI1_SS0) | (1 << IOF_SPI1_SS2) | (1 << IOF_SPI1_SS3))
#define NET_PIN_RTS 20
#define NET_PIN_CTS 22
#define EVE_PIN_INTR 1
//#define EVE_PIN_INTR 23
#define I2S_PIN_CK 1 /* PWM 0.1 */
#define I2S_PIN_CK_SW 21 /* PWM 1.2 */
#define I2S_PIN_CK_SR 18
#define I2S_PIN_WS_MIC 19 /* PWM 1.1 */
#define I2S_PIN_WS_SPK 11 /* PWM 2.1 */
#define I2S_PIN_SD_IN 17
#define I2S_PIN_SD_OUT 16
//#define I2S_PIN_SD_IN 13
//#define I2S_PIN_SD_OUT 12
#define I2S_IRQ_WS_ID (INT_PWM2_BASE + 0)
#define I2S_IRQ_SD_ID (INT_PWM2_BASE + 3)
#define I2S_CTRL_ADDR_CK PWM0_CTRL_ADDR
#define I2S_CTRL_ADDR_WS_MIC PWM1_CTRL_ADDR
#define I2S_CTRL_ADDR_WS_SPK PWM2_CTRL_ADDR
#define I2S_IDLE_CYCLES 1
//#define CTP_PIN_INT 1
#define CTP_PIN_INT 23
#define CTP_PIN_RST 19
#define EVE_GPIO_DIR 0xf
#define EVE_GPIO_CAM 0
#define EVE_GPIO_LCD_EN 1
#define EVE_GPIO_GAIN 2
#define EVE_GPIO_HAPT 3
|