Make sure that there is one space between while and condition

This commit is contained in:
Gregory Nutt 2014-04-12 13:09:48 -06:00
parent eee82879cb
commit 33d5d24964
19 changed files with 26 additions and 24 deletions

View File

@ -67,7 +67,7 @@
void up_lowputs(const char *str)
{
while(*str)
while (*str)
{
up_lowputc(*str++);
}

View File

@ -1738,7 +1738,7 @@ static int nand_read_pmecc(struct sam_nandcs_s *priv, off_t block,
/* Wait until the kernel of the PMECC is not busy */
while((nand_getreg(SAM_HSMC_PMECCSR) & HSMC_PMECCSR_BUSY) != 0);
while ((nand_getreg(SAM_HSMC_PMECCSR) & HSMC_PMECCSR_BUSY) != 0);
return OK;
}
#endif

View File

@ -148,7 +148,7 @@ int up_progmem_erasepage(uint16_t page)
putreg32(page * STM32_FLASH_PAGESIZE, STM32_FLASH_AR);
modifyreg32(STM32_FLASH_CR, 0, FLASH_CR_STRT);
while(getreg32(STM32_FLASH_SR) & FLASH_SR_BSY) up_waste();
while (getreg32(STM32_FLASH_SR) & FLASH_SR_BSY) up_waste();
modifyreg32(STM32_FLASH_CR, FLASH_CR_PER, 0);
@ -232,7 +232,7 @@ int up_progmem_write(uint32_t addr, const void *buf, size_t count)
putreg16(*hword, addr);
while(getreg32(STM32_FLASH_SR) & FLASH_SR_BSY) up_waste();
while (getreg32(STM32_FLASH_SR) & FLASH_SR_BSY) up_waste();
/* Verify */

View File

@ -129,14 +129,14 @@ void stm32_pwr_setvos(uint16_t vos)
* 4. Poll VOSF bit of in PWR_CSR register. Wait until it is reset to 0.
*/
while((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_VOSF) != 0);
while ((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_VOSF) != 0);
regval = stm32_pwr_getreg(STM32_PWR_CR_OFFSET);
regval &= ~PWR_CR_VOS_MASK;
regval |= (vos & PWR_CR_VOS_MASK);
stm32_pwr_putreg(STM32_PWR_CR_OFFSET, regval);
while((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_VOSF) != 0);
while ((stm32_pwr_getreg(STM32_PWR_CSR_OFFSET) & PWR_CSR_VOSF) != 0);
}
#endif

View File

@ -548,7 +548,7 @@ static void stm32_stdclockconfig(void)
/* Wait for PLL2 ready */
while((getreg32(STM32_RCC_CR) & RCC_CR_PLL2RDY) == 0);
while ((getreg32(STM32_RCC_CR) & RCC_CR_PLL2RDY) == 0);
/* Setup PLL3 for MII/RMII clock on MCO */

View File

@ -457,7 +457,7 @@ static void stm32_stdclockconfig(void)
/* Wait for PLL2 ready */
while((getreg32(STM32_RCC_CR) & RCC_CR_PLL2RDY) == 0);
while ((getreg32(STM32_RCC_CR) & RCC_CR_PLL2RDY) == 0);
/* Setup PLL3 for MII/RMII clock on MCO */

View File

@ -686,14 +686,14 @@ static void stm32_stdclockconfig(void)
regval = getreg32(STM32_PWR_CR);
regval |= PWR_CR_ODEN;
putreg32(regval, STM32_PWR_CR);
while((getreg32(STM32_PWR_CSR) & PWR_CSR_ODRDY) == 0)
while ((getreg32(STM32_PWR_CSR) & PWR_CSR_ODRDY) == 0)
{
}
regval = getreg32(STM32_PWR_CR);
regval |= PWR_CR_ODSWEN;
putreg32(regval, STM32_PWR_CR);
while((getreg32(STM32_PWR_CSR) & PWR_CSR_ODSWRDY) == 0)
while ((getreg32(STM32_PWR_CSR) & PWR_CSR_ODSWRDY) == 0)
{
}

View File

@ -217,7 +217,7 @@ static ssize_t tiva_bwrite(FAR struct mtd_dev_s *dev, off_t startblock, size_t n
/* wait until write has finished */
while(getreg32(TIVA_FLASH_FMC) & FLASH_FMC_WRITE);
while (getreg32(TIVA_FLASH_FMC) & FLASH_FMC_WRITE);
}
return nblocks;

View File

@ -67,7 +67,7 @@
void up_lowputs(const char *str)
{
while(*str)
while (*str)
{
up_lowputc(*str++);
}

View File

@ -68,7 +68,7 @@
void up_puts(const char *str)
{
while(*str)
while (*str)
{
up_putc(*str++);
}

View File

@ -69,7 +69,7 @@
void up_puts(const char *str)
{
while(*str)
while (*str)
{
up_putc(*str++);
}

View File

@ -67,7 +67,7 @@
void up_lowputs(const char *str)
{
while(*str)
while (*str)
{
up_lowputc(*str++);
}

View File

@ -68,7 +68,7 @@
void up_puts(const char *str)
{
while(*str)
while (*str)
{
up_putc(*str++);
}

View File

@ -125,11 +125,12 @@ static inline void pic32mx_waitstates(void)
residual = BOARD_CPU_CLOCK;
nwaits = 0;
while(residual > MAX_FLASH_HZ)
while (residual > MAX_FLASH_HZ)
{
nwaits++;
residual -= MAX_FLASH_HZ;
}
DEBUGASSERT(nwaits < 8);
/* Set the FLASH wait states -- clearing all other bits! */

View File

@ -151,9 +151,10 @@ void rtos_stop_running(void)
nuttx_arch_exit();
while(1) {
arch_hlt();
}
while (1)
{
arch_hlt();
}
}
int rtos_vnet_init(struct rgmp_vnet *vnet)

View File

@ -67,7 +67,7 @@
void up_lowputs(const char *str)
{
while(*str)
while (*str)
{
up_lowputc(*str++);
}

View File

@ -68,7 +68,7 @@
void up_puts(const char *str)
{
while(*str)
while (*str)
{
up_putc(*str++);
}

View File

@ -67,7 +67,7 @@
void up_lowputs(const char *str)
{
while(*str)
while (*str)
{
up_lowputc(*str++);
}

View File

@ -68,7 +68,7 @@
void up_puts(const char *str)
{
while(*str)
while (*str)
{
up_putc(*str++);
}