armv7m7-imxrt106x: fix warnings.
@@ -465,7 +465,7 @@ int hal_platformctl(void *ptr)
{
platformctl_t *data = ptr;
int ret = -EINVAL;
- unsigned int state;
+ unsigned int state = 0;
spinlock_ctx_t sc;
hal_spinlockSet(&imxrt_common.pltctlSp, &sc);
@@ -1835,8 +1835,9 @@ int _imxrt_systickInit(u32 interval)
void _imxrt_systickSet(u8 state)
{
- *(imxrt_common.stk + stk_ctrl) &= ~(!state);
- *(imxrt_common.stk + stk_ctrl) |= !!state;
+ state = !state;
+ *(imxrt_common.stk + stk_ctrl) &= ~state;
+ *(imxrt_common.stk + stk_ctrl) |= !state;
}
