Commit Graph

16 Commits

Author SHA1 Message Date
Pat Rogers
da9464829e corrections to serial_io facilities (#409)
demo-*:
use Unchecked_Access in these specific demos

serial_io-blocking.ads:
correct postcondition on procedure Receive so that empty content is handled properly

serial_io-nonblocking.ads:
add postconditions to procedure Receive
2022-05-30 15:40:25 +02:00
Pat Rogers
1dfd1ddf14 Significantly simplify Serial_IO.Nonblocking and revise associated files (#407)
* Significantly simplify Serial_IO.Nonblocking and revise associated files

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).
Remove pre/post for initialization since not worth extra complexity for type impl.
Use better names as replacements for Put/get.

serial_io.blocking:
Update names for procedures Put and Get to be same as those of package Nonblocking.
Update name for hardware init routine to be consistent with other packages.
Remove pre/post for initialization since not worth extra complexity for type impl.

serial_io.streaming:
Update names for procedures Put and Get to be same as in Blocking and Nonblocking.
Update name for hardware init routine to be consistent with other packages.
Remove pre/post for initialization since not worth extra complexity for type impl.

peripherals_nonblocking:
Specify new IRQ priority discriminant.
Remove unnecessary constant.
Improve comments.

peripherals_blocking:
Improve comments.

peripherals_streaming:
Improve comments.

demo mains:
Revise for name changes.
Improve comments.

* remove trailing blanks
2022-05-24 17:33:18 +02:00
Michael du Breuil
c1555d6cca Examples: Simplify lcd_std_out character emission 2020-02-11 12:23:41 +01:00
Michael du Breuil
2f7f7dd279 Examples: fix whitespace errors that fail GNAT style checks 2019-12-13 16:18:49 +01:00
Fabien Chouteau
281fb45cb1 examples/draw: Fix typo 2018-04-27 21:16:40 +02:00
Fabien Chouteau
e7873c90a8 Update example projects for new board support projects 2018-04-27 21:16:40 +02:00
Fabien Chouteau
36f137ad18 Fix "use clause for has no effect" errors 2018-03-09 16:59:59 +01:00
Fabien Chouteau
0c2ddc4649 Examples: Bring back the blinky and serial examples for the STM32F4 disco
Also fixes the serial example on the F429 to use only the Ravenscar full
run-time, and simplify the blinky example.
2017-12-05 18:29:49 +01:00
pat-rogers
a3937cea50 robust, safer version of GPIO_Port_Config and Configure_IO routine 2017-11-18 07:15:29 -06:00
Fabien Chouteau
3a7945c20a Use new GPRbuild attribute: Create_Missing_Dirs
And remove now useless .gitignore files and empty directories.
2017-06-27 15:58:10 +02:00
Fabien Chouteau
491448ecb2 serial_io-nonblocking.ads: Fix build error about PO contracts
I didn't investigate at all.
2017-06-27 14:52:18 +02:00
Jerome Lambourg
07524e3f89 examples/common/common.gpr: Do not specify the stack size
This is the responsibility of the final application.
2017-06-26 18:18:59 +02:00
Jerome Lambourg
b4acbb9ad9 Further refactor the board projects.
This commit in particular removes the need for aggregate projects.
2017-06-26 18:18:59 +02:00
Jerome Lambourg
1ee78d543f Remove the dependency over embedded-runtimes.
This build dependency won't work anymore with the next GNAT release as
runtimes will now require being installed into the compiler.

This commit also now generates automatically the board projects, to ease
the addition of new boards and runtimes, as well as taking into account
modifications refactoring of the library.
2017-06-26 18:16:05 +02:00
Fabien Chouteau
4270cd3a32 Create a README in examples/shared
To make sure people find their way to the project files.
2017-05-16 16:47:02 +02:00
Fabien Chouteau
3f8fb19742 Sort the example projects by boards
This is to create a simpler path for newcomers to find what's available
for the board(s) they have.
2017-05-16 12:18:37 +02:00