Apply SBI/CBI/TEST in HAL

This commit is contained in:
Scott Lahteine
2021-05-03 20:09:21 -05:00
parent 7378afc6d8
commit 5cbdf51b4a
4 changed files with 15 additions and 18 deletions

View File

@ -117,7 +117,7 @@ void HAL_init() {
PinCfg.Pinmode = 2; // no pull-up/pull-down
PINSEL_ConfigPin(&PinCfg);
// now set CLKOUT_EN bit
LPC_SC->CLKOUTCFG |= (1<<8);
SBI(LPC_SC->CLKOUTCFG, 8);
#endif
USB_Init(); // USB Initialization