Home
last modified time | relevance | path

Searched refs:KEY1_PIN_NUM (Results 1 – 1 of 1) sorted by relevance

/bsp/hc32/tests/
A Dtest_gpio.c31 #define KEY1_PIN_NUM GET_PIN(B, 1) /* K10 */ macro
34 #define KEY1_PIN_NUM GET_PIN(A, 0) /* K10 */ macro
37 #define KEY1_PIN_NUM GET_PIN(B, 6) /* K5 */ macro
40 #define KEY1_PIN_NUM GET_PIN(B, 5) /* K10 */ macro
43 #define KEY1_PIN_NUM GET_PIN(C, 3) /* K1 */ macro
69 rt_pin_mode(KEY1_PIN_NUM, PIN_MODE_INPUT_PULLUP); in pin_sample()
73 rt_pin_attach_irq(KEY1_PIN_NUM, PIN_IRQ_MODE_RISING_FALLING, led_control, RT_NULL); in pin_sample()
75 rt_pin_irq_enable(KEY1_PIN_NUM, PIN_IRQ_ENABLE); in pin_sample()

Completed in 4 milliseconds