STM8S - 32bit atomic access
Hi,
I'm stm8 newbie, and i wonder if i can do assumption, that reading uint32 variable will be atomic.
There is simple function returning system time measured in ms using uint32_t variable, and it's looks like following
207 ; 109 uint32_t systemGetBootTime(void)
207 ; 110 { 208 .text: section .text,new 209 0000 _systemGetBootTime: 211 ; 111 return systemBootTime; 212 0000 ae0000 ldw x,♯_systemBootTime 215 0003 cc0000 jp c_ltorso i wonder how it works, because ldw instruction is described as 16 bit transferring...
what is c_ltor?
Thank you in advance.
Krzysiek
#stm8 #atomic