Description
Hello All,
The STM32H747XIH6 has many different alternate functions for the pins that have been assigned to the MKR I/O interface.
Maybe initially the most useful (lib) could be just using some pins as GPIO's that have been assigned to another function, such as
SPI2 (i.e., M3, M4). Of course, some pins are GPIO_Analog inputs only (i.e., R1 and R2 pin type AN A) - but this can be useful even using the Portenta carrier. The H7 processor is so feature rich that I think building a capability like this in the foundation of the Portenta project makes a lot of sense. Maybe somethings already available that I've missed - but I just wanted to float this out there and see what the responses are.
There are certainly a lot of available libraries available for some of the other boards which manipulate GPIO pins.
I guess the starting point would be to look at some of the lower level files that set up the pins and see if all possible GPIO functions have been mapped - and if not - enable that - then a lib that is compatible with the arduino tool chain would have to be developed - maybe this has been done already.
If this already exists - I'd like to give it a try and please point me to the lib if so.
For the GPIO's - will pinMode() override that if in the lower level code that's not enabled (GPIO mode, that is)?
And, pinPeripheral() isn't defined or available yet, correct?
(#28 Added WIP)
Thanks In Advance,
John W.
Reference:
Pin mapping files:
PeripheralPins.c
PeripheralNames.h
PinNames.h
system_clock_override.c