change at86rf to 1ghznode

rom device runs ok with lpc11uxx
This commit is contained in:
hathach
2013-05-31 13:57:57 +07:00
parent 04a641f067
commit 3b9a616ca9
14 changed files with 654 additions and 1777 deletions

View File

@@ -1,6 +1,6 @@
/**************************************************************************/
/*!
@file dcd_lpc13xx.h
@file dcd_lpc11uxx_lpc13xx.h
@author hathach (tinyusb.org)
@section LICENSE
@@ -43,8 +43,8 @@
* @{
*/
#ifndef _TUSB_DCD_LPC13XX_H_
#define _TUSB_DCD_LPC13XX_H_
#ifndef _TUSB_DCD_LPC11UXX_LPC13XX_H_
#define _TUSB_DCD_LPC11UXX_LPC13XX_H_
#define DEVICE_ROM_REG_BASE LPC_USB_BASE
#define DEVICE_ROM_DRIVER_ADDR 0x1FFF1FF8
@@ -54,10 +54,11 @@
#endif
#ifdef __cplusplus
}
#endif
#endif /* _TUSB_DCD_LPC13XX_H_ */
#endif /* _TUSB_DCD_LPC11UXX_LPC13XX_H_ */
/** @} */

View File

@@ -55,8 +55,8 @@
#if (MCU == MCU_LPC18XX) || (MCU == MCU_LPC43XX)
#include "dcd_lpc18xx_lpc43xx.h"
#define ROM_API ( * ((USBD_API_T**) DEVICE_ROM_DRIVER_ADDR) )
#elif (MCU == MCU_LPC13UXX)
#include "dcd_lpc13xx.h"
#elif (MCU == MCU_LPC13UXX) || (MCU == MCU_LPC11UXX)
#include "dcd_lpc11uxx_lpc13xx.h"
#define ROM_API ( * (*((USBD_API_T***) DEVICE_ROM_DRIVER_ADDR)) )
#else
#error forgot something, thach ?