1#include "default_device_info.hcs" 2 3root { 4 platform { 5 gpio_config { 6 match_attr = "gpio_config"; 7 pin = [0, 1, 2, 3, 4, 5, 6, 7, 8]; // pin index when register to hdf framework 0-3 spi flash gpio 4-5 uart1 7-8 i2c test 8 realPin = [9, 10, 8, 2, 3, 4, 0, 8, 9]; // pin number in stm32 led2 pe5, led3 pe6, 9 group = [5, 5, 5, 4, 4, 4, 0, 1, 1]; // group of gpio 0:GPIOA 1:GPIOB 2:GPIOC 3:GPIOD 4:GPIOE 5:GPIOF 6:GPIOG 7:GPIOH 8:GPIOI 10 mode = [1, 1, 1, 0, 0, 0, 0, 2, 2]; // 0: input 1: output 2:alternate 3:analog 11 speed = [3, 3, 3, 3, 3, 3, 3, 3, 3]; // 0: low 1: middle 2:high 3:very_high 12 type = [0, 0, 0, 0, 0, 0, 0, 1, 1]; // 0: pp 1:od 13 pinNum = 9; 14 pupd = [1, 1, 1, 1, 1, 1, 2, 0, 0]; // 0: nopull 1:up 2:down 15 alternate = [0, 0, 0, 0, 0, 0, 0, 4, 4]; 16 } 17 i2c_config { 18 i2c1_config { 19 match_attr = "i2c1_config"; 20 port = 1; 21 devMode = 0; //0 = master, 1 = slave 22 devAddr = 0; 23 speed = 100000; 24 } 25 } 26 } 27 misc { 28 test_config { 29 match_attr = "test_config"; 30 } 31 } 32} 33 34