Skip to content

Commit

Permalink
Fix syntax for BOARD_GCLK*_RUN_IN_STANDBY and BOARD_GCLK*_OUTPUT_ENABLE
Browse files Browse the repository at this point in the history
with GCLK1-8
  • Loading branch information
ticso24 authored and Ouss4 committed Dec 15, 2020
1 parent 3adadbe commit 2ccc37f
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions arch/arm/src/samd2l2/samd_clockconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 1,
#ifdef BOARD_GCLK1_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK1_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK1_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK1_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -124,10 +124,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 2,
#ifdef BOARD_GCLK2_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK2_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK2_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK2_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -141,10 +141,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 3,
#ifdef BOARD_GCLK3_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK3_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK3_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK3_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -158,10 +158,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 4,
#ifdef BOARD_GCLK4_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK4_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK4_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK4_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -175,10 +175,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 5,
#ifdef BOARD_GCLK5_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK5_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK5_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK5_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -192,10 +192,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 6,
#ifdef BOARD_GCLK6_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK6_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK6_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK6_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -209,10 +209,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 7,
#ifdef BOARD_GCLK7_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK7_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK7_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK7_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand All @@ -226,10 +226,10 @@ static const struct sam_gclkconfig_s g_gclkconfig[] =
{
.gclk = 8,
#ifdef BOARD_GCLK8_RUN_IN_STANDBY
.runstandby = true;
.runstandby = true,
#endif
#ifdef BOARD_GCLK8_OUTPUT_ENABLE
.output = true;
.output = true,
#endif
.prescaler = BOARD_GCLK8_PRESCALER,
.clksrc = (uint8_t)(BOARD_GCLK8_CLOCK_SOURCE >> GCLK_GENCTRL_SRC_SHIFT),
Expand Down

0 comments on commit 2ccc37f

Please sign in to comment.