From f31ade6151089a0d6d99b73c23a7a6e1a538c268 Mon Sep 17 00:00:00 2001 From: hathach Date: Tue, 4 Dec 2012 18:18:29 +0700 Subject: add board abstract layer rename arch to mcu --- tinyusb/common/arch/arch.h | 74 --------------------------------- tinyusb/common/arch/arch_lpc11xx.h | 60 --------------------------- tinyusb/common/arch/arch_lpc134x.h | 61 --------------------------- tinyusb/common/arch/arch_lpc43xx.h | 61 --------------------------- tinyusb/common/arch/arm_mx.h | 58 -------------------------- tinyusb/common/common.h | 2 +- tinyusb/common/compiler/compiler_iar.h | 63 ++++++++++++++++++++++++++++ tinyusb/common/mcu/mcu.h | 76 ++++++++++++++++++++++++++++++++++ tinyusb/common/mcu/mcu_lpc11xx.h | 58 ++++++++++++++++++++++++++ tinyusb/common/mcu/mcu_lpc134x.h | 59 ++++++++++++++++++++++++++ tinyusb/common/mcu/mcu_lpc43xx.h | 57 +++++++++++++++++++++++++ 11 files changed, 314 insertions(+), 315 deletions(-) delete mode 100644 tinyusb/common/arch/arch.h delete mode 100644 tinyusb/common/arch/arch_lpc11xx.h delete mode 100644 tinyusb/common/arch/arch_lpc134x.h delete mode 100644 tinyusb/common/arch/arch_lpc43xx.h delete mode 100644 tinyusb/common/arch/arm_mx.h create mode 100644 tinyusb/common/compiler/compiler_iar.h create mode 100644 tinyusb/common/mcu/mcu.h create mode 100644 tinyusb/common/mcu/mcu_lpc11xx.h create mode 100644 tinyusb/common/mcu/mcu_lpc134x.h create mode 100644 tinyusb/common/mcu/mcu_lpc43xx.h (limited to 'tinyusb/common') diff --git a/tinyusb/common/arch/arch.h b/tinyusb/common/arch/arch.h deleted file mode 100644 index 1cc3fc83d..000000000 --- a/tinyusb/common/arch/arch.h +++ /dev/null @@ -1,74 +0,0 @@ -/* - * arch.h - * - * Created on: Nov 26, 2012 - * Author: hathach - */ - -/* - * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the tinyUSB stack. - */ - -/** \file - * \brief Architecture Header - * - * \note TBD - */ - -/** \ingroup Group_Common - * \defgroup Group_Arch Architecture - * \brief Group_Arch brief - * - * @{ - */ - -#ifndef _TUSB_ARCH_H_ -#define _TUSB_ARCH_H_ - -//#define ARCH_LPC134X -//#define ARCH_LPC11XX -#define ARCH_LPC43XX - -#define ENDIAN_LITTLE ///< MCU Endian -#define ALIGNMENT (4) ///< MCU Alignment - -#if defined ARCH_LPC134X - #include "arch_lpc134x.h" -#elif defined ARCH_LPC43XX - #include "arch_lpc43xx.h" -#elif defined ARCH_LPC11XX - #include "arch_lpc11xx.h" -#else - #error Arch is not found -#endif - -#endif /* _TUSB_ARCH_H_ */ - -/** @} */ - diff --git a/tinyusb/common/arch/arch_lpc11xx.h b/tinyusb/common/arch/arch_lpc11xx.h deleted file mode 100644 index 38d391700..000000000 --- a/tinyusb/common/arch/arch_lpc11xx.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * arch_lpc11xx.h - * - * Created on: Nov 29, 2012 - * Author: hathach - */ - -/* - * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the tinyUSB stack. - */ - -/** \file - * \brief LPC11xx Header File - * - * \note TBD - */ - -/** \ingroup Group_Arch - * - * @{ - */ - -#ifndef ARCH_LPC11XX_H_ -#define ARCH_LPC11XX_H_ - -#define ARM_M0 -#define DEVICE_ROMDRIVER - -#include "arm_mx.h" -#include "LPC11Uxx.h" - -#endif /* ARCH_LPC11XX_H_ */ - -/** @} */ diff --git a/tinyusb/common/arch/arch_lpc134x.h b/tinyusb/common/arch/arch_lpc134x.h deleted file mode 100644 index 1779b784b..000000000 --- a/tinyusb/common/arch/arch_lpc134x.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * arch_lpc134x.h - * - * Created on: Nov 26, 2012 - * Author: hathach - */ - -/* - * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the tinyUSB stack. - */ - -/** \file - * \brief LPC13Uxx Header - * - * \note TBD - */ - -/** \ingroup Group_Arch - * - * @{ - */ - -#ifndef _TUSB_ARCH_LPC134_X_H_ -#define _TUSB_ARCH_LPC134_X_H_ - -#define ARM_M3 -#define DEVICE_ROMDRIVER - -#include "arm_mx.h" -#include "LPC13Uxx.h" - -#endif /* _TUSB_ARCH_LPC134_X_H_ */ - -/** @} */ - diff --git a/tinyusb/common/arch/arch_lpc43xx.h b/tinyusb/common/arch/arch_lpc43xx.h deleted file mode 100644 index f96bbb0dc..000000000 --- a/tinyusb/common/arch/arch_lpc43xx.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * arch_lpc43xx.h - * - * Created on: Nov 26, 2012 - * Author: hathach - */ - -/* - * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the tinyUSB stack. - */ - -/** \file - * \brief LPC43xx Header - * - * \note TBD - */ - -/** \ingroup Group_Arch - * - * @{ - */ - -#ifndef _TUSB_ARCH_LPC43XX_H_ -#define _TUSB_ARCH_LPC43XX_H_ - -#define ARM_M4 -//#define ARM_M0 - -#include "arm_mx.h" -#include "LPC43xx.h" -#include "lpc43xx_cgu.h" - -#endif /* _TUSB_ARCH_LPC43XX_H_ */ - -/// @} diff --git a/tinyusb/common/arch/arm_mx.h b/tinyusb/common/arch/arm_mx.h deleted file mode 100644 index b806f7b73..000000000 --- a/tinyusb/common/arch/arm_mx.h +++ /dev/null @@ -1,58 +0,0 @@ -/* - * arm_mx.h - * - * Created on: Nov 26, 2012 - * Author: hathach - */ - -/* - * Software License Agreement (BSD License) - * Copyright (c) 2012, hathach (tinyusb.net) - * All rights reserved. - * - * Redistribution and use in source and binary forms, with or without modification, - * are permitted provided that the following conditions are met: - * - * 1. Redistributions of source code must retain the above copyright notice, - * this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright notice, - * this list of conditions and the following disclaimer in the documentation - * and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED - * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT - * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, - * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT - * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS - * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN - * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING - * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY - * OF SUCH DAMAGE. - * - * This file is part of the tinyUSB stack. - */ - -/** \file - * \brief ARM Cortex Mx Header - * - * \note TBD - */ - -/** \ingroup Group_Arch - * - * @{ - */ - -#ifndef _TUSB_ARM_MX_H_ -#define _TUSB_ARM_MX_H_ - -// #ifdef ARM_M3 ARM_M4 ARM_M0 - -#define ENDIAN_LITTLE -#define ALIGNMENT (4) - -#endif /* _TUSB_ARM_MX_H_ */ -/** @} */ diff --git a/tinyusb/common/common.h b/tinyusb/common/common.h index d073b8cca..4b6fc645b 100644 --- a/tinyusb/common/common.h +++ b/tinyusb/common/common.h @@ -62,7 +62,7 @@ #include #include "tusb_cfg.h" -#include "arch/arch.h" +#include "mcu/mcu.h" #include "hal/hal.h" #include "compiler/compiler.h" #include "errors.h" diff --git a/tinyusb/common/compiler/compiler_iar.h b/tinyusb/common/compiler/compiler_iar.h new file mode 100644 index 000000000..9682f2145 --- /dev/null +++ b/tinyusb/common/compiler/compiler_iar.h @@ -0,0 +1,63 @@ +/* + * compiler_iar.h + * + * Created on: Dec 3, 2012 + * Author: hathach + */ + +/* + * Software License Agreement (BSD License) + * Copyright (c) 2012, hathach (tinyusb.net) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the tiny usb stack. + */ + +/** \file + * \brief IAR Compiler + */ + +/** \ingroup Group_Compiler + * \defgroup Group_IAR IAR ARM + * @{ + */ + +#ifndef _TUSB_COMPILER_IAR_H_ +#define _TUSB_COMPILER_IAR_H_ + +#ifdef __cplusplus + extern "C" { +#endif + +#define ATTR_PREPACKED __packed +#define ATTR_PACKED + +#ifdef __cplusplus + } +#endif + +#endif /* _TUSB_COMPILER_IAR_H_ */ + +/** @} */ diff --git a/tinyusb/common/mcu/mcu.h b/tinyusb/common/mcu/mcu.h new file mode 100644 index 000000000..2bff2a017 --- /dev/null +++ b/tinyusb/common/mcu/mcu.h @@ -0,0 +1,76 @@ +/* + * mcu.h + * + * Created on: Nov 26, 2012 + * Author: hathach + */ + +/* + * Software License Agreement (BSD License) + * Copyright (c) 2012, hathach (tinyusb.net) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the tinyUSB stack. + */ + +/** \file + * \brief Architecture Header + * + * \note TBD + */ + +/** \ingroup Group_Common + * \defgroup Group_MCU MicroController + * \brief Group_MCU brief + * + * @{ + */ + +#ifndef _TUSB_MCU_H_ +#define _TUSB_MCU_H_ + +//#define MCU MCU_LPC43XX + +#define MCU_LPC134X 1 +#define MCU_LPC11XX 2 +#define MCU_LPC43XX 3 + +#define ENDIAN_LITTLE ///< MCU Endian +#define ALIGNMENT (4) ///< MCU Alignment + +#if MCU == MCU_LPC134X + #include "mcu_lpc134x.h" +#elif MCU == MCU_LPC43XX + #include "mcu_lpc43xx.h" +#elif MCU == MCU_LPC11XX + #include "mcu_lpc11xx.h" +#else + #error Arch is not supported yet +#endif + +#endif /* _TUSB_MCU_H_ */ + +/** @} */ + diff --git a/tinyusb/common/mcu/mcu_lpc11xx.h b/tinyusb/common/mcu/mcu_lpc11xx.h new file mode 100644 index 000000000..3b7c00f63 --- /dev/null +++ b/tinyusb/common/mcu/mcu_lpc11xx.h @@ -0,0 +1,58 @@ +/* + * mcu_lpc11xx.h + * + * Created on: Nov 29, 2012 + * Author: hathach + */ + +/* + * Software License Agreement (BSD License) + * Copyright (c) 2012, hathach (tinyusb.net) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the tinyUSB stack. + */ + +/** \file + * \brief LPC11xx Header File + * + * \note TBD + */ + +/** \ingroup Group_MCU + * + * @{ + */ + +#ifndef MCU_LPC11XX_H_ +#define MCU_LPC11XX_H_ + +#include "LPC11Uxx.h" + +#define DEVICE_ROMDRIVER + +#endif /* MCU_LPC11XX_H_ */ + +/** @} */ diff --git a/tinyusb/common/mcu/mcu_lpc134x.h b/tinyusb/common/mcu/mcu_lpc134x.h new file mode 100644 index 000000000..d5ac1e053 --- /dev/null +++ b/tinyusb/common/mcu/mcu_lpc134x.h @@ -0,0 +1,59 @@ +/* + * mcu_lpc134x.h + * + * Created on: Nov 26, 2012 + * Author: hathach + */ + +/* + * Software License Agreement (BSD License) + * Copyright (c) 2012, hathach (tinyusb.net) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the tinyUSB stack. + */ + +/** \file + * \brief LPC13Uxx Header + * + * \note TBD + */ + +/** \ingroup Group_MCU + * + * @{ + */ + +#ifndef _TUSB_MCU_LPC134_X_H_ +#define _TUSB_MCU_LPC134_X_H_ + +#include "LPC13Uxx.h" + +#define DEVICE_ROMDRIVER + +#endif /* _TUSB_MCU_LPC134_X_H_ */ + +/** @} */ + diff --git a/tinyusb/common/mcu/mcu_lpc43xx.h b/tinyusb/common/mcu/mcu_lpc43xx.h new file mode 100644 index 000000000..fc022c4cb --- /dev/null +++ b/tinyusb/common/mcu/mcu_lpc43xx.h @@ -0,0 +1,57 @@ +/* + * mcu_lpc43xx.h + * + * Created on: Nov 26, 2012 + * Author: hathach + */ + +/* + * Software License Agreement (BSD License) + * Copyright (c) 2012, hathach (tinyusb.net) + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without modification, + * are permitted provided that the following conditions are met: + * + * 1. Redistributions of source code must retain the above copyright notice, + * this list of conditions and the following disclaimer. + * 2. Redistributions in binary form must reproduce the above copyright notice, + * this list of conditions and the following disclaimer in the documentation + * and/or other materials provided with the distribution. + * 3. The name of the author may not be used to endorse or promote products + * derived from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT + * SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, + * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + * OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING + * IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY + * OF SUCH DAMAGE. + * + * This file is part of the tinyUSB stack. + */ + +/** \file + * \brief LPC43xx Header + * + * \note TBD + */ + +/** \ingroup Group_MCU + * + * @{ + */ + +#ifndef _TUSB_MCU_LPC43XX_H_ +#define _TUSB_MCU_LPC43XX_H_ + +#include "LPC43xx.h" +#include "lpc43xx_cgu.h" + +#endif /* _TUSB_MCU_LPC43XX_H_ */ + +/// @} -- cgit v1.3.1