72 Commits

Author SHA1 Message Date
pat-rogers
45d5ef427f Don't require pin to be an output before setting or clearing.
Otherwise we cannot "prepare" the pin state before setting the mode so
that the pin comes up in the required 1/0 state rather than the default state (0).
2018-02-01 09:59:09 -06:00
Fabien Chouteau
95d2bfc4fb HAL.SDMMC: Add single and multiple block write cmd definition 2017-09-19 00:06:00 +02:00
Fabien Chouteau
1264de8c89 File_IO: Rename file modes 2017-09-15 18:47:55 +02:00
Fabien Chouteau
480067dffb Filesystem: Merge the two filesystem interfaces
And update the native implementation.
2017-09-15 18:47:55 +02:00
Fabien Chouteau
f7725acd22 HAL.Audio: Add 32kHz sample rate 2017-07-22 17:21:14 +02:00
Fabien Chouteau
c10a6bada0 HAL.Bitmap: Simplify interface with notion of source color
There are two color formats in HAL.Bitmap, the Bitmap_Color (with Alpha,
Red, Green, Blue components) and the "native" raw value of the pixel.

In the current interface users select a color for each operations (Fill,
Draw_Line, Draw_Circle, etc.) which means each operation has to be
declared twice, one with a Bitmap_Color and one with native pixel value.

Inspired by the Cairo graphics library, this patch add a Set_Source
primitive which allows to specify the color that will be use. Each
drawing operation then uses this color for rendering.

This simplifies the interface since drawing operation only have to be
declared once. It may also allow for more advanced sources in the future
like gradients or textures.
2017-05-10 00:59:13 +02:00
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
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