Modifying Drive Mode From C Code | Cypress Semiconductor
Modifying Drive Mode From C Code
Is it possible to change the drive mode of a certain PIN at runtime for C Code.
In my application I have defined P3 as "Pull Up" in the IDE, I want to change it to "Pull Down" at runtime.
My best guess how to do this is code like this ...
PRT3DM1 |= 0x80 PRT3DM0 |= 0x80
In other examples I've seen stuff about 'disconnect from global bus', would I need to do this as well?