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
248 stars 144 forks source link

Significantly simplify Serial_IO.Nonblocking and revise associated files #406

Closed pat-rogers closed 2 years ago

pat-rogers commented 2 years ago

serial_io: Use better name for hardware init routines

serial_io.nonblocking: Implement primary type Serial_Port directly as a protected type. Add discriminant for IRQ priority. Simplify transmission routine (remove a protected variable). Add Acquire/Release routines for use with Jorvik. Remove pre/post for initialization since not work extra complexity for type impl.

demo mains: Revise for name changes