Functions | |
void | mbed_mpu_manager_lock_ram_execution (void) |
Lock ram execute never mode off. More... | |
void | mbed_mpu_manager_unlock_ram_execution (void) |
Unlock ram execute never mode. More... | |
void | mbed_mpu_manager_lock_rom_write (void) |
Lock rom write never mode off. More... | |
void | mbed_mpu_manager_unlock_rom_write (void) |
Unlock rom write never mode. More... | |
void mbed_mpu_manager_lock_ram_execution | ( | void | ) |
Lock ram execute never mode off.
This disables the MPU's execute never ram protection and allows functions to run from RAM. Execution directly from ram will be allowed if this function is invoked at least once (the internal counter is non-zero).
Use this locking mechanism for code which needs to execute from ram such as flash programming algorithms and ram thunks.
The lock is a counter, can be locked up to USHRT_MAX This function is IRQ and thread safe
void mbed_mpu_manager_lock_rom_write | ( | void | ) |
Lock rom write never mode off.
This disables the MPU's read only ROM protection and allows ROM to be written to. Writing to ROM will not result in an MPU fault if this function is invoked at least once (the internal counter is non-zero).
Use this locking mechanism for code which needs to write to ROM such as flash programming algorithms.
The lock is a counter, can be locked up to USHRT_MAX This function is IRQ and thread safe
void mbed_mpu_manager_unlock_ram_execution | ( | void | ) |
Unlock ram execute never mode.
Use unlocking in pair with mbed_mpu_manager_lock_ram_execution().
The lock is a counter, should be equally unlocked as locked This function is IRQ and thread safe
void mbed_mpu_manager_unlock_rom_write | ( | void | ) |
Unlock rom write never mode.
Use unlocking in pair with mbed_mpu_manager_lock_rom_write().
The lock is a counter, should be equally unlocked as locked This function is IRQ and thread safe