Switch to new vusb

This commit is contained in:
optixx
2016-02-09 12:30:31 +01:00
parent 08b4654b5c
commit c8d91b4bbf
20 changed files with 339 additions and 295 deletions

View File

@@ -5,7 +5,6 @@
* Tabsize: 4
* Copyright: (c) 2008 by OBJECTIVE DEVELOPMENT Software GmbH
* License: GNU GPL v2 (see License.txt), GNU GPL v3 or proprietary (CommercialLicense.txt)
* This Revision: $Id: usbportability.h 740 2009-04-13 18:23:31Z cs $
*/
/*
@@ -125,7 +124,11 @@ static inline void sei(void)
# include <avr/pgmspace.h>
#endif
#define USB_READ_FLASH(addr) pgm_read_byte(addr)
#if USB_CFG_DRIVER_FLASH_PAGE
# define USB_READ_FLASH(addr) pgm_read_byte_far(((long)USB_CFG_DRIVER_FLASH_PAGE << 16) | (long)(addr))
#else
# define USB_READ_FLASH(addr) pgm_read_byte(addr)
#endif
#define macro .macro
#define endm .endm