Skip to content
This repository has been archived by the owner on Feb 24, 2021. It is now read-only.

Commit

Permalink
chg: OR in values.
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris committed Jul 2, 2018
1 parent dfa4f62 commit 35b7989
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
2 changes: 1 addition & 1 deletion bootrom/bootrom.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ static void ConfigClocks(void) {
// slow clock runs at 32Khz typical regardless of crystal

// enable system clock and USB clock
AT91C_BASE_PMC->PMC_SCER = AT91C_PMC_PCK | AT91C_PMC_UDP;
AT91C_BASE_PMC->PMC_SCER |= AT91C_PMC_PCK | AT91C_PMC_UDP;

// enable the clock to the following peripherals
AT91C_BASE_PMC->PMC_PCER =
Expand Down
2 changes: 1 addition & 1 deletion common/usb_cdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
8 changes: 1 addition & 7 deletions include/config_gpio.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,10 @@
#define GPIO_MUXSEL_HIPKD AT91C_PIO_PA19
#define GPIO_MUXSEL_LOPKD AT91C_PIO_PA20


// RDV40 has no HIRAW/LORAW, its used for FPC
#define GPIO_MUXSEL_HIRAW AT91C_PIO_PA21
#define GPIO_MUXSEL_LORAW AT91C_PIO_PA22

// RDV40 has no HIRAW/LORAW, its used for FPC
#ifdef WITH_FPC
#define GPIO_FPC_RDX AT91C_PA21_RXD1
#define GPIO_FPC_TDX AT91C_PA22_TXD1
#endif

#define GPIO_BUTTON AT91C_PIO_PA23
#define GPIO_USB_PU AT91C_PIO_PA24
#define GPIO_RELAY AT91C_PIO_PA25
Expand Down

0 comments on commit 35b7989

Please sign in to comment.