flagxor / ueforth

Apache License 2.0
95 stars 26 forks source link

timers register address calculation bug #45

Open vposelt opened 1 year ago

vposelt commented 1 year ago

There is timers register calculation word TIMGn $3ff5f000 constant TIMG_BASE ( group n = 0/1, timer x = 0/1, watchdog m = 0-5 ) : TIMGn ( n -- a ) $10000 TIMG_BASE + ; For group 1 it gives uncorect address $3ff6f000, corect according ESP32 documentation is $3ff60000. So correct definition should be : TIMGn ( n -- a ) $1000 TIMG_BASE + ;