diff options
author | cpldcpu <cpldcpu@gmail.com> | 2013-11-25 00:13:28 +0100 |
---|---|---|
committer | cpldcpu <cpldcpu@gmail.com> | 2013-11-25 00:13:28 +0100 |
commit | b54e55361cec1cc59d5175460800ad531ca017df (patch) | |
tree | 69ad21eef93edc83f64e072b0e8ea16ffebfefb1 /firmware/usbconfig.h | |
parent | ec82f5513ae13c94fc2421c310ffb99c96ad9561 (diff) | |
download | micronucleus-b54e55361cec1cc59d5175460800ad531ca017df.tar.gz micronucleus-b54e55361cec1cc59d5175460800ad531ca017df.tar.bz2 micronucleus-b54e55361cec1cc59d5175460800ad531ca017df.zip |
clean up, added LED, NO USB exit delay
Work towards v1.10
- Clean up bootloaderconfig.h
- Included option for LED
- Included second timout if no USB connected
Diffstat (limited to 'firmware/usbconfig.h')
-rw-r--r-- | firmware/usbconfig.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/firmware/usbconfig.h b/firmware/usbconfig.h index bba210d..560c34d 100644 --- a/firmware/usbconfig.h +++ b/firmware/usbconfig.h @@ -159,8 +159,16 @@ */ //#if USB_CFG_CLOCK_KHZ==16500 +//#include "osccal.h" + +#ifndef __ASSEMBLER__ + void calibrateOscillatorASM(void); + extern uint16_t idlePolls; +# define USB_RESET_HOOK(resetStarts) if(!resetStarts){ ((uint8_t*)&idlePolls)[1]= 0;calibrateOscillatorASM();} + +# define USB_CFG_HAVE_MEASURE_FRAME_LENGTH 0 +#endif -#include "osccal.h" /* define this macro to 1 if you want the function usbMeasureFrameLength() * compiled in. This function can be used to calibrate the AVR's RC oscillator. |