summaryrefslogtreecommitdiffstats
path: root/hal/hwconfig.cpp
diff options
context:
space:
mode:
authorNao Pross <naopross@thearcway.org>2018-05-08 16:21:33 +0200
committerNao Pross <naopross@thearcway.org>2018-05-08 16:21:33 +0200
commit2490b24a1ced7372e4462c60802748e426901da1 (patch)
treee7ec935869975c526d6786d1c78e0e10046ab25d /hal/hwconfig.cpp
parentCheck if substring is empty in split(), minor fix in command parsing (diff)
downloadSAMLiquidSmoke-master.tar.gz
SAMLiquidSmoke-master.zip
Add notes, rename gpio class to gpio_pin and rename led variablesHEADmaster
Diffstat (limited to '')
-rw-r--r--hal/hwconfig.cpp24
1 files changed, 22 insertions, 2 deletions
diff --git a/hal/hwconfig.cpp b/hal/hwconfig.cpp
index f443f59..1f4cdff 100644
--- a/hal/hwconfig.cpp
+++ b/hal/hwconfig.cpp
@@ -24,12 +24,32 @@ void hw::regunlock()
void osc::initialize()
{
hw::regunlock();
- // CF no clock failure; COSC FRCDIV; PLLODIV DIV_256; UFRCEN disabled; PBDIVRDY disabled; SLOCK out of lock; FRCDIV FRC/1; SLPEN Idle on WAIT instruction; NOSC FRCDIV; PLLMULT MUL_24; SOSCEN disabled; PBDIV DIV_8; CLKLOCK unlocked; OSWEN Switch is Complete; SOSCRDY disabled;
+ // CF no clock failure;
+ // COSC FRCDIV;
+ // PLLODIV DIV_256;
+ // UFRCEN disabled;
+ // PBDIVRDY disabled;
+ // SLOCK out of lock;
+ // FRCDIV FRC/1;
+ // SLPEN Idle on WAIT instruction;
+ // NOSC FRCDIV; PLLMULT MUL_24;
+ // SOSCEN disabled;
+ // PBDIV DIV_8;
+ // CLKLOCK unlocked;
+ // OSWEN Switch is Complete;
+ // SOSCRDY disabled;
OSCCON = 0x381F7700;
hw::reglock();
// TUN Center Frequency;
OSCTUN = 0x0;
- // DIVSWEN disabled; RSLP disabled; ACTIVE Active; ROSEL SYSCLK; OE Not Driven out on REFCLKO pin; SIDL disabled; RODIV 0; ON disabled;
+ // DIVSWEN disabled;
+ // RSLP disabled;
+ // ACTIVE Active;
+ // ROSEL SYSCLK;
+ // OE Not Driven out on REFCLKO pin;
+ // SIDL disabled;
+ // RODIV 0;
+ // ON disabled;
REFOCON = 0x100;
// ROTRIM 0;
REFOTRIM = 0x0;