greatscottgadgets / libgreat

a library to help you do Great things
BSD 3-Clause "New" or "Revised" License
31 stars 25 forks source link

Add drive strength register to LPC43XX SCU GPIO pin configuration #34

Closed antoinevg closed 1 year ago

antoinevg commented 1 year ago

LPC43XX microcontrollers have 10 high-drive pins:

P1_17
P2_3
P2_4
P2_5
P8_0
P8_1
P8_2
PA_1
PA_2
PA_3

This PR extends the definition of the SCU pin configuration register block by adding the drive strength register at bits 9:8.

Reference:

UM10503 LPC43xx/LPC43Sxx ARM Cortex®-M4/M0 multi-core microcontroller User manual Section 17.4.2 -- Pin configuration registers for high-drive pins.