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:
Michael Jung 2021-03-18 08:16:29 +01:00 committed by Xiang Xiao
parent 2dbfa54150
commit a0ca686490
4 changed files with 10 additions and 10 deletions

View File

@ -152,7 +152,7 @@ static void flash_unlock(void)
{ {
while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY) while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
{ {
up_waste(); stm32l5_waste();
} }
if (getreg32(STM32L5_FLASH_NSCR) & FLASH_CR_LOCK) 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) while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
{ {
up_waste(); stm32l5_waste();
} }
modifyreg32(STM32L5_FLASH_NSCR, FLASH_CR_PAGE_ERASE, 0); 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) while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
{ {
up_waste(); stm32l5_waste();
} }
flash_optbytes_lock(); 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) while (getreg32(STM32L5_FLASH_NSSR) & FLASH_SR_BSY)
{ {
up_waste(); stm32l5_waste();
} }
/* Verify */ /* Verify */

View File

@ -194,7 +194,7 @@ void stm32l5_rcc_enablelse(void)
while (!((regval = getreg32(STM32L5_RCC_BDCR)) & while (!((regval = getreg32(STM32L5_RCC_BDCR)) &
RCC_BDCR_LSESYSRDY)) RCC_BDCR_LSESYSRDY))
{ {
up_waste(); stm32l5_waste();
} }
} }

View File

@ -36,7 +36,7 @@ uint32_t idle_wastecounter = 0;
* Public Functions * Public Functions
*****************************************************************************/ *****************************************************************************/
void up_waste(void) void stm32l5_waste(void)
{ {
idle_wastecounter++; idle_wastecounter++;
} }

View File

@ -44,16 +44,16 @@ extern "C"
/* Waste CPU Time /* 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 * or user-app is polling some register or similar, waiting for desired
* status. This time is wasted away. This function offers a measure of * status. This time is wasted away. This function offers a measure of badly
* badly written piece of software or some undesired behavior. * written piece of software or some undesired behavior.
* *
* At the same time this function adds to some IDLE time which portion * At the same time this function adds to some IDLE time which portion
* cannot be used for other purposes (yet). * cannot be used for other purposes (yet).
*/ */
void up_waste(void); void stm32l5_waste(void);
#undef EXTERN #undef EXTERN
#if defined(__cplusplus) #if defined(__cplusplus)