mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
update gr_citrus as well
This commit is contained in:
parent
2828a56a4f
commit
27fc8a21cd
@ -203,9 +203,10 @@ void board_init(void)
|
|||||||
IEN(SCI0, TEI0) = 1;
|
IEN(SCI0, TEI0) = 1;
|
||||||
|
|
||||||
/* Enable USB0 */
|
/* Enable USB0 */
|
||||||
|
unsigned short oldPRCR = SYSTEM.PRCR.WORD;
|
||||||
SYSTEM.PRCR.WORD = SYSTEM_PRCR_PRKEY | SYSTEM_PRCR_PRC1;
|
SYSTEM.PRCR.WORD = SYSTEM_PRCR_PRKEY | SYSTEM_PRCR_PRC1;
|
||||||
MSTP(USB0) = 0;
|
MSTP(USB0) = 0;
|
||||||
SYSTEM.PRCR.WORD = SYSTEM_PRCR_PRKEY;
|
SYSTEM.PRCR.WORD = SYSTEM_PRCR_PRKEY | oldPRCR;
|
||||||
}
|
}
|
||||||
|
|
||||||
//--------------------------------------------------------------------+
|
//--------------------------------------------------------------------+
|
||||||
|
Loading…
x
Reference in New Issue
Block a user