You've already forked Ada_Drivers_Library
mirror of
https://github.com/AdaCore/Ada_Drivers_Library.git
synced 2026-02-12 12:26:55 -08:00
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:
@@ -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#;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user