This commit is contained in:
hathach 2018-11-22 16:49:27 +07:00
parent c3c446f7db
commit b20cb8852a
No known key found for this signature in database
GPG Key ID: 2FA891220FBFD581
2 changed files with 10 additions and 6 deletions

View File

@ -4,7 +4,7 @@
<configuration <configuration
Name="Common" Name="Common"
Placement="Flash" Placement="Flash"
Target="nRF52840_xxAA" Target="LPC4357 Cortex-M4"
arm_architecture="v7EM" arm_architecture="v7EM"
arm_core_type="Cortex-M4" arm_core_type="Cortex-M4"
arm_endian="Little" arm_endian="Little"
@ -14,9 +14,9 @@
arm_linker_heap_size="1024" arm_linker_heap_size="1024"
arm_linker_process_stack_size="0" arm_linker_process_stack_size="0"
arm_linker_stack_size="1024" arm_linker_stack_size="1024"
arm_simulator_memory_simulation_parameter="ROM;0x00000000;0x00100000;RAM;0x20000000;0x00040000" arm_simulator_memory_simulation_parameter="RX 1a000000,00080000,FFFFFFFF;RWX 10000000,00008000,CDCDCDCD"
arm_target_debug_interface_type="ADIv5" arm_target_debug_interface_type="ADIv5"
arm_target_device_name="nRF52840_xxAA" arm_target_device_name="LPC4357_M4"
arm_target_interface_type="SWD" arm_target_interface_type="SWD"
build_treat_warnings_as_errors="Yes" build_treat_warnings_as_errors="Yes"
c_preprocessor_definitions="CORE_M4;__LPC4300_FAMILY;__LPC435x_SUBFAMILY;ARM_MATH_CM4;FLASH_PLACEMENT=1;BOARD_EA4357;CFG_TUSB_MCU=OPT_MCU_LPC43XX" c_preprocessor_definitions="CORE_M4;__LPC4300_FAMILY;__LPC435x_SUBFAMILY;ARM_MATH_CM4;FLASH_PLACEMENT=1;BOARD_EA4357;CFG_TUSB_MCU=OPT_MCU_LPC43XX"
@ -27,11 +27,12 @@
link_use_linker_script_file="No" link_use_linker_script_file="No"
linker_memory_map_file="LPC4357 Cortex-M4_MemoryMap.xml" linker_memory_map_file="LPC4357 Cortex-M4_MemoryMap.xml"
linker_section_placement_file="flash_placement.xml" linker_section_placement_file="flash_placement.xml"
linker_section_placements_segments="FLASH RX 0x1a000000 0x00080000;RAM RWX 0x10000000 0x00008000"
macros="DeviceFamily=LPC4300;DeviceSubFamily=LPC435x;Target=LPC4357 Cortex-M4;Placement=Flash;rootDir=../../../../..;lpcDir=../../../../../hw/mcu/nxp/lpc43xx" macros="DeviceFamily=LPC4300;DeviceSubFamily=LPC435x;Target=LPC4357 Cortex-M4;Placement=Flash;rootDir=../../../../..;lpcDir=../../../../../hw/mcu/nxp/lpc43xx"
project_directory="" project_directory=""
project_type="Executable" project_type="Executable"
target_reset_script="Reset();" target_reset_script="Reset();"
target_script_file="$(ProjectDir)/nRF_Target.js" target_script_file="$(ProjectDir)/LPC4300_Target.js"
target_trace_initialize_script="EnableTrace(&quot;$(TraceInterfaceType)&quot;)" /> target_trace_initialize_script="EnableTrace(&quot;$(TraceInterfaceType)&quot;)" />
<folder <folder
Name="tinyusb" Name="tinyusb"
@ -59,6 +60,9 @@
<folder Name="src"> <folder Name="src">
<file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/system_LPC43xx.c" /> <file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/system_LPC43xx.c" />
<file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/lpc43xx_gpio.c" /> <file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/lpc43xx_gpio.c" />
<file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/lpc43xx_cgu.c" />
<file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/lpc43xx_scu.c" />
<file file_name="../../../../../hw/mcu/nxp/lpc43xx/CMSIS_LPC43xx_DriverLib/src/lpc43xx_i2c.c" />
</folder> </folder>
</folder> </folder>
</folder> </folder>

View File

@ -24,9 +24,9 @@
/****************************************************************************** /******************************************************************************
* Includes * Includes
*****************************************************************************/ *****************************************************************************/
#include "../../board.h" #include "bsp/board.h"
#if BOARD == BOARD_EA4357 #ifdef BOARD_EA4357
#include "lpc43xx_i2c.h" #include "lpc43xx_i2c.h"
#include "lpc43xx_cgu.h" #include "lpc43xx_cgu.h"