@@ -199,25 +199,6 @@ void board_init(void)
199199 ////////////////////////////////////////
200200 uint32_t temp_genctrl_config = 0 ;
201201
202- // ENABLE OUTPUT OF GENCLK 0 on D2 (PA14)
203- // Write to the PINCFG register to enable the peripheral multiplexer
204- PORT -> Group [0 ].PINCFG [14 ].reg = 1 ;
205- // Enable peripheral function H for PA14, refer chapter I/O Multiplexing in the device datasheet
206- PORT -> Group [0 ].PMUX [7 ].bit .PMUXE = 7 ;
207-
208- // ENABLE OUTPUT OF GENCLK 1 on D5 (PA15)
209- // Write to the PINCFG register to enable the peripheral multiplexer
210- PORT -> Group [0 ].PINCFG [15 ].reg = 1 ;
211- // Enable peripheral function H for PA15, refer chapter I/O Multiplexing in the device datasheet
212- PORT -> Group [0 ].PMUX [7 ].bit .PMUXO = 7 ;
213-
214- // ENABLE OUTPUT OF GENCLK 2 on D11 (PA16) - should be OSC8M @ 8MHz
215- // Write to the PINCFG register to enable the peripheral multiplexer
216- PORT -> Group [0 ].PINCFG [16 ].reg = 1 ;
217- // Enable peripheral function H for PA16, refer chapter I/O Multiplexing in the device datasheet
218- PORT -> Group [0 ].PMUX [8 ].bit .PMUXE = 7 ;
219-
220-
221202 /////////////////////////////////////////////////
222203
223204 /* Set OSC8M prescalar to divide by 1, now gclk0 is @ 8mhz */
@@ -250,7 +231,6 @@ void board_init(void)
250231 genctrl .bit .SRC = GCLK_GENCTRL_SRC_OSC32K_Val ; // gclk 1 is now = osc32k
251232 genctrl .bit .GENEN = 1 ;
252233 genctrl .bit .RUNSTDBY = 0 ;
253- genctrl .bit .OE = 1 ; // output on GCLK_IO[1] pin for debugging
254234
255235 GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl ); // set it!
256236
@@ -266,7 +246,6 @@ void board_init(void)
266246 genctrl .bit .SRC = GCLK_GENCTRL_SRC_OSC8M_Val ; // gclk 2 is now = osc8m
267247 genctrl .bit .GENEN = 1 ;
268248 genctrl .bit .RUNSTDBY = 0 ;
269- genctrl .bit .OE = 1 ; // output on GCLK_IO[2] pin for debugging
270249 GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl ); // set it!
271250
272251 while (GCLK -> STATUS .reg & GCLK_STATUS_SYNCBUSY );
@@ -319,7 +298,6 @@ void board_init(void)
319298 genctrl .bit .SRC = GCLK_GENCTRL_SRC_DFLL48M_Val ;
320299 genctrl .bit .GENEN = 1 ;
321300 genctrl .bit .RUNSTDBY = 0 ;
322- genctrl .bit .OE = 1 ;
323301 GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl );
324302 while (GCLK -> STATUS .reg & GCLK_STATUS_SYNCBUSY );
325303
0 commit comments