From ec47f99c1cb2dd41cadd182f19f93fc59c237a69 Mon Sep 17 00:00:00 2001 From: Dean Date: Tue, 11 Oct 2011 06:20:18 +0000 Subject: Added User Application APIs to the CDC and DFU class bootloaders. git-svn-id: http://lufa-lib.googlecode.com/svn/trunk@1943 d5102386-fcda-11dd-9fdb-3debd5008f28 --- Bootloaders/DFU/BootloaderDFU.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Bootloaders/DFU/BootloaderDFU.c') diff --git a/Bootloaders/DFU/BootloaderDFU.c b/Bootloaders/DFU/BootloaderDFU.c index 1dae162d..078d59de 100644 --- a/Bootloaders/DFU/BootloaderDFU.c +++ b/Bootloaders/DFU/BootloaderDFU.c @@ -99,6 +99,10 @@ static uint16_t EndAddr = 0x0000; */ int main(void) { + /* Force a reference to the API jump table to prevent the linker from discarding it */ + uint8_t* volatile Dummy = BootloaderAPI_JumpTable; + (void)Dummy; + /* Configure hardware required by the bootloader */ SetupHardware(); @@ -742,4 +746,3 @@ static void ProcessReadCommand(void) else if (IS_ONEBYTE_COMMAND(SentCommand.Data, 0x01)) // Read signature byte ResponseByte = SignatureInfo[DataIndexToRead - 0x30]; } - -- cgit v1.2.3