You are reading a single comment by @Reinoud and its replies. Click here to read the full conversation.
  • Seems to work:

     ____                 _
    |  __|___ ___ ___ _ _|_|___ ___
    |  __|_ -| . |  _| | | |   | . |
    |____|___|  _|_| |___|_|_|_|___|
             |_| espruino.com
     2v05.47 (c) 2019 G.Williams
    >
    >function getClockSource() {
    :  return ["NONE","LSE","LSI","HSE"][((peek32(0x40­021020)&768)>>8)];
    :}
    =function () { ... }
    >getClockSource();
    ="LSE"
    > 
    
About

Avatar for Reinoud @Reinoud started