PRT0DR Error | Cypress Semiconductor
When I run below code, if lope is working but else loop is not working. But if x deleted and 0 wrote instead of x, it is working.
I can not see the failure.. Do you have an idea ? (device is CY8C21434 and code is entering else and if loop)
if (ENABLE == b_value)
*((&PRT0DR) + 0) |= 0x01;
x = 0;
*((&PRT0DR) + x) &= ~(0x01);