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 changedCode: 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 changedUsers browsing this forum: ChatGPT-User and 5 guests