Firmware/Nuvoton

GPIO 변수 할당

또난 2020. 1. 2. 17:48

별거 아니지만, 가끔 써먹을 때

 

 

volatile uint32_t* led;

led = &PC10

*led ^= 1;

 PortC 10번이 토글 동작.