8 Commits

Author SHA1 Message Date
Stefan Kerkmann
1b6540a61c Update systick reload value
The systick timer is driven by the AHB bus divided by 4, set the correct
reload value to generate a timer irq every ms.
2021-08-09 21:37:06 +02:00
Stefan Kerkmann
27f147f421 Minor style changes 2021-08-07 14:08:18 +02:00
Stefan Kerkmann
0399996ee5 Code style changes 2021-08-07 11:33:36 +02:00
Stefan Kerkmann
66d566f8c0 Use functions provided by the nuclei-sdk hal 2021-08-07 11:33:36 +02:00
Stefan Kerkmann
60d03110f7 Correctly initialize and handle the system tick
Forgot to reload the systick timer in the irq handler
2021-08-07 11:33:36 +02:00
Stefan Kerkmann
733a362436 Use nuclei-sdk functions for init code
Instead of using the HAL functions we can just use the defines from the
board support for the longan nano that comes with the nuclei-sdk. Also
we move some includes and defines to the header file.
2021-08-07 11:32:06 +02:00
Stefan Kerkmann
3db2089aa9 Minor clean ups 2021-08-03 20:00:39 +02:00
Stefan Kerkmann
19b971cb24 Add board support for gd32vf103 longan nano 2021-08-03 20:00:39 +02:00