Assign register value to variable
Posted on June 06, 2011 at 21:05Good day! I'm trying to assign register value to a variable in COSMIC C. I've tried the obvious way first, but it doesn't work: uint8_t test = 0; ... test = CLK->SWCR; // define from stm8s.h and uint8_t test = 0; ......