AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
241 stars 142 forks source link

Changes cm0 Interrupt_Priority to UInt32 subtype for compat w/ cm4_7 #329

Closed nocko closed 4 years ago

nocko commented 4 years ago

This would allow removal of last NVIC glue in the nRF family, but it does so with a little less safety.

Currently cm0 Interrupt_Priority is UInt8, in this patch it's a range subtype on UInt32. It would be a warning at compile time to specify an out-of-range value, but currently it's a compile time error.