/* Handle an interrupt triggered when a pad is touched. Recognize what pad has been touched and save it in a table.  */
static void tp_example_rtc_intr(void *arg)
/* Handle an interrupt triggered when a pad is touched. Recognize what pad has been touched and save it in a table.  */
static void tp_example_rtc_intr(void *arg)
{
    uint32_t pad_intr = touch_pad_get_status();
    touch_pad_clear_status();
    for (int i = 0; i < TOUCH_PAD_MAX; i++) {
        if ((pad_intr >> i) & 0x01) {
            s_pad_activated[i] = true;
        }
    }
}