@@ -199,25 +199,6 @@ void board_init(void)
199
199
////////////////////////////////////////
200
200
uint32_t temp_genctrl_config = 0 ;
201
201
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
-
221
202
/////////////////////////////////////////////////
222
203
223
204
/* Set OSC8M prescalar to divide by 1, now gclk0 is @ 8mhz */
@@ -250,7 +231,6 @@ void board_init(void)
250
231
genctrl .bit .SRC = GCLK_GENCTRL_SRC_OSC32K_Val ; // gclk 1 is now = osc32k
251
232
genctrl .bit .GENEN = 1 ;
252
233
genctrl .bit .RUNSTDBY = 0 ;
253
- genctrl .bit .OE = 1 ; // output on GCLK_IO[1] pin for debugging
254
234
255
235
GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl ); // set it!
256
236
@@ -266,7 +246,6 @@ void board_init(void)
266
246
genctrl .bit .SRC = GCLK_GENCTRL_SRC_OSC8M_Val ; // gclk 2 is now = osc8m
267
247
genctrl .bit .GENEN = 1 ;
268
248
genctrl .bit .RUNSTDBY = 0 ;
269
- genctrl .bit .OE = 1 ; // output on GCLK_IO[2] pin for debugging
270
249
GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl ); // set it!
271
250
272
251
while (GCLK -> STATUS .reg & GCLK_STATUS_SYNCBUSY );
@@ -319,7 +298,6 @@ void board_init(void)
319
298
genctrl .bit .SRC = GCLK_GENCTRL_SRC_DFLL48M_Val ;
320
299
genctrl .bit .GENEN = 1 ;
321
300
genctrl .bit .RUNSTDBY = 0 ;
322
- genctrl .bit .OE = 1 ;
323
301
GCLK -> GENCTRL .reg = (genctrl .reg | temp_genctrl );
324
302
while (GCLK -> STATUS .reg & GCLK_STATUS_SYNCBUSY );
325
303
0 commit comments