modules: hal: nordic: Define NRFX_ASSERT as __ASSERT_NO_MSG

Update hal_nordic's revision, so that NRFX_ASSERT uses __ASSERT_NO_MSG
directly, not through the assert macro that comes from from libc,
as the definition of the latter might be different when some specific
libc version is used, and this could generate troubles.

Replace also uses of assert() with __ASSERT_NO_MSG() in nrfx driver
shims that use this macro without including the corresponding header
file (i.e. that implicitly rely on assert.h being included from
nrfx_glue.h, which is no longer the case).

Signed-off-by: Andrzej Głąbek <andrzej.glabek@nordicsemi.no>
This commit is contained in:
Andrzej Głąbek 2020-02-17 09:09:22 +01:00 committed by Ioannis Glaropoulos
commit 668d401293
8 changed files with 15 additions and 15 deletions

View file

@ -295,7 +295,7 @@ static int pwm_nrfx_set_power_state(u32_t new_state,
}
break;
default:
assert(false);
__ASSERT_NO_MSG(false);
break;
}
return err;
@ -320,7 +320,7 @@ static int pwm_nrfx_pm_control(struct device *dev,
}
}
} else {
assert(ctrl_command == DEVICE_PM_GET_POWER_STATE);
__ASSERT_NO_MSG(ctrl_command == DEVICE_PM_GET_POWER_STATE);
*((u32_t *)context) = (*current_state);
}