aboutsummaryrefslogtreecommitdiffstats
path: root/Bootloaders/TeensyHID
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2009-07-21 13:51:34 +0000
committerDean Camera <dean@fourwalledcubicle.com>2009-07-21 13:51:34 +0000
commit7a5d045987f1d42b73a4291a9cd7ac25dc3b8c1a (patch)
treeacd259c5053f591f075ae55eb2bbb3967243d8c3 /Bootloaders/TeensyHID
parente071f3897a0946c6be1e1b5e1f78eda8dcbf6fc7 (diff)
downloadlufa-7a5d045987f1d42b73a4291a9cd7ac25dc3b8c1a.tar.gz
lufa-7a5d045987f1d42b73a4291a9cd7ac25dc3b8c1a.tar.bz2
lufa-7a5d045987f1d42b73a4291a9cd7ac25dc3b8c1a.zip
Slight changes to TeensyHID bootloader to ensure it builds under the 2KB boundary.
Changed USB_Init() and USB_Shutdown() so that they are no longer dependant on oneanother for possible code savings when the interface is never explicitly shut down.
Diffstat (limited to 'Bootloaders/TeensyHID')
-rw-r--r--Bootloaders/TeensyHID/TeensyHID.c10
-rw-r--r--Bootloaders/TeensyHID/TeensyHID.h1
2 files changed, 0 insertions, 11 deletions
diff --git a/Bootloaders/TeensyHID/TeensyHID.c b/Bootloaders/TeensyHID/TeensyHID.c
index eed709783..67dded545 100644
--- a/Bootloaders/TeensyHID/TeensyHID.c
+++ b/Bootloaders/TeensyHID/TeensyHID.c
@@ -54,9 +54,6 @@ int main(void)
while (RunBootloader)
USB_USBTask();
-
- /* Reset all configured hardware to their default states for the user app */
- ResetHardware();
/* Wait 100ms to give the host time to register the disconnection */
_delay_ms(100);
@@ -85,13 +82,6 @@ void SetupHardware(void)
USB_Init();
}
-/** Resets all configured hardware required for the bootloader back to their original states. */
-void ResetHardware(void)
-{
- /* Shut down the USB subsystem */
- USB_ShutDown();
-}
-
/** Event handler for the USB_ConfigurationChanged event. This configures the device's endpoints ready
* to relay data to and from the attached USB host.
*/
diff --git a/Bootloaders/TeensyHID/TeensyHID.h b/Bootloaders/TeensyHID/TeensyHID.h
index b7d4d6bac..484fb6b3a 100644
--- a/Bootloaders/TeensyHID/TeensyHID.h
+++ b/Bootloaders/TeensyHID/TeensyHID.h
@@ -63,7 +63,6 @@
/* Function Prototypes: */
void SetupHardware(void);
- void ResetHardware(void);
void EVENT_USB_ConfigurationChanged(void);
void EVENT_USB_UnhandledControlPacket(void);