generated from hulk/gd32e23x_template
update
This commit is contained in:
@@ -35,7 +35,7 @@ void reset_mcu(void) {
|
||||
FWDGT_CTL = FWDGT_WRITEACCESS_ENABLE;
|
||||
|
||||
/* Configure FWDGT to trigger a system reset */
|
||||
fwdgt_config(5, FWDGT_PSC_DIV4);
|
||||
fwdgt_config(50, FWDGT_PSC_DIV4);
|
||||
|
||||
/* Reload the counter to trigger the reset */
|
||||
fwdgt_counter_reload();
|
||||
@@ -65,7 +65,6 @@ int main(void) {
|
||||
|
||||
/* Initialize watchdog */
|
||||
watchdog_init();
|
||||
printf("Hello, world!\n");
|
||||
|
||||
while (1) {
|
||||
delay_ms(99);
|
||||
|
Reference in New Issue
Block a user