drivers: Add 'U' to unsigned variable assignments
Add 'U' to a value when assigning it to an unsigned variable. MISRA-C rule 7.2 Signed-off-by: Patrik Flykt <patrik.flykt@intel.com>
This commit is contained in:
parent
25e8e4d4e7
commit
8ff96b5a57
172 changed files with 693 additions and 693 deletions
|
@ -30,7 +30,7 @@ static inline void wdt_esp32_seal(void)
|
|||
{
|
||||
volatile u32_t *reg = (u32_t *)TIMG_WDTWPROTECT_REG(1);
|
||||
|
||||
*reg = 0;
|
||||
*reg = 0U;
|
||||
}
|
||||
|
||||
static inline void wdt_esp32_unseal(void)
|
||||
|
@ -71,7 +71,7 @@ static void adjust_timeout(u32_t timeout)
|
|||
/* MWDT ticks every 12.5ns. Set the prescaler to 40000, so the
|
||||
* counter for each watchdog stage is decremented every 0.5ms.
|
||||
*/
|
||||
*reg = 40000;
|
||||
*reg = 40000U;
|
||||
|
||||
reg = (u32_t *)TIMG_WDTCONFIG2_REG(1);
|
||||
*reg = ticks;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue