[Style] More whitespace fixes.

This commit is contained in:
Piotr Esden-Tempski
2015-12-14 23:42:27 +01:00
parent 3a7cbec776
commit 5828a77749
4 changed files with 12 additions and 11 deletions

View File

@@ -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
}

View File

@@ -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;
}
}

View File

@@ -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));
}
/*---------------------------------------------------------------------------*/