Bridgetek / ft9xx-sdk

ft90x SDK
MIT License
6 stars 0 forks source link

Add enums for GPIO pins and test macro. #48

Closed brtchip-gdm closed 9 months ago

brtchip-gdm commented 9 months ago

This change sets up "pad" enumerations for the various pad functions of the GPIO mappings.

Main programs can now have a line like SET_GPIO_FUNCTION(uart0_txd); which will select the UART 0 TXD function on the defined GPIO (FT90x on pin GPIO49 or FT93x on pin GPIO23). Remember that physical pin mappings depend on the device package.