Need help with direct register manipulation #75
-
I was trying to get free watchdog timer working by writing directly to registers and by writing the following I was able to start the watchdog timer but it keeps restarting. I'm trying to configure it but so far no luck.
and this line to reset the watchdog timer according to the datasheet.
with these, I can compile it on Arduino IDE. I was also trying to do some GPIO control the same way but when I try to write something to GPIOC_CTL it gives the following error when trying to compile.
Is it using a different naming convention? Any help is really appreciated. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 7 replies
-
See So you would have to do GPIO_CTL(GPIOC) |= 0x08000000; |
Beta Was this translation helpful? Give feedback.
See
ArduinoCore-GD32/system/GD32F1x0_firmware/GD32F1x0_standard_peripheral/Include/gd32f1x0_gpio.h
Lines 45 to 54 in a22a2e3
So you would have to do
GPIO_CTL(GPIOC) |= 0x08000000;