From cd261e52ef2c4e54968d45bea840e15d2aea4e87 Mon Sep 17 00:00:00 2001 From: Fabien Chouteau Date: Sat, 30 Nov 2019 22:47:17 +0100 Subject: [PATCH] Cortex_M.NVIC: remove dependency on Ravenscar package Ada.Interrupts Tyoe Interrupt_ID is defined with the maximum number of interrupts on Cortex-M4/7. --- arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads b/arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads index 6c53ebee..e9420ef1 100644 --- a/arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads +++ b/arch/ARM/cortex_m/src/nvic_cm4_cm7/cortex_m-nvic.ads @@ -43,11 +43,12 @@ -- STM32F4 (ARM Cortex M4F) microcontrollers from ST Microelectronics. with System; -with HAL; use HAL; -with Ada.Interrupts; use Ada.Interrupts; +with HAL; use HAL; package Cortex_M.NVIC is -- the Nested Vectored Interrupt Controller + type Interrupt_ID is range 0 .. 240; + -- 0 bits for pre-emption priority; 4 bits for subpriority Priority_Group_0 : constant UInt32 := 16#00000007#;