BrentSeidel / BBS-BBB-Ada

A collection of Ada sources for working with Linux based embedded computers, such as the BeagleBone Black or Raspberry Pi
GNU General Public License v3.0
7 stars 3 forks source link

Extend use of datatypes and representation clauses #9

Open BrentSeidel opened 2 weeks ago

BrentSeidel commented 2 weeks ago

A number of places have been identified where the code is doing bit field operations instead of letting the compiler figure it out. These should be replaces by appropriate structures with representation clauses.

Common: Driver Status
TB6612 No change
ADS1015 Done
BME280 Done
BMP180 Done
L3GD20H Done
LSM303DLHC Done
MCP4725 Done
MCP23008 No change
MCP23017 No change
PCA9685 No change
RA8875 Pending
Linux: Driver Status
AIN Pending
GPIO Pending
I2C Pending
LED Pending
PWM Pending
SPI Pending

Arduinio Due will be handled separately once I get a chance to build a run-time for it.

BrentSeidel commented 1 week ago

BME280 driver has been updated.