Switch to new vusb
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user