#define LED_PIN 23
#define GPIO_ENABLE_REG (*((volatile uint32_t*)0x3FF44020))
#define GPIO_OUT_REG (*((volatile uint32_t*)0x3FF44004))
#define GPIO_OUT_W1TS_REG (*((volatile uint32_t*)0x3FF44008))
#define GPIO_OUT_W1TC_REG (*((volatile uint32_t*)0x3FF4400C))
void delay1(volatile uint32_t i){
for (volatile uint32_t x = 0; x< i*10000; x++);
}
void setup() {
GPIO_ENABLE_REG |= (1 << LED_PIN);
}
void loop(){
GPIO_OUT_W1TS_REG = (1 << LED_PIN);
vTaskDelay(100);
//delay1(1);
GPIO_OUT_W1TC_REG = (1 << LED_PIN);
vTaskDelay(200);
//delay1(100);
}