MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / touch_int_cmd

Function touch_int_cmd

bsp/loongson/ls1cdev/drivers/touch.c:313–326  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311#include "ls1c_regs.h"
312#define TOUCH_INT_EN __REG32(LS1C_INT4_EN)
313rt_inline void touch_int_cmd(rt_bool_t NewState)
314{
315 if(NewState == RT_TRUE)
316 {
317 //TOUCH_INT_EN |= (1<<(TOUCH_INT_PIN-64));
318 reg_set_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64));
319 }
320 else
321 {
322 //TOUCH_INT_EN &=(~ (1<<(TOUCH_INT_PIN-64)));
323 reg_clr_one_bit(LS1C_INT4_EN, 1<<(TOUCH_INT_PIN-64));
324 }
325
326}
327
328void ls1c_touch_irqhandler(void) /* TouchScreen */
329{

Callers 2

ls1c_touch_irqhandlerFunction · 0.85
touch_thread_entryFunction · 0.85

Calls 2

reg_set_one_bitFunction · 0.50
reg_clr_one_bitFunction · 0.50

Tested by

no test coverage detected