Gordon
Tried to run your code by copy it into the left side. Got:
>test();
Uncaught ReferenceError: "R" is not defined
at line 1 col 40
console.log("LSEON",peek32(RCC.a.BDCR)&RCC.f.BDCR.LSEON);
^
in function "test" called from line 1 col 6
test();
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Gordon
Tried to run your code by copy it into the left side. Got: