diff options
Diffstat (limited to 'firmware/src/start')
-rw-r--r-- | firmware/src/start/Cstartup.S | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/firmware/src/start/Cstartup.S b/firmware/src/start/Cstartup.S index 6861750..b154672 100644 --- a/firmware/src/start/Cstartup.S +++ b/firmware/src/start/Cstartup.S @@ -84,8 +84,15 @@ .equ AT91C_BASE_PIOA, (0xFFFFF400) .equ AT91C_ID_PIOA, (2) .equ PIOA_PDSR, (0x3c) +#if defined(PCD) .equ PIO_BOOTLDR, (1 << 27) - #.equ PIO_BOOTLDR, (1 << 6) +#elif defined(PICC) + .equ PIO_BOOTLDR, (1 << 6) +#elif defined(OLIMEX) + .equ PIO_BOOTLDR, (1 << 19) +#else +#error please define PIO_BOOTLDR +#endif /* #include "AT91SAM7S64_inc.h" */ |