Skip to content
Snippets Groups Projects
Commit 628f36ee authored by Christos Gentsos's avatar Christos Gentsos
Browse files

Main: only enable 48MHz clock generator when USB is enabled

parent 9e119357
No related merge requests found
...@@ -159,7 +159,11 @@ ...@@ -159,7 +159,11 @@
// <i> Indicates whether generic clock 2 configuration is enabled or not // <i> Indicates whether generic clock 2 configuration is enabled or not
// <id> enable_gclk_gen_2 // <id> enable_gclk_gen_2
#ifndef CONF_GCLK_GENERATOR_2_CONFIG #ifndef CONF_GCLK_GENERATOR_2_CONFIG
#ifdef USB_ENABLE
#define CONF_GCLK_GENERATOR_2_CONFIG 1 #define CONF_GCLK_GENERATOR_2_CONFIG 1
#else
#define CONF_GCLK_GENERATOR_2_CONFIG 0
#endif
#endif #endif
// <h> Generic Clock Generator Control // <h> Generic Clock Generator Control
...@@ -167,7 +171,11 @@ ...@@ -167,7 +171,11 @@
// <i> Indicates whether Run in Standby is enabled or not // <i> Indicates whether Run in Standby is enabled or not
// <id> gclk_arch_gen_2_RUNSTDBY // <id> gclk_arch_gen_2_RUNSTDBY
#ifndef CONF_GCLK_GEN_2_RUNSTDBY #ifndef CONF_GCLK_GEN_2_RUNSTDBY
#ifdef USB_ENABLE
#define CONF_GCLK_GEN_2_RUNSTDBY 1 #define CONF_GCLK_GEN_2_RUNSTDBY 1
#else
#define CONF_GCLK_GEN_2_RUNSTDBY 0
#endif
#endif #endif
// <q> Divide Selection // <q> Divide Selection
...@@ -202,7 +210,11 @@ ...@@ -202,7 +210,11 @@
// <i> Indicates whether Generic Clock Generator Enable is enabled or not // <i> Indicates whether Generic Clock Generator Enable is enabled or not
// <id> gclk_arch_gen_2_enable // <id> gclk_arch_gen_2_enable
#ifndef CONF_GCLK_GEN_2_GENEN #ifndef CONF_GCLK_GEN_2_GENEN
#ifdef USB_ENABLE
#define CONF_GCLK_GEN_2_GENEN 1 #define CONF_GCLK_GEN_2_GENEN 1
#else
#define CONF_GCLK_GEN_2_GENEN 0
#endif
#endif #endif
// <y> Generic clock generator 2 source // <y> Generic clock generator 2 source
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment