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
248 stars 144 forks source link

Adding Nucleo_f401re with examples #391

Open FredPraca opened 3 years ago

FredPraca commented 3 years ago

Adding files for Nucleo_f401re in order to fix #313

CLAassistant commented 3 years ago

CLA assistant check
All committers have signed the CLA.

Fabien-Chouteau commented 3 years ago

Thanks @FredPraca,

Where are the arch/ARM/STM32/devices/stm32f401/stm32-adc.ad*, arch/ARM/STM32/devices/stm32f401/stm32-timers.ad* and other drivers coming from? It looks like they are copied from arch/ARM/STM32/drivers.

FredPraca commented 3 years ago

For stm32-adc, STM32F401 doesn't support multi-mode. For timers, TIM6 and TIM7 don't exist and there are no basic timers for STM32F401 or STM32F411. For PWM, the fact that several timers are missing in these series has an impact on _has_APB1Frequency.

FredPraca commented 3 years ago

After reading #340, it seems that redefining these files was a bad idea but that's the only one I got to make it work for both Nucleo F401 and Nucleo F411 in a simple way.