Merge branch 'bugfix/uxportcompare_check_addr_range' into 'master'
portmacro: add assert to check address validity in uxPortCompareSet See merge request !1519
This commit is contained in:
commit
08be5213db
1 changed files with 5 additions and 0 deletions
|
@ -298,6 +298,11 @@ void vPortAssertIfInISR()
|
||||||
* For kernel use: Initialize a per-CPU mux. Mux will be initialized unlocked.
|
* For kernel use: Initialize a per-CPU mux. Mux will be initialized unlocked.
|
||||||
*/
|
*/
|
||||||
void vPortCPUInitializeMutex(portMUX_TYPE *mux) {
|
void vPortCPUInitializeMutex(portMUX_TYPE *mux) {
|
||||||
|
#if defined(CONFIG_SPIRAM_SUPPORT)
|
||||||
|
// Check if mux belongs to internal memory (DRAM), prerequisite for atomic operations
|
||||||
|
configASSERT(esp_ptr_internal((const void *) mux));
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
|
#ifdef CONFIG_FREERTOS_PORTMUX_DEBUG
|
||||||
ets_printf("Initializing mux %p\n", mux);
|
ets_printf("Initializing mux %p\n", mux);
|
||||||
mux->lastLockedFn="(never locked)";
|
mux->lastLockedFn="(never locked)";
|
||||||
|
|
Loading…
Reference in a new issue