| 326 | } |
| 327 | |
| 328 | void ls1c_touch_irqhandler(void) /* TouchScreen */ |
| 329 | { |
| 330 | if(gpio_get(TOUCH_INT_PIN)==0) |
| 331 | { |
| 332 | /* 触摸屏按下后操作 */ |
| 333 | if (gpio_level_low == gpio_get(led_gpio)) |
| 334 | gpio_set(led_gpio, gpio_level_high); |
| 335 | else |
| 336 | gpio_set(led_gpio, gpio_level_low); |
| 337 | touch_int_cmd(RT_FALSE); |
| 338 | rt_event_send(&touch->event, 1); |
| 339 | } |
| 340 | } |
| 341 | |
| 342 | /*管脚初始化,配置中断打开SPI1 CS0 设备*/ |
| 343 | rt_inline void touch_init(void) |
nothing calls this directly
no test coverage detected