chg: OR in values.

This commit is contained in:
Chris 2018-07-02 18:54:12 +02:00
commit 35b7989b1c
3 changed files with 3 additions and 9 deletions

View file

@ -489,7 +489,7 @@ void usb_enable() {
// Specific Chip USB Initialisation
// Enables the 48MHz USB clock UDPCK and System Peripheral USB Clock
AT91C_BASE_PMC->PMC_SCER = AT91C_PMC_UDP;
AT91C_BASE_PMC->PMC_SCER |= AT91C_PMC_UDP;
AT91C_BASE_PMC->PMC_PCER = (1 << AT91C_ID_UDP);
AT91C_BASE_UDP->UDP_FADDR = 0;