diff options
author | Jenna Fox <a@creativepony.com> | 2012-09-26 13:03:53 +1000 |
---|---|---|
committer | Jenna Fox <a@creativepony.com> | 2012-09-26 13:03:53 +1000 |
commit | 8a578076dbb542a0e1218e93a2ae1cfa735ef964 (patch) | |
tree | 36f00cac6d5a18b95d4f53379dfc62b8c629a307 /firmware/bootloaderconfig.h | |
parent | de19ff10edcb97d9b3b453516bd5975f62db449b (diff) | |
download | micronucleus-8a578076dbb542a0e1218e93a2ae1cfa735ef964.tar.gz micronucleus-8a578076dbb542a0e1218e93a2ae1cfa735ef964.tar.bz2 micronucleus-8a578076dbb542a0e1218e93a2ae1cfa735ef964.zip |
Adding more comments mostly - no functional changes
Diffstat (limited to 'firmware/bootloaderconfig.h')
-rw-r--r-- | firmware/bootloaderconfig.h | 38 |
1 files changed, 20 insertions, 18 deletions
diff --git a/firmware/bootloaderconfig.h b/firmware/bootloaderconfig.h index 772c01b..fc0d831 100644 --- a/firmware/bootloaderconfig.h +++ b/firmware/bootloaderconfig.h @@ -175,30 +175,32 @@ these macros are defined, the boot loader uses them. #endif /* tiny85 Architecture Specifics */ -#ifdef __AVR_ATtiny85__ -# define TINY85MODE +#ifndef __AVR_ATtiny85__ +# error "uBoot is only designed for attiny85" +#endif + +#define TINY85MODE // number of bytes before the boot loader vectors to store the tiny application vector table -# define TINYVECTOR_RESET_OFFSET 4 -# define TINYVECTOR_USBPLUS_OFFSET 2 +#define TINYVECTOR_RESET_OFFSET 4 +#define TINYVECTOR_USBPLUS_OFFSET 2 -# define RESET_VECTOR_OFFSET 0 -# define USBPLUS_VECTOR_OFFSET 2 +#define RESET_VECTOR_OFFSET 0 +#define USBPLUS_VECTOR_OFFSET 2 -# if BOOTLOADER_CAN_EXIT == 0 -# define BOOTLOADER_CAN_EXIT 1 -# endif +//#if BOOTLOADER_CAN_EXIT == 0 +//# define BOOTLOADER_CAN_EXIT 1 +//#endif // setup interrupt for Pin Change for D+ -# define USB_INTR_CFG PCMSK -# define USB_INTR_CFG_SET (1 << USB_CFG_DPLUS_BIT) -# define USB_INTR_CFG_CLR 0 -# define USB_INTR_ENABLE GIMSK -# define USB_INTR_ENABLE_BIT PCIE -# define USB_INTR_PENDING GIFR -# define USB_INTR_PENDING_BIT PCIF -# define USB_INTR_VECTOR PCINT0_vect -#endif +#define USB_INTR_CFG PCMSK +#define USB_INTR_CFG_SET (1 << USB_CFG_DPLUS_BIT) +#define USB_INTR_CFG_CLR 0 +#define USB_INTR_ENABLE GIMSK +#define USB_INTR_ENABLE_BIT PCIE +#define USB_INTR_PENDING GIFR +#define USB_INTR_PENDING_BIT PCIF +#define USB_INTR_VECTOR PCINT0_vect /* max 6200ms to not overflow idlePolls variable */ |