• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1root {
2    platform {
3        gpio_config {
4            match_attr = "gpio_config";
5            pin = [0, 1];
6            // led3: GPIO9
7            // user key: GPIO7
8            realPin = [9, 7];
9            config = [5, 1];
10            pinNum = 2;
11        }
12        controller_uart0 :: uart_controller {
13            match_attr = "asrmicro_asr582x_gpio";
14            id = 0;                         /* APP_UART_ID_0 */
15            baudrate = 115200;
16            pin_tx_type = 0;                /* APP_IO_TYPE_NORMAL */
17            pin_tx_pin = 10;                /* APP_IO_PIN_10 */
18            pin_tx_mux = 2;                 /* APP_IO_MUX_2  */
19            pin_tx_pull = 1;                /* APP_IO_PULLUP */
20
21            pin_rx_type = 0;                /* APP_IO_TYPE_NORMAL */
22            pin_rx_pin = 11;                /* APP_IO_PIN_11 */
23            pin_rx_mux = 2;                 /* APP_IO_MUX_2 */
24            pin_rx_pull = 1;                /* APP_IO_PULLUP */
25
26            use_mode_type = 0;              /* APP_UART_TYPE_INTERRUPT */
27            use_mode_tx_dma_ch = 0;         /* DMA_Channel0 */
28            use_mode_rx_dma_ch = 1;         /* DMA_Channel1 */
29
30            rx_timeout_mode = 1;            /* UART_RECEIVER_TIMEOUT_ENABLE */
31        }
32    }
33}