Skip to content

Commit

Permalink
Removed duplicate reset code
Browse files Browse the repository at this point in the history
Used ASF reset code to avoid duplication
Added some missing externs
  • Loading branch information
kuro68k committed Oct 22, 2015
1 parent 15658a5 commit 3a133ff
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 68 deletions.
8 changes: 4 additions & 4 deletions firmware/hid_bootloader/eeprom.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ inline static void EEP_WaitForNVM(void)
/**************************************************************************************************
** Externally accessible functions
*/
void EEP_WaitForNVM( void );
void EEP_LoadPageBuffer(const uint8_t *data, uint8_t size) __attribute__((nonnull));
void EEP_AtomicWritePage(uint8_t page_addr);
void EEP_EraseAll( void );
extern void EEP_WaitForNVM(void);
extern void EEP_LoadPageBuffer(const uint8_t *data, uint8_t size) __attribute__((nonnull));
extern void EEP_AtomicWritePage(uint8_t page_addr);
extern void EEP_EraseAll(void);



Expand Down
3 changes: 1 addition & 2 deletions firmware/hid_bootloader/hid_bootloader.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include <asf.h>
#include "eeprom.h"
#include "sp_driver.h"
#include "misc_asm.h"
#include "protocol.h"

#define BOOTLOADER_VERSION 1
Expand Down Expand Up @@ -233,7 +232,7 @@ void HID_set_feature_report_out(uint8_t *report)
break;

case CMD_RESET_MCU:
reset_mcu();
reset_do_soft_reset();
response[1] = 0xFF; // failed
break;

Expand Down
6 changes: 0 additions & 6 deletions firmware/hid_bootloader/hid_bootloader.cproj
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,6 @@
<None Include="src\asf.h">
<SubType>compile</SubType>
</None>
<Compile Include="misc_asm.h">
<SubType>compile</SubType>
</Compile>
<Compile Include="misc_asm.S">
<SubType>compile</SubType>
</Compile>
<Compile Include="protocol.h">
<SubType>compile</SubType>
</Compile>
Expand Down
39 changes: 0 additions & 39 deletions firmware/hid_bootloader/misc_asm.S

This file was deleted.

17 changes: 0 additions & 17 deletions firmware/hid_bootloader/misc_asm.h

This file was deleted.

0 comments on commit 3a133ff

Please sign in to comment.