77 Commits

Author SHA1 Message Date
Jerome Lambourg
13ef8db311 Rework the sdcard branch from master.
This merges the various sdcard handling enhancements into a single commit,
the two branches master and sdcard having diverged too much to perform
a simple git merge.
2017-03-28 14:55:52 +02:00
Fabien Chouteau
d8181686c3 Bitmap: Add monochrome support 2017-02-26 20:30:50 +01:00
Fabien Chouteau
632b449d1d HAL types: Revert UInt1 to Bit 2017-02-15 19:04:27 +01:00
Fabien Chouteau
0a804815ae HAL: Make UInt8|16|32 derived from Interfaces types rather than subtypes
This remove the dependency on the Interfaces package which simplify the
use of HAL types.

Also remove Byte and Bit subtype.
2017-02-13 21:18:34 +01:00
Fabien Chouteau
5f61adb313 HAL.GPIO: Fix Set precondition and add comments 2017-02-04 13:40:59 +01:00
Fabien Chouteau
9bfa2bb529 HAL.GPIO: Rename pull-up/pull-down type and primitives 2017-02-03 20:21:47 +01:00
Fabien Chouteau
fd65f49de0 HAL.GPIO: Add pull-up/pull-down control 2017-02-03 00:39:58 +01:00
Fabien Chouteau
b565c81385 HAL.GPIO: Add primitives to control GPIO mode (in, out) 2017-02-03 00:39:58 +01:00
Jerome Lambourg
d47fb57071 Make the HAL.I2C.I2C_Data a subtype of Byte_Array.
This makes the API more consistent with the rest of the HAL.
2017-02-01 15:45:07 +01:00
Fabien Chouteau
d4f5542d87 Merge pull request #115 from AdaCore/hal_config_pragma
Use configuration pragmas to control HAL dependency
2017-01-27 08:14:56 +01:00
Fabien Chouteau
bc2c7f810f HAL.Bitmap: Move color conversion utilities to a dedicated package 2017-01-21 19:50:50 +01:00
Fabien Chouteau
f645d76a3f HAL.Bitmap: Move Draw_Line and Cubic_Bezier with the other drawing primitives 2017-01-21 19:50:50 +01:00
Fabien Chouteau
d44d8f9388 HAL.Bitmap: Finish cleanup of interface 2017-01-21 16:35:53 +01:00
Fabien Chouteau
33488fcc59 HAL.Bitmap: Split interface and implementation 2017-01-21 13:16:48 +01:00
Fabien Chouteau
fdc3ef6e47 HAL.Bitmap: Unify drawing API by using Point and Rect types 2017-01-21 12:49:56 +01:00
Fabien Chouteau
f76a004acb HAL.Bitmap: Move Draw/Fill_Rect with the other drawing primitives 2017-01-21 11:54:14 +01:00
Fabien Chouteau
94fa1bfc31 HAL.Bitmap: Move Draw_Circle and Fill_Circle with the other drawing primitives 2017-01-21 11:54:04 +01:00
Fabien Chouteau
e167eb8a01 HAL.Bitmap: Add two functions that improve the abstraction
The goal is to be able to support bitmap that are stored in an external
device. For example a screen with embedded memory like the ST7735R.
2017-01-21 11:20:51 +01:00
Fabien Chouteau
75f13b8382 HAL.Framebuffer Refactoring: Remove Get_ and Is_ prefixes 2017-01-21 11:11:46 +01:00
Fabien Chouteau
80f15f741b HAL.Bitmap Refactoring: Fix function name Get_Pixel to Pixel 2017-01-21 11:11:15 +01:00
Fabien Chouteau
fc24e56b27 HAL.Bitmap: Fix parameter access
Modifying the bitmap requires write access. As consequence,
framebuffer.Get_Hidden_Buffer has to return a not null access.
2017-01-21 10:51:01 +01:00
Fabien Chouteau
8ed009bc31 Use configuration pragmas to control HAL dependency 2017-01-19 23:27:25 +01:00
Pat Rogers
bc0fdcfb92 Merge branch 'master' into unified_access_to-classwide_type_names 2016-12-22 10:52:03 -06:00
Fabien Chouteau
106eeb5de2 CS43L22: Use HAL.Audio definition of audio frequency 2016-12-18 22:31:44 +01:00
Fabien Chouteau
69b3302650 HAL.Audio: Replace Audio_Device with Audio_Stream interface
The current version of HAL.Audio defines an interface Audio_Device that
is actually more a media controller (play, pause, resume volume). it
could be interesting to have a Media_Controller interface at some point
because it's a service that can be provided by different back-ends (USB,
Bluetooth, IR) but right now we don't have any.

This patch remove the "Audio_Device" and replace it with a more
Audio_Stream with three subprograms:

 - Transmit audio buffer
 - Receive audio buffer
 - Set sample frequency
2016-12-18 22:31:44 +01:00