stm32l5: Rename up_waste to stm32l5_waste
To comply to NuttX naming conventions. Signed-off-by: Michael Jung <mijung@gmx.net>
This commit is contained in:
parent
2dbfa54150
commit
a0ca686490
|
@ -152,7 +152,7 @@ static void flash_unlock(void)
|
|||
{
|
||||
while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
|
||||
{
|
||||
up_waste();
|
||||
stm32l5_waste();
|
||||
}
|
||||
|
||||
if (getreg32(STM32L5_FLASH_NSCR) & FLASH_CR_LOCK)
|
||||
|
@ -201,7 +201,7 @@ static inline void flash_erase(size_t page)
|
|||
|
||||
while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
|
||||
{
|
||||
up_waste();
|
||||
stm32l5_waste();
|
||||
}
|
||||
|
||||
modifyreg32(STM32L5_FLASH_NSCR, FLASH_CR_PAGE_ERASE, 0);
|
||||
|
@ -274,7 +274,7 @@ uint32_t stm32l5_flash_user_optbytes(uint32_t clrbits, uint32_t setbits)
|
|||
|
||||
while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
|
||||
{
|
||||
up_waste();
|
||||
stm32l5_waste();
|
||||
}
|
||||
|
||||
flash_optbytes_lock();
|
||||
|
@ -476,7 +476,7 @@ ssize_t up_progmem_write(size_t addr, const void *buf, size_t buflen)
|
|||
|
||||
while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
|
||||
{
|
||||
up_waste();
|
||||
stm32l5_waste();
|
||||
}
|
||||
|
||||
/* Verify */
|
||||
|
|
|
@ -194,7 +194,7 @@ void stm32l5_rcc_enablelse(void)
|
|||
while (!((regval = getreg32(STM32L5_RCC_BDCR)) &
|
||||
RCC_BDCR_LSESYSRDY))
|
||||
{
|
||||
up_waste();
|
||||
stm32l5_waste();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ uint32_t idle_wastecounter = 0;
|
|||
* Public Functions
|
||||
*****************************************************************************/
|
||||
|
||||
void up_waste(void)
|
||||
void stm32l5_waste(void)
|
||||
{
|
||||
idle_wastecounter++;
|
||||
}
|
||||
|
|
|
@ -44,16 +44,16 @@ extern "C"
|
|||
|
||||
/* Waste CPU Time
|
||||
*
|
||||
* up_waste() is the logic that will be executed when portions of kernel
|
||||
* stm32l5_waste() is the logic that will be executed when portions of kernel
|
||||
* or user-app is polling some register or similar, waiting for desired
|
||||
* status. This time is wasted away. This function offers a measure of
|
||||
* badly written piece of software or some undesired behavior.
|
||||
* status. This time is wasted away. This function offers a measure of badly
|
||||
* written piece of software or some undesired behavior.
|
||||
*
|
||||
* At the same time this function adds to some IDLE time which portion
|
||||
* cannot be used for other purposes (yet).
|
||||
*/
|
||||
|
||||
void up_waste(void);
|
||||
void stm32l5_waste(void);
|
||||
|
||||
#undef EXTERN
|
||||
#if defined(__cplusplus)
|
||||
|
|
Loading…
Reference in New Issue