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.
This commit is contained in:
Fabien Chouteau
2019-11-30 22:47:17 +01:00
parent f74f894519
commit cd261e52ef

View File

@@ -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#;