AdaCore / Ada_Drivers_Library

Ada source code and complete sample GNAT projects for selected bare-board platforms supported by GNAT.
BSD 3-Clause "New" or "Revised" License
241 stars 142 forks source link

Proposed PWM3901 driver #343

Closed simonjwright closed 4 years ago

simonjwright commented 4 years ago

The Crazyflie Flow Deck uses a PWM3901 optical flow sensor, I propose to make a driver for it (under components/src/motion, I think?).

The chip uses SPI; in Crazyflie, only decks use SPI (decks are like shields). I’d like to add Initialize_Deck_SPIto boards/crazyflie/src/stm32-board.ad? on the lines of Initialize_Shield_SPI in the equivalent OpenMV package.

Would these proposals be acceptable?

(the license in my source material is MIT)

Fabien-Chouteau commented 4 years ago

Would these proposals be acceptable?

Absolutely Simon :)

As you said there is already something similar for the OpenMV2.

(the license in my source material is MIT)

Since you are going to write your own drivers, that is not going to be a problem.

Looking forward to this new driver, and to see it in action on the Crazyflie :)