File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,6 @@ void calibrateADC()
5757 */
5858void init ( void )
5959{
60- uint32_t ul ;
61-
6260 // Set Systick to 1ms interval, common to all Cortex-M variants
6361 if ( SysTick_Config ( SystemCoreClock / 1000 ) )
6462 {
@@ -68,10 +66,10 @@ void init( void )
6866 NVIC_SetPriority (SysTick_IRQn , (1 << __NVIC_PRIO_BITS ) - 2 ); /* set Priority for Systick Interrupt (2nd lowest) */
6967
7068 // Clock PORT for Digital I/O
71- // PM->APBBMASK.reg |= PM_APBBMASK_PORT ;
69+ // PM->APBBMASK.reg |= PM_APBBMASK_PORT ;
7270//
7371// // Clock EIC for I/O interrupts
74- // PM->APBAMASK.reg |= PM_APBAMASK_EIC ;
72+ // PM->APBAMASK.reg |= PM_APBAMASK_EIC ;
7573
7674 // Clock SERCOM for Serial
7775 PM -> APBCMASK .reg |= PM_APBCMASK_SERCOM0 | PM_APBCMASK_SERCOM1 | PM_APBCMASK_SERCOM2 | PM_APBCMASK_SERCOM3 | PM_APBCMASK_SERCOM4 | PM_APBCMASK_SERCOM5 ;
@@ -83,9 +81,9 @@ void init( void )
8381 PM -> APBCMASK .reg |= PM_APBCMASK_ADC | PM_APBCMASK_DAC ;
8482
8583 // Setup all pins (digital and analog) in INPUT mode (default is nothing)
86- for ( ul = 0 ; ul < NUM_DIGITAL_PINS ; ul ++ )
84+ for (uint32_t ul = 0 ; ul < NUM_DIGITAL_PINS ; ul ++ )
8785 {
88- pinMode ( ul , INPUT ) ;
86+ pinMode ( ul , INPUT ) ;
8987 }
9088
9189 // Initialize Analog Controller
You can’t perform that action at this time.
0 commit comments