arch: arm: cortex_m: Rework DT_NUM_IRQ_PRIO_BITS
To remove the need to have DT_NUM_IRQ_PRIO_BITS defined in every dts_fixup.h we can just handle the few variant cases in irq.h. This allows us to remove DT_NUM_MPU_REGIONS from all the dts_fixup.h files. Signed-off-by: Kumar Gala <kumar.gala@linaro.org>
This commit is contained in:
parent
c5e5d531ca
commit
5648df39ac
7 changed files with 38 additions and 9 deletions
|
@ -280,6 +280,6 @@ typedef enum IRQn {
|
|||
*/
|
||||
|
||||
#define __MPU_PRESENT 1
|
||||
#define __NVIC_PRIO_BITS DT_NUM_IRQ_PRIO_BITS
|
||||
#define __NVIC_PRIO_BITS NUM_IRQ_PRIO_BITS
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue