1#include "device_info.hcs" 2root { 3 platform { 4 /* gpio config : 5 0 : no pull 6 1 : pull up 7 2 : pull down 8 */ 9 gpio_config { 10 match_attr = "gpio_config"; 11 pinCnt = 4; 12 pin = [0, 1, 2, 3]; 13 realPin = [25, 28, 46, 47]; 14 config = [0, 0, 2, 1]; 15 } 16 uart1_config { 17 match_attr = "uart1_config"; 18 idx = 1; 19 sn = "abc_123 ok"; 20 base = 0x120a0000; // UART base register address 21 irqNum = 38; 22 baudrate = 115200; 23 uartClk = 24000000; // 24 M 24 } 25 uart2_config { 26 match_attr = "uart2_config"; 27 idx = 2; 28 sn = "887799"; 29 base = 0x220a0000; // UART base register address 30 irqNum = 39; 31 baudrate = 115200; 32 uartClk = 24000000; // 24 M 33 } 34 i2c0_config { 35 match_attr = "i2c0_config"; 36 irqNum = 15; 37 dataRate = 400000; 38 devAddr = 0x18; 39 } 40 } 41} 42 43