File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -58,11 +58,8 @@ void pinMode( uint32_t ulPin, uint32_t ulMode )
58
58
break ;
59
59
60
60
case OUTPUT :
61
- // enable input, to support reading back values
62
- PORT -> Group [g_APinDescription [ulPin ].ulPort ].PINCFG [g_APinDescription [ulPin ].ulPin ].bit .INEN = 1 ;
63
-
64
- // disable pullups
65
- PORT -> Group [g_APinDescription [ulPin ].ulPort ].PINCFG [g_APinDescription [ulPin ].ulPin ].bit .PULLEN = 0 ;
61
+ // enable input, to support reading back values, with pullups disabled
62
+ PORT -> Group [g_APinDescription [ulPin ].ulPort ].PINCFG [g_APinDescription [ulPin ].ulPin ].reg = (uint8_t )(PORT_PINCFG_INEN ) ;
66
63
67
64
// Set pin to output mode
68
65
PORT -> Group [g_APinDescription [ulPin ].ulPort ].DIRSET .reg = (uint32_t )(1 <<g_APinDescription [ulPin ].ulPin ) ;
You can’t perform that action at this time.
0 commit comments