Code: Select all
io_status = (RTC_GPIO_IN_REG >> io_number) & 1
if( (next_edge == 0 && io_status == 0) || (next_edge == 1 && io_status == 1) )
goto changed
Code: Select all
io_status = (RTC_GPIO_IN_REG >> io_number) & 1
if( (next_edge == 0 && io_status == 0) || (next_edge == 1 && io_status == 1) )
goto changed
Users browsing this forum: Baidu [Spider], Bing [Bot] and 278 guests