Make sure that there is one space between while and condition
This commit is contained in:
parent
303cc1902b
commit
056aed1274
@ -130,6 +130,7 @@ static inline void pic32mx_waitstates(void)
|
||||
nwaits++;
|
||||
residual -= MAX_FLASH_HZ;
|
||||
}
|
||||
|
||||
DEBUGASSERT(nwaits < 8);
|
||||
|
||||
/* Set the FLASH wait states -- clearing all other bits! */
|
||||
|
@ -151,7 +151,8 @@ void rtos_stop_running(void)
|
||||
|
||||
nuttx_arch_exit();
|
||||
|
||||
while(1) {
|
||||
while (1)
|
||||
{
|
||||
arch_hlt();
|
||||
}
|
||||
}
|
||||
|
@ -204,7 +204,8 @@ struct vsn_sif_s vsn_sif;
|
||||
|
||||
void sif_sem_wait(void)
|
||||
{
|
||||
while( sem_wait( &vsn_sif.exclusive_access ) != 0 ) {
|
||||
while (sem_wait( &vsn_sif.exclusive_access ) != 0)
|
||||
{
|
||||
ASSERT(errno == EINTR);
|
||||
}
|
||||
}
|
||||
|
@ -157,7 +157,9 @@ void stm32_spi2select(FAR struct spi_dev_s *dev, enum spi_dev_e devid, bool sele
|
||||
stm32_gpiowrite(GPIO_CC1101_CS, !selected);
|
||||
|
||||
/* Wait for MISO to go low, indicates that Quart has stabilized */
|
||||
if (selected) {
|
||||
|
||||
if (selected)
|
||||
{
|
||||
while (stm32_gpioread(GPIO_SPI2_MISO) ) up_waste();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user