[Style] More whitespace fixes.
This commit is contained in:
@@ -51,7 +51,7 @@ void pmc_peripheral_clock_enable(uint8_t pid)
|
||||
PMC_PCER1 = 1 << (pid & 31);
|
||||
}
|
||||
#else
|
||||
//SAM3N and SAM3U only have one Peripheral Clock Enable Register
|
||||
/* SAM3N and SAM3U only have one Peripheral Clock Enable Register */
|
||||
PMC_PCER = 1 << pid;
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -38,10 +38,11 @@
|
||||
void crs_autotrim_usb_enable(void)
|
||||
{
|
||||
rcc_periph_clock_enable(RCC_CRS);
|
||||
|
||||
|
||||
CRS_CFGR &= ~CRS_CFGR_SYNCSRC;
|
||||
CRS_CFGR |= CRS_CFGR_SYNCSRC_USB_SOF;
|
||||
|
||||
|
||||
CRS_CR |= CRS_CR_AUTOTRIMEN;
|
||||
CRS_CR |= CRS_CR_CEN;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -164,8 +164,8 @@ Status bit polling is used to detect end of operation.
|
||||
|
||||
void flash_program_word(uint32_t address, uint32_t data)
|
||||
{
|
||||
flash_program_half_word(address,(uint16_t)data);
|
||||
flash_program_half_word(address+2,(uint16_t)(data>>16));
|
||||
flash_program_half_word(address, (uint16_t)data);
|
||||
flash_program_half_word(address+2, (uint16_t)(data>>16));
|
||||
}
|
||||
|
||||
/*---------------------------------------------------------------------------*/
|
||||
|
||||
Reference in New Issue
Block a user