Skip to content

Commit

Permalink
DM: increase DRVSTR on everything
Browse files Browse the repository at this point in the history
  • Loading branch information
deanm1278 committed May 21, 2018
1 parent 444858c commit dfeb187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bsp/bsp_gpio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,15 @@ void pinPeripheral(uint8_t pin, uint32_t ulPeripheral){
// Set new muxing
PORT->Group[port].PMUX[(uint32_t)pin >> 1].reg = temp|PORT_PMUX_PMUXO( ulPeripheral ) ;
// Enable port mux
PORT->Group[port].PINCFG[pin].reg |= PORT_PINCFG_PMUXEN ;
PORT->Group[port].PINCFG[pin].reg |= PORT_PINCFG_PMUXEN | PORT_PINCFG_DRVSTR ;
}
else // even pin
{
uint32_t temp ;

temp = (PORT->Group[port].PMUX[(uint32_t)pin >> 1].reg) & PORT_PMUX_PMUXO( 0xF ) ;
PORT->Group[port].PMUX[(uint32_t)pin >> 1].reg = temp|PORT_PMUX_PMUXE( ulPeripheral ) ;
PORT->Group[port].PINCFG[(uint32_t)pin].reg |= PORT_PINCFG_PMUXEN ; // Enable port mux
PORT->Group[port].PINCFG[(uint32_t)pin].reg |= PORT_PINCFG_PMUXEN | PORT_PINCFG_DRVSTR ; // Enable port mux
}
}

Expand Down

0 comments on commit dfeb187

Please sign in to comment.