diff options
author | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-21 13:39:56 +0000 |
---|---|---|
committer | Dean Camera <dean@fourwalledcubicle.com> | 2010-06-21 13:39:56 +0000 |
commit | 988604b25dc80c58841b6c6d7ffff6280ca51c9a (patch) | |
tree | 40bd11ad14425b721b37d6eaa8cb409d69ef9f2f /Projects/AVRISP-MKII | |
parent | 51c2dcf3b09960a5a50f57f8395a1e2655550db4 (diff) | |
download | lufa-988604b25dc80c58841b6c6d7ffff6280ca51c9a.tar.gz lufa-988604b25dc80c58841b6c6d7ffff6280ca51c9a.tar.bz2 lufa-988604b25dc80c58841b6c6d7ffff6280ca51c9a.zip |
Moved calls to V2Params_UpdateParamValues() out of the main AVRISP-MKII and XPLAINBridge project loops and into the AVRISP management function.
Diffstat (limited to 'Projects/AVRISP-MKII')
-rw-r--r-- | Projects/AVRISP-MKII/AVRISP.c | 8 | ||||
-rw-r--r-- | Projects/AVRISP-MKII/AVRISP.h | 2 | ||||
-rw-r--r-- | Projects/AVRISP-MKII/AVRISP.txt | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/Projects/AVRISP-MKII/AVRISP.c b/Projects/AVRISP-MKII/AVRISP.c index 0766025c1..7b2429cdc 100644 --- a/Projects/AVRISP-MKII/AVRISP.c +++ b/Projects/AVRISP-MKII/AVRISP.c @@ -48,9 +48,7 @@ int main(void) for (;;) { - Process_AVRISP_Commands(); - V2Params_UpdateParamValues(); - + AVRISP_Task(); USB_USBTask(); } } @@ -108,12 +106,14 @@ void EVENT_USB_Device_ConfigurationChanged(void) } /** Processes incoming V2 Protocol commands from the host, returning a response when required. */ -void Process_AVRISP_Commands(void) +void AVRISP_Task(void) { /* Device must be connected and configured for the task to run */ if (USB_DeviceState != DEVICE_STATE_Configured) return; + V2Params_UpdateParamValues(); + Endpoint_SelectEndpoint(AVRISP_DATA_OUT_EPNUM); /* Check to see if a V2 Protocol command has been received */ diff --git a/Projects/AVRISP-MKII/AVRISP.h b/Projects/AVRISP-MKII/AVRISP.h index 409b14744..1018ebc3d 100644 --- a/Projects/AVRISP-MKII/AVRISP.h +++ b/Projects/AVRISP-MKII/AVRISP.h @@ -72,7 +72,7 @@ /* Function Prototypes: */ void SetupHardware(void); - void Process_AVRISP_Commands(void); + void AVRISP_Task(void); void EVENT_USB_Device_Connect(void); void EVENT_USB_Device_Disconnect(void); diff --git a/Projects/AVRISP-MKII/AVRISP.txt b/Projects/AVRISP-MKII/AVRISP.txt index de08d5f37..c4ba43ccc 100644 --- a/Projects/AVRISP-MKII/AVRISP.txt +++ b/Projects/AVRISP-MKII/AVRISP.txt @@ -57,7 +57,6 @@ * - Minimum ISP target clock speed of 500KHz due to hardware SPI module prescaler limitations * - No reversed/shorted target connector detection and notification * - A seperate header is required for each of the ISP, PDI and TPI programming protocols that the user wishes to use - * - XMEGA EEPROM erase section command does not work (but EEPROM read/write and chip erase does) * * On AVR models with an ADC converter, AVCC should be tied to 5V (e.g. VBUS) and the VTARGET_ADC_CHANNEL token should be * set to an appropriate ADC channel number in the project makefile for VTARGET detection to operate correctly. On models |