diff --git a/boards/embedded_artists/oem_base_board/joystick.c b/boards/embedded_artists/oem_base_board/joystick.c deleted file mode 100644 index 49770c00c..000000000 --- a/boards/embedded_artists/oem_base_board/joystick.c +++ /dev/null @@ -1,155 +0,0 @@ -/***************************************************************************** - * - * Copyright(C) 2011, Embedded Artists AB - * All rights reserved. - * - ****************************************************************************** - * Software that is described herein is for illustrative purposes only - * which provides customers with programming information regarding the - * products. This software is supplied "AS IS" without any warranties. - * Embedded Artists AB assumes no responsibility or liability for the - * use of the software, conveys no license or title under any patent, - * copyright, or mask work right to the product. Embedded Artists AB - * reserves the right to make changes in the software without - * notification. Embedded Artists AB also make no representation or - * warranty that such application will be suitable for the specified - * use without further testing or modification. - *****************************************************************************/ - - -/****************************************************************************** - * Includes - *****************************************************************************/ - - -#include "lpc_types.h" -#include "lpc43xx_gpio.h" -#include "lpc43xx_scu.h" -#include "joystick.h" - -/****************************************************************************** - * Defines and typedefs - *****************************************************************************/ - -#define GPIO_PIN_LEFT (1<<9) -#define GPIO_PIN_RIGHT (1<<12) -#define GPIO_PIN_UP (1<<10) -#define GPIO_PIN_DOWN (1<<13) -#define GPIO_PIN_CENTER (1<<8) - -#define GPIO_PORT 4 - - -/****************************************************************************** - * External global variables - *****************************************************************************/ -// TODO move later -/* Pin mode defines, more in line with the definitions in the LPC1800/4300 user manual */ -/* Defines for SFSPx_y pin configuration registers */ -#define PDN_ENABLE (1 << 3) // Pull-down enable -#define PDN_DISABLE (0 << 3) // Pull-down disable -#define PUP_ENABLE (0 << 4) // Pull-up enable -#define PUP_DISABLE (1 << 4) // Pull-up disable -#define SLEWRATE_SLOW (0 << 5) // Slew rate for low noise with medium speed -#define SLEWRATE_FAST (1 << 5) // Slew rate for medium noise with fast speed -#define INBUF_ENABLE (1 << 6) // Input buffer -#define INBUF_DISABLE (0 << 6) // Input buffer -#define FILTER_ENABLE (0 << 7) // Glitch filter (for signals below 30MHz) -#define FILTER_DISABLE (1 << 7) // No glitch filter (for signals above 30MHz) -#define DRIVE_8MA (1 << 8) // Drive strength of 8mA -#define DRIVE_14MA (1 << 9) // Drive strength of 14mA -#define DRIVE_20MA (3 << 8) // Drive strength of 20mA - - -/* Configuration examples for various I/O pins */ -#define EMC_IO (PUP_ENABLE | PDN_ENABLE | SLEWRATE_FAST | INBUF_ENABLE | FILTER_DISABLE) -#define LCD_PINCONFIG (PUP_DISABLE | PDN_DISABLE | SLEWRATE_FAST | INBUF_ENABLE | FILTER_DISABLE) -#define CLK_IN (PUP_ENABLE | PDN_ENABLE | SLEWRATE_FAST | INBUF_ENABLE | FILTER_DISABLE) -#define CLK_OUT (PUP_ENABLE | PDN_ENABLE | SLEWRATE_FAST | INBUF_ENABLE | FILTER_DISABLE) -#define GPIO_PUP (PUP_ENABLE | PDN_DISABLE | SLEWRATE_SLOW | INBUF_ENABLE | FILTER_ENABLE ) -#define GPIO_PDN (PUP_DISABLE | PDN_ENABLE | SLEWRATE_SLOW | INBUF_ENABLE | FILTER_ENABLE ) -#define GPIO_NOPULL (PUP_DISABLE | PDN_DISABLE | SLEWRATE_SLOW | INBUF_ENABLE | FILTER_ENABLE ) -#define UART_RX_TX (PUP_DISABLE | PDN_ENABLE | SLEWRATE_SLOW | INBUF_ENABLE | FILTER_ENABLE ) -#define SSP_IO (PUP_ENABLE | PDN_ENABLE | SLEWRATE_FAST | INBUF_ENABLE | FILTER_DISABLE) -/****************************************************************************** - * Local variables - *****************************************************************************/ - - -/****************************************************************************** - * Local Functions - *****************************************************************************/ - - -/****************************************************************************** - * Public Functions - *****************************************************************************/ - -/****************************************************************************** - * - * Description: - * Initialize the Joystick Driver - * - *****************************************************************************/ -void joystick_init (void) -{ - /* set to GPIO function for the 5 pins used with the joystick */ - scu_pinmux( 0xa , 1 , GPIO_NOPULL , FUNC0 );//GPIO4[8] - scu_pinmux( 0xa , 2 , GPIO_NOPULL , FUNC0 );//GPIO4[9] - scu_pinmux( 0xa , 3 , GPIO_NOPULL , FUNC0 );//GPIO4[10] - scu_pinmux( 0x9 , 0 , GPIO_NOPULL , FUNC0 );//GPIO4[12] - scu_pinmux( 0x9 , 1 , GPIO_NOPULL , FUNC0 );//GPIO4[13] - - /* set the pins as inputs */ - GPIO_SetDir(GPIO_PORT, GPIO_PIN_LEFT, 0); - GPIO_SetDir(GPIO_PORT, GPIO_PIN_RIGHT, 0); - GPIO_SetDir(GPIO_PORT, GPIO_PIN_UP, 0); - GPIO_SetDir(GPIO_PORT, GPIO_PIN_DOWN, 0); - GPIO_SetDir(GPIO_PORT, GPIO_PIN_CENTER, 0); -} - -/****************************************************************************** - * - * Description: - * Read the joystick status - * - * Returns: - * The joystick status. The returned value is a bit mask. More than one - * direction may be active at any given time (e.g. UP and RIGHT) - * - *****************************************************************************/ -uint8_t joystick_read(void) -{ - uint8_t status = 0; - uint32_t pinVal = 0; - - pinVal = GPIO_ReadValue(GPIO_PORT); - pinVal = pinVal; - - if ((pinVal & GPIO_PIN_DOWN) == 0) { - status |= JOYSTICK_DOWN; - } - - if ((pinVal & GPIO_PIN_RIGHT) == 0) { - status |= JOYSTICK_RIGHT; - } - - if ((pinVal & GPIO_PIN_UP) == 0) { - status |= JOYSTICK_UP; - } - - if ((pinVal & GPIO_PIN_LEFT) == 0) { - status |= JOYSTICK_LEFT; - } - - if ((pinVal & GPIO_PIN_CENTER) == 0) { - status |= JOYSTICK_CENTER; - } - - return status; -} - - - - - diff --git a/boards/embedded_artists/oem_base_board/joystick.h b/boards/embedded_artists/oem_base_board/joystick.h deleted file mode 100644 index 5c466497a..000000000 --- a/boards/embedded_artists/oem_base_board/joystick.h +++ /dev/null @@ -1,37 +0,0 @@ -/***************************************************************************** - * - * Copyright(C) 2011, Embedded Artists AB - * All rights reserved. - * - ****************************************************************************** - * Software that is described herein is for illustrative purposes only - * which provides customers with programming information regarding the - * products. This software is supplied "AS IS" without any warranties. - * Embedded Artists AB assumes no responsibility or liability for the - * use of the software, conveys no license or title under any patent, - * copyright, or mask work right to the product. Embedded Artists AB - * reserves the right to make changes in the software without - * notification. Embedded Artists AB also make no representation or - * warranty that such application will be suitable for the specified - * use without further testing or modification. - *****************************************************************************/ -#ifndef __JOYSTICK_H -#define __JOYSTICK_H - - -#define JOYSTICK_CENTER 0x01 -#define JOYSTICK_UP 0x02 -#define JOYSTICK_DOWN 0x04 -#define JOYSTICK_LEFT 0x08 -#define JOYSTICK_RIGHT 0x10 - - -void joystick_init (void); -uint8_t joystick_read(void); - - - -#endif /* end __JOYSTICK_H */ -/**************************************************************************** -** End Of File -*****************************************************************************/ diff --git a/boards/lpcxpresso/board_lpcxpresso1769.h b/boards/lpcxpresso/board_lpcxpresso1769.h index b9475c7f3..30841d32e 100644 --- a/boards/lpcxpresso/board_lpcxpresso1769.h +++ b/boards/lpcxpresso/board_lpcxpresso1769.h @@ -48,10 +48,10 @@ #include "LPC17xx.h" -#include "lpc175x_6x/LPC17xx_DriverLib/include/lpc17xx_clkpwr.h" -#include "lpc175x_6x/LPC17xx_DriverLib/include/lpc17xx_pinsel.h" -#include "lpc175x_6x/LPC17xx_DriverLib/include/lpc17xx_gpio.h" -#include "lpc175x_6x/LPC17xx_DriverLib/include/lpc17xx_uart.h" +#include "lpc17xx_clkpwr.h" +#include "lpc17xx_pinsel.h" +#include "lpc17xx_gpio.h" +#include "lpc17xx_uart.h" #ifdef __cplusplus extern "C" { diff --git a/demos/host/host_os_none/.cproject b/demos/host/host_os_none/.cproject index 99960707c..4fbef1607 100644 --- a/demos/host/host_os_none/.cproject +++ b/demos/host/host_os_none/.cproject @@ -44,10 +44,10 @@ @@ -86,7 +86,7 @@ - + @@ -94,7 +94,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -137,12 +475,12 @@ @@ -182,7 +520,7 @@ - + @@ -190,7 +528,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -233,9 +909,9 @@ @@ -274,7 +950,7 @@ - + @@ -282,7 +958,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -325,9 +1339,9 @@ @@ -366,7 +1380,7 @@ - + @@ -374,7 +1388,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -417,9 +1769,9 @@ @@ -455,7 +1807,7 @@ - + @@ -463,7 +1815,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -505,11 +2195,10 @@ @@ -549,7 +2238,7 @@ - + @@ -557,7 +2246,345 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -566,86 +2593,73 @@ <?xml version="1.0" encoding="UTF-8"?> <TargetConfig> -<Properties property_0="" property_2="LPC18x7_43x7_2x512_BootA.cfx" property_3="NXP" property_4="LPC4357" property_count="5" version="1"/> -<infoList vendor="NXP"><info chip="LPC4357" flash_driver="LPC18x7_43x7_2x512_BootA.cfx" match_id="0x0" name="LPC4357" resetscript="LPC18LPC43InternalFLASHBootResetscript.scp" stub="crt_emu_lpc18_43_nxp"><chip><name>LPC4357</name> -<family>LPC43xx</family> +<Properties property_0="" property_3="NXP" property_4="LPC1769" property_count="5" version="1"/> +<infoList vendor="NXP"><info chip="LPC1769" match_id="0x26113F37" name="LPC1769" package="lpc17_lqfp100.xml"><chip><name>LPC1769</name> +<family>LPC17xx</family> <vendor>NXP (formerly Philips)</vendor> <reset board="None" core="Real" sys="Real"/> <clock changeable="TRUE" freq="20MHz" is_accurate="TRUE"/> <memory can_program="true" id="Flash" is_ro="true" type="Flash"/> <memory id="RAM" type="RAM"/> <memory id="Periph" is_volatile="true" type="Peripheral"/> -<memoryInstance derived_from="Flash" id="MFlashA512" location="0x1a000000" size="0x80000"/> -<memoryInstance derived_from="Flash" id="MFlashB512" location="0x1b000000" size="0x80000"/> +<memoryInstance derived_from="Flash" id="MFlash512" location="0x0" size="0x80000"/> <memoryInstance derived_from="RAM" id="RamLoc32" location="0x10000000" size="0x8000"/> -<memoryInstance derived_from="RAM" id="RamLoc40" location="0x10080000" size="0xa000"/> -<memoryInstance derived_from="RAM" id="RamAHB32" location="0x20000000" size="0x8000"/> -<memoryInstance derived_from="RAM" id="RamAHB16" location="0x20008000" size="0x4000"/> -<memoryInstance derived_from="RAM" id="RamAHB_ETB16" location="0x2000c000" size="0x4000"/> -<prog_flash blocksz="0x2000" location="0x1a000000" maxprgbuff="0x400" progwithcode="TRUE" size="0x10000"/> -<prog_flash blocksz="0x10000" location="0x1a010000" maxprgbuff="0x400" progwithcode="TRUE" size="0x70000"/> -<prog_flash blocksz="0x2000" location="0x1b000000" maxprgbuff="0x400" progwithcode="TRUE" size="0x10000"/> -<prog_flash blocksz="0x10000" location="0x1b010000" maxprgbuff="0x400" progwithcode="TRUE" size="0x70000"/> -<peripheralInstance derived_from="V7M_MPU" id="MPU" location="0xe000ed90"/> -<peripheralInstance derived_from="V7M_NVIC" id="NVIC" location="0xe000e000"/> -<peripheralInstance derived_from="V7M_DCR" id="DCR" location="0xe000edf0"/> -<peripheralInstance derived_from="V7M_ITM" id="ITM" location="0xe0000000"/> -<peripheralInstance derived_from="SCT" id="SCT" location="0x40000000"/> -<peripheralInstance derived_from="GPDMA" id="GPDMA" location="0x40002000"/> -<peripheralInstance derived_from="SPIFI" id="SPIFI" location="0x40003000"/> -<peripheralInstance derived_from="SDMMC" id="SDMMC" location="0x40004000"/> -<peripheralInstance derived_from="EMC" id="EMC" location="0x40005000"/> -<peripheralInstance derived_from="USB0" id="USB0" location="0x40006000"/> -<peripheralInstance derived_from="USB1" id="USB1" location="0x40007000"/> -<peripheralInstance derived_from="LCD" id="LCD" location="0x40008000"/> -<peripheralInstance derived_from="EEPROM" id="EEPROM" location="0x4000e000"/> -<peripheralInstance derived_from="ETHERNET" id="ETHERNET" location="0x40010000"/> -<peripheralInstance derived_from="ATIMER" id="ATIMER" location="0x40040000"/> -<peripheralInstance derived_from="REGFILE" id="REGFILE" location="0x40041000"/> -<peripheralInstance derived_from="PMC" id="PMC" location="0x40042000"/> -<peripheralInstance derived_from="CREG" id="CREG" location="0x40043000"/> -<peripheralInstance derived_from="EVENTROUTER" id="EVENTROUTER" location="0x40044000"/> -<peripheralInstance derived_from="RTC" id="RTC" location="0x40046000"/> -<peripheralInstance derived_from="CGU" id="CGU" location="0x40050000"/> -<peripheralInstance derived_from="CCU1" id="CCU1" location="0x40051000"/> -<peripheralInstance derived_from="CCU2" id="CCU2" location="0x40052000"/> -<peripheralInstance derived_from="RGU" id="RGU" location="0x40053000"/> -<peripheralInstance derived_from="WWDT" id="WWDT" location="0x40080000"/> -<peripheralInstance derived_from="USART0" id="USART0" location="0x40081000"/> -<peripheralInstance derived_from="USART2" id="USART2" location="0x400c1000"/> -<peripheralInstance derived_from="USART3" id="USART3" location="0x400c2000"/> -<peripheralInstance derived_from="UART1" id="UART1" location="0x40082000"/> -<peripheralInstance derived_from="SSP0" id="SSP0" location="0x40083000"/> -<peripheralInstance derived_from="SSP1" id="SSP1" location="0x400c5000"/> -<peripheralInstance derived_from="TIMER0" id="TIMER0" location="0x40084000"/> -<peripheralInstance derived_from="TIMER1" id="TIMER1" location="0x40085000"/> -<peripheralInstance derived_from="TIMER2" id="TIMER2" location="0x400c3000"/> -<peripheralInstance derived_from="TIMER3" id="TIMER3" location="0x400c4000"/> -<peripheralInstance derived_from="SCU" id="SCU" location="0x40086000"/> -<peripheralInstance derived_from="GPIO-PIN-INT" id="GPIO-PIN-INT" location="0x40087000"/> -<peripheralInstance derived_from="GPIO-GROUP-INT0" id="GPIO-GROUP-INT0" location="0x40088000"/> -<peripheralInstance derived_from="GPIO-GROUP-INT1" id="GPIO-GROUP-INT1" location="0x40089000"/> -<peripheralInstance derived_from="MCPWM" id="MCPWM" location="0x400a0000"/> -<peripheralInstance derived_from="I2C0" id="I2C0" location="0x400a1000"/> -<peripheralInstance derived_from="I2C1" id="I2C1" location="0x400e0000"/> -<peripheralInstance derived_from="I2S0" id="I2S0" location="0x400a2000"/> -<peripheralInstance derived_from="I2S1" id="I2S1" location="0x400a3000"/> -<peripheralInstance derived_from="C-CAN1" id="C-CAN1" location="0x400a4000"/> -<peripheralInstance derived_from="RITIMER" id="RITIMER" location="0x400c0000"/> -<peripheralInstance derived_from="QEI" id="QEI" location="0x400c6000"/> -<peripheralInstance derived_from="GIMA" id="GIMA" location="0x400c7000"/> -<peripheralInstance derived_from="DAC" id="DAC" location="0x400e1000"/> -<peripheralInstance derived_from="C-CAN0" id="C-CAN0" location="0x400e2000"/> -<peripheralInstance derived_from="ADC0" id="ADC0" location="0x400e3000"/> -<peripheralInstance derived_from="ADC1" id="ADC1" location="0x400e4000"/> -<peripheralInstance derived_from="GPIO-PORT" id="GPIO-PORT" location="0x400f4000"/> -<peripheralInstance derived_from="SPI" id="SPI" location="0x40100000"/> -<peripheralInstance derived_from="SGPIO" id="SGPIO" location="0x40101000"/> +<memoryInstance derived_from="RAM" id="RamAHB32" location="0x2007c000" size="0x8000"/> +<prog_flash blocksz="0x1000" location="0" maxprgbuff="0x1000" progwithcode="TRUE" size="0x10000"/> +<prog_flash blocksz="0x8000" location="0x10000" maxprgbuff="0x1000" progwithcode="TRUE" size="0x70000"/> +<peripheralInstance derived_from="LPC17_NVIC" id="NVIC" location="0xE000E000"/> +<peripheralInstance derived_from="TIMER" enable="SYSCTL.PCONP.PCTIM0&amp;0x1" id="TIMER0" location="0x40004000"/> +<peripheralInstance derived_from="TIMER" enable="SYSCTL.PCONP.PCTIM1&amp;0x1" id="TIMER1" location="0x40008000"/> +<peripheralInstance derived_from="TIMER" enable="SYSCTL.PCONP.PCTIM2&amp;0x1" id="TIMER2" location="0x40090000"/> +<peripheralInstance derived_from="TIMER" enable="SYSCTL.PCONP.PCTIM3&amp;0x1" id="TIMER3" location="0x40094000"/> +<peripheralInstance derived_from="LPC17_RIT" enable="SYSCTL.PCONP.PCRIT&amp;0x1" id="RIT" location="0x400B0000"/> +<peripheralInstance derived_from="FGPIO" enable="SYSCTL.PCONP.PCGPIO&amp;0x1" id="GPIO0" location="0x2009C000"/> +<peripheralInstance derived_from="FGPIO" enable="SYSCTL.PCONP.PCGPIO&amp;0x1" id="GPIO1" location="0x2009C020"/> +<peripheralInstance derived_from="FGPIO" enable="SYSCTL.PCONP.PCGPIO&amp;0x1" id="GPIO2" location="0x2009C040"/> +<peripheralInstance derived_from="FGPIO" enable="SYSCTL.PCONP.PCGPIO&amp;0x1" id="GPIO3" location="0x2009C060"/> +<peripheralInstance derived_from="FGPIO" enable="SYSCTL.PCONP.PCGPIO&amp;0x1" id="GPIO4" location="0x2009C080"/> +<peripheralInstance derived_from="LPC17_I2S" enable="SYSCTL.PCONP&amp;0x08000000" id="I2S" location="0x400A8000"/> +<peripheralInstance derived_from="LPC17_SYSCTL" id="SYSCTL" location="0x400FC000"/> +<peripheralInstance derived_from="LPC17_DAC" enable="PCB.PINSEL1.P0_26&amp;0x2=2" id="DAC" location="0x4008C000"/> +<peripheralInstance derived_from="LPC17xx_UART" enable="SYSCTL.PCONP.PCUART0&amp;0x1" id="UART0" location="0x4000C000"/> +<peripheralInstance derived_from="LPC17xx_UART_MODEM" enable="SYSCTL.PCONP.PCUART1&amp;0x1" id="UART1" location="0x40010000"/> +<peripheralInstance derived_from="LPC17xx_UART" enable="SYSCTL.PCONP.PCUART2&amp;0x1" id="UART2" location="0x40098000"/> +<peripheralInstance derived_from="LPC17xx_UART" enable="SYSCTL.PCONP.PCUART3&amp;0x1" id="UART3" location="0x4009C000"/> +<peripheralInstance derived_from="SPI" enable="SYSCTL.PCONP.PCSPI&amp;0x1" id="SPI" location="0x40020000"/> +<peripheralInstance derived_from="LPC17_SSP" enable="SYSCTL.PCONP.PCSSP0&amp;0x1" id="SSP0" location="0x40088000"/> +<peripheralInstance derived_from="LPC17_SSP" enable="SYSCTL.PCONP.PCSSP1&amp;0x1" id="SSP1" location="0x40030000"/> +<peripheralInstance derived_from="LPC17_ADC" enable="SYSCTL.PCONP.PCAD&amp;0x1" id="ADC" location="0x40034000"/> +<peripheralInstance derived_from="LPC17_USBINTST" enable="USBCLKCTL.USBClkCtrl&amp;0x12" id="USBINTSTAT" location="0x400fc1c0"/> +<peripheralInstance derived_from="LPC17_USB_CLK_CTL" id="USBCLKCTL" location="0x5000cff4"/> +<peripheralInstance derived_from="LPC17_USBDEV" enable="USBCLKCTL.USBClkSt&amp;0x12=0x12" id="USBDEV" location="0x5000C200"/> +<peripheralInstance derived_from="LPC17_PWM" enable="SYSCTL.PCONP.PWM1&amp;0x1" id="PWM" location="0x40018000"/> +<peripheralInstance derived_from="LPC17_I2C" enable="SYSCTL.PCONP.PCI2C0&amp;0x1" id="I2C0" location="0x4001C000"/> +<peripheralInstance derived_from="LPC17_I2C" enable="SYSCTL.PCONP.PCI2C1&amp;0x1" id="I2C1" location="0x4005C000"/> +<peripheralInstance derived_from="LPC17_I2C" enable="SYSCTL.PCONP.PCI2C2&amp;0x1" id="I2C2" location="0x400A0000"/> +<peripheralInstance derived_from="LPC17_DMA" enable="SYSCTL.PCONP.PCGPDMA&amp;0x1" id="DMA" location="0x50004000"/> +<peripheralInstance derived_from="LPC17_ENET" enable="SYSCTL.PCONP.PCENET&amp;0x1" id="ENET" location="0x50000000"/> +<peripheralInstance derived_from="CM3_DCR" id="DCR" location="0xE000EDF0"/> +<peripheralInstance derived_from="LPC17_PCB" id="PCB" location="0x4002c000"/> +<peripheralInstance derived_from="LPC17_QEI" enable="SYSCTL.PCONP.PCQEI&amp;0x1" id="QEI" location="0x400bc000"/> +<peripheralInstance derived_from="LPC17_USBHOST" enable="USBCLKCTL.USBClkSt&amp;0x11=0x11" id="USBHOST" location="0x5000C000"/> +<peripheralInstance derived_from="LPC17_USBOTG" enable="USBCLKCTL.USBClkSt&amp;0x1c=0x1c" id="USBOTG" location="0x5000C000"/> +<peripheralInstance derived_from="LPC17_RTC" enable="SYSCTL.PCONP.PCRTC&amp;0x1" id="RTC" location="0x40024000"/> +<peripheralInstance derived_from="MPU" id="MPU" location="0xE000ED90"/> +<peripheralInstance derived_from="LPC1x_WDT" id="WDT" location="0x40000000"/> +<peripheralInstance derived_from="LPC17_FLASHCFG" id="FLASHACCEL" location="0x400FC000"/> +<peripheralInstance derived_from="GPIO_INT" id="GPIOINTMAP" location="0x40028080"/> +<peripheralInstance derived_from="LPC17_CANAFR" enable="SYSCTL.PCONP.PCCAN1&amp;0x1|SYSCTL.PCONP.PCCAN2&amp;0x1" id="CANAFR" location="0x4003C000"/> +<peripheralInstance derived_from="LPC17_CANCEN" enable="SYSCTL.PCONP.PCCAN1&amp;0x1|SYSCTL.PCONP.PCCAN2&amp;0x1" id="CANCEN" location="0x40040000"/> +<peripheralInstance derived_from="LPC17_CANWAKESLEEP" id="CANWAKESLEEP" location="0x400FC110"/> +<peripheralInstance derived_from="LPC17_CANCON" enable="SYSCTL.PCONP.PCCAN1&amp;0x1" id="CANCON1" location="0x40044000"/> +<peripheralInstance derived_from="LPC17_CANCON" enable="SYSCTL.PCONP.PCCAN2&amp;0x1" id="CANCON2" location="0x40048000"/> +<peripheralInstance derived_from="LPC17_MCPWM" enable="SYSCTL.PCONP.PCMCPWM&amp;0x1" id="MCPWM" location="0x400B8000"/> +<peripheralInstance derived_from="LPC17_FMC" id="FMC" location="0x40084000"/> </chip> -<processor><name gcc_name="cortex-m4">Cortex-M4</name> +<processor><name gcc_name="cortex-m3">Cortex-M3</name> <family>Cortex-M</family> </processor> -<link href="nxp_lpc43xx_peripheral.xme" show="embed" type="simple"/> +<link href="nxp_lpcxxxx_peripheral.xme" show="embed" type="simple"/> </info> </infoList> </TargetConfig> diff --git a/demos/host/host_os_none/.project b/demos/host/host_os_none/.project index cd665f708..b35d021e4 100644 --- a/demos/host/host_os_none/.project +++ b/demos/host/host_os_none/.project @@ -81,15 +81,20 @@ - bsp + boards 2 - PARENT-2-PROJECT_LOC/bsp + PARENT-3-PROJECT_LOC/boards fatfs 2 PARENT-3-PROJECT_LOC/vendor/fatfs + + mcu + 2 + PARENT-3-PROJECT_LOC/mcu + src 2 @@ -103,7 +108,7 @@ - 1380040598945 + 1394619722725 26 @@ -112,7 +117,7 @@ - 1380040598970 + 1394619722739 26 diff --git a/demos/host/src/cdc_serial_app.h b/demos/host/src/cdc_serial_app.h index 2cb67fc88..e5d366299 100644 --- a/demos/host/src/cdc_serial_app.h +++ b/demos/host/src/cdc_serial_app.h @@ -46,7 +46,7 @@ #ifndef _TUSB_CDC_SERIAL_APP_H_ #define _TUSB_CDC_SERIAL_APP_H_ -#include "boards/board.h" +#include "board.h" #include "tusb.h" #ifdef __cplusplus diff --git a/demos/host/src/cli.h b/demos/host/src/cli.h index 75b066744..c1637e126 100644 --- a/demos/host/src/cli.h +++ b/demos/host/src/cli.h @@ -36,7 +36,7 @@ #ifndef _TUSB_CLI_H_ #define _TUSB_CLI_H_ -#include "boards/board.h" +#include "board.h" #include "tusb.h" #ifdef __cplusplus diff --git a/demos/host/src/keyboard_app.h b/demos/host/src/keyboard_app.h index 82305ca8a..2e29b7070 100644 --- a/demos/host/src/keyboard_app.h +++ b/demos/host/src/keyboard_app.h @@ -52,7 +52,7 @@ #ifndef _TUSB_KEYBOARD_APP_H_ #define _TUSB_KEYBOARD_APP_H_ -#include "boards/board.h" +#include "board.h" #include "tusb.h" #ifdef __cplusplus diff --git a/demos/host/src/main.c b/demos/host/src/main.c index 5f7001202..7ebb389bc 100644 --- a/demos/host/src/main.c +++ b/demos/host/src/main.c @@ -43,7 +43,7 @@ #include #include -#include "boards/board.h" +#include "board.h" #include "tusb.h" #include "app_os_prio.h" diff --git a/demos/host/src/mouse_app.h b/demos/host/src/mouse_app.h index 7a5515bb0..3fd1c0c7a 100644 --- a/demos/host/src/mouse_app.h +++ b/demos/host/src/mouse_app.h @@ -55,7 +55,7 @@ #include #include -#include "boards/board.h" +#include "board.h" #include "tusb.h" #ifdef __cplusplus diff --git a/demos/host/src/msc_app.h b/demos/host/src/msc_app.h index b61c0bafc..7bb52819c 100644 --- a/demos/host/src/msc_app.h +++ b/demos/host/src/msc_app.h @@ -46,7 +46,7 @@ #ifndef _TUSB_MSC_APP_H_ #define _TUSB_MSC_APP_H_ -#include "boards/board.h" +#include "board.h" #include "tusb.h" diff --git a/demos/host/src/rndis_app.h b/demos/host/src/rndis_app.h index d30ca899d..e420f341e 100644 --- a/demos/host/src/rndis_app.h +++ b/demos/host/src/rndis_app.h @@ -46,7 +46,7 @@ #ifndef _TUSB_RNDIS_APP_H_ #define _TUSB_RNDIS_APP_H_ -#include "boards/board.h" +#include "board.h" #include "tusb.h" #ifdef __cplusplus