Home
last modified time | relevance | path

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

/bsp/raspberry-pi/raspi4-32/driver/touch/
A Ddrv_xpt2046.c30 #define TP_IRQ_PIN (17) macro
179 rt_pin_mode(TP_IRQ_PIN, PIN_MODE_INPUT_PULLUP); in touch_thread_entry()
185 if(rt_pin_read(TP_IRQ_PIN) == PIN_LOW) in touch_readly()
187 rt_pin_mode(TP_IRQ_PIN, PIN_MODE_OUTPUT); in touch_readly()
188 rt_pin_write(TP_IRQ_PIN,PIN_HIGH); in touch_readly()
232 rt_pin_mode(TP_IRQ_PIN, PIN_MODE_INPUT_PULLUP); in hw_xpt2046_touch_init()
233 rt_pin_attach_irq(TP_IRQ_PIN, PIN_IRQ_MODE_LOW_LEVEL, touch_readly, RT_NULL); in hw_xpt2046_touch_init()
234 rt_pin_irq_enable(TP_IRQ_PIN, PIN_IRQ_ENABLE); in hw_xpt2046_touch_init()

Completed in 6 milliseconds