diff options
| author | Roman Zolotarev <hi@romanzolotarev.com> | 2016-04-26 16:23:10 +0800 | 
|---|---|---|
| committer | Roman Zolotarev <hi@romanzolotarev.com> | 2016-04-26 16:23:10 +0800 | 
| commit | 28f0b64e31b8c30a842dfd356421356cf0513177 (patch) | |
| tree | e5a76f4a2fb747c3599de1e297f46e4dc6fd4f0e /tmk_core/protocol/lufa | |
| parent | fa2eedb7bd906634b8c500ba0d91638e63eaafed (diff) | |
| parent | bf56838fe99aafd37559d560e47b707a83c87588 (diff) | |
Merge branch 'master' of https://github.com/jackhumbert/qmk_firmware
Diffstat (limited to 'tmk_core/protocol/lufa')
| -rw-r--r-- | tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c | 4 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c | 2 | ||||
| -rw-r--r-- | tmk_core/protocol/lufa/lufa.c | 18 | 
3 files changed, 10 insertions, 14 deletions
| diff --git a/tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c b/tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c index f66a483e6e..58bb338927 100644 --- a/tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c +++ b/tmk_core/protocol/lufa/LUFA-git/Bootloaders/CDC/BootloaderCDC.c @@ -327,7 +327,7 @@ static void ReadWriteMemoryBlock(const uint8_t Command)  			else  			{  				/* Write the next EEPROM byte from the endpoint */ -				eeprom_write_byte((uint8_t*)((intptr_t)(CurrAddress >> 1)), FetchNextCommandByte()); +				eeprom_update_byte((uint8_t*)((intptr_t)(CurrAddress >> 1)), FetchNextCommandByte());  				/* Increment the address counter after use */  				CurrAddress += 2; @@ -581,7 +581,7 @@ static void CDC_Task(void)  	else if (Command == AVR109_COMMAND_WriteEEPROM)  	{  		/* Read the byte from the endpoint and write it to the EEPROM */ -		eeprom_write_byte((uint8_t*)((intptr_t)(CurrAddress >> 1)), FetchNextCommandByte()); +		eeprom_update_byte((uint8_t*)((intptr_t)(CurrAddress >> 1)), FetchNextCommandByte());  		/* Increment the address after use */  		CurrAddress += 2; diff --git a/tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c b/tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c index 0385bfc497..00e673268a 100644 --- a/tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c +++ b/tmk_core/protocol/lufa/LUFA-git/Bootloaders/DFU/BootloaderDFU.c @@ -370,7 +370,7 @@ void EVENT_USB_Device_ControlRequest(void)  							}  							/* Read the byte from the USB interface and write to to the EEPROM */ -							eeprom_write_byte((uint8_t*)StartAddr, Endpoint_Read_8()); +							eeprom_update_byte((uint8_t*)StartAddr, Endpoint_Read_8());  							/* Adjust counters */  							StartAddr++; diff --git a/tmk_core/protocol/lufa/lufa.c b/tmk_core/protocol/lufa/lufa.c index 5d40dcf7b2..f03f9a9b92 100644 --- a/tmk_core/protocol/lufa/lufa.c +++ b/tmk_core/protocol/lufa/lufa.c @@ -1,4 +1,4 @@ -/*  +/*   * Copyright 2012 Jun Wako <wakojun@gmail.com>   * This file is based on:   *     LUFA-120219/Demos/Device/Lowlevel/KeyboardMouse @@ -152,10 +152,10 @@ static void Console_Task(void)          {              /* Create a temporary buffer to hold the read in report from the host */              uint8_t ConsoleData[CONSOLE_EPSIZE]; -  +              /* Read Console Report Data */              Endpoint_Read_Stream_LE(&ConsoleData, sizeof(ConsoleData), NULL); -  +              /* Process Console Report Data */              //ProcessConsoleHIDReport(ConsoleData);          } @@ -183,10 +183,6 @@ static void Console_Task(void)      Endpoint_SelectEndpoint(ep);  } -#else -static void Console_Task(void) -{ -}  #endif @@ -216,7 +212,7 @@ void EVENT_USB_Device_Disconnect(void)      print("[D]");      /* For battery powered device */      USB_IsInitialized = false; -/* TODO: This doesn't work. After several plug in/outs can not be enumerated.  +/* TODO: This doesn't work. After several plug in/outs can not be enumerated.      if (USB_IsInitialized) {          USB_Disable();  // Disable all interrupts  	USB_Controller_Enable(); @@ -313,7 +309,7 @@ void EVENT_USB_Device_ConfigurationChanged(void)  #ifdef MIDI_ENABLE      ConfigSuccess &= Endpoint_ConfigureEndpoint(MIDI_STREAM_IN_EPADDR, EP_TYPE_BULK, MIDI_STREAM_EPSIZE, ENDPOINT_BANK_SINGLE); -    ConfigSuccess &= Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPADDR, EP_TYPE_BULK, MIDI_STREAM_EPSIZE, ENDPOINT_BANK_SINGLE);     +    ConfigSuccess &= Endpoint_ConfigureEndpoint(MIDI_STREAM_OUT_EPADDR, EP_TYPE_BULK, MIDI_STREAM_EPSIZE, ENDPOINT_BANK_SINGLE);  #endif  } @@ -439,7 +435,7 @@ void EVENT_USB_Device_ControlRequest(void)  }  /******************************************************************************* - * Host driver  + * Host driver   ******************************************************************************/  static uint8_t keyboard_leds(void)  { @@ -563,7 +559,7 @@ static void send_consumer(uint16_t data)      bluefruit_serial_send(0x00);      bluefruit_serial_send(0x02);      bluefruit_serial_send((bitmap>>8)&0xFF); -    bluefruit_serial_send(bitmap&0xFF);  +    bluefruit_serial_send(bitmap&0xFF);      bluefruit_serial_send(0x00);      bluefruit_serial_send(0x00);      bluefruit_serial_send(0x00); | 
