You've already forked Ada_Drivers_Library
mirror of
https://github.com/AdaCore/Ada_Drivers_Library.git
synced 2026-02-12 12:26:55 -08:00
* Added PMW3901 (flow) sensor support.
Includes general-purpose check for whether this SPI port is clocked.
* components/src/motion/pmw3901/pmw3901.ads: new.
* components/src/motion/pmw3901/pmw3901.adb: new.
* components/src/motion/pmw3901/pmw3901-is_clocked.adb: new. The
check for the associated SPI port being clocked is implemented
as a separate because it really belongs in the Device package.
* PMW3901 driver no longer depends on STM32.
* components/src/motion/pmw3901/pmw3901.ads: remove dependency on
STM32, replace by HAL equivalent.
(Initialize): replace precondition using Is_Clocked to 'not
Is_Initialized'.
(Is_Clocked): removed.
* components/src/motion/pmw3901/pmw3901.adb: likewise.
* components/src/motion/pmw3901/pmw3901-is_clocked.adb: removed.
* PMW3901 copyright/clarity updates.
* components/src/motion/pmw3901/pmw3901.adb: Updated copyright
notice, as requested.
* components/src/motion/pmw3901/pmw3901.ads: Likewise.
(Motion's rep spec): moved to private part, to reduce clutter.