Because I’m new to Nano I’m studying the blinky example.
So I am trying to understand the
get_timer_value() function in n200_func.c of the framework-gd32…-sdk. What I can’t figure out is where did the value for
#define TIMER_CTRL_ADDR 0xd1000000
inside n200_timer.h come from.
The GD32VF103_User_Manual V1.0 has no definition for 0xd100_0000 yet based on the name it must be an address associated with the timer registers. I would have expected something like 0x4000_2C00.
The best “guess” I have is that it’s an address associated with the N200 RISC-V Kernel-owned timer unit. The docs for the processor are all in Chinese
Does anyone have a clue?