stm32l4_lptim: nxstyle fixes
This commit is contained in:
parent
38bd0364bf
commit
d5eaa68b50
@ -648,7 +648,6 @@ static int stm32l4_lptim_setcountmode(FAR struct stm32l4_lptim_dev_s *dev,
|
||||
{
|
||||
DEBUGASSERT(dev != NULL);
|
||||
|
||||
|
||||
if (cntmode == STM32L4_LPTIM_COUNT_CLOCK)
|
||||
{
|
||||
stm32l4_modifyreg32(dev, STM32L4_LPTIM_CFGR_OFFSET,
|
||||
@ -707,14 +706,15 @@ static uint32_t stm32l4_lptim_getcounter(FAR struct stm32l4_lptim_dev_s *dev)
|
||||
|
||||
DEBUGASSERT(dev != NULL);
|
||||
|
||||
uint32_t counter1, counter2;
|
||||
uint32_t counter1;
|
||||
uint32_t counter2;
|
||||
|
||||
do
|
||||
{
|
||||
counter1 = getreg32((uintptr_t)(priv->base + STM32L4_LPTIM_CNT_OFFSET));
|
||||
counter2 = getreg32((uintptr_t)(priv->base + STM32L4_LPTIM_CNT_OFFSET));
|
||||
} while (counter1 != counter2);
|
||||
|
||||
}
|
||||
while (counter1 != counter2);
|
||||
|
||||
return counter1;
|
||||
}
|
||||
|
@ -83,6 +83,7 @@
|
||||
/************************************************************************************
|
||||
* Pre-processor Definitions
|
||||
************************************************************************************/
|
||||
|
||||
/* Helpers **************************************************************************/
|
||||
|
||||
#define STM32L4_LPTIM_SETMODE(d,mode) ((d)->ops->setmode(d,mode))
|
||||
@ -130,7 +131,6 @@ typedef enum
|
||||
STM32L4_LPTIM_MODE_MASK = 0x000f,
|
||||
} stm32l4_lptim_mode_t;
|
||||
|
||||
|
||||
/* LPTIM Clock Source */
|
||||
|
||||
typedef enum
|
||||
@ -200,7 +200,7 @@ struct stm32l4_lptim_ops_s
|
||||
};
|
||||
|
||||
/************************************************************************************
|
||||
* Public Functions
|
||||
* Public Function Prototypes
|
||||
************************************************************************************/
|
||||
|
||||
/* Get timer structure, power-up, reset, and mark it as used */
|
||||
|
Loading…
Reference in New Issue
Block a user