refactor examples

This commit is contained in:
hathach 2018-11-13 17:15:56 +07:00
parent 3fe7cd1659
commit 08d12fd7c5
17 changed files with 38 additions and 42 deletions

View File

@ -20,13 +20,13 @@
arm_target_interface_type="SWD"
build_treat_warnings_as_errors="Yes"
c_preprocessor_definitions="NRF52840_XXAA;__nRF_FAMILY;ARM_MATH_CM4;FLASH_PLACEMENT=1;BOARD_PCA10056"
c_user_include_directories="../src;$(tusbDir)/hw/cmsis/Include;$(tusbDir)/hw;$(tusbDir)/src;$(nrfxDir)/..;$(nrfxDir);$(nrfxDir)/mdk;$(nrfxDir)/hal;$(nrfxDir)/drivers/include"
c_user_include_directories="../../src;$(tusbDir)/hw/cmsis/Include;$(tusbDir)/hw;$(tusbDir)/src;$(nrfxDir)/..;$(nrfxDir);$(nrfxDir)/mdk;$(nrfxDir)/hal;$(nrfxDir)/drivers/include"
debug_register_definition_file="$(ProjectDir)/nrf52840_Registers.xml"
debug_target_connection="J-Link"
gcc_entry_point="Reset_Handler"
linker_memory_map_file="$(ProjectDir)/nRF52840_xxAA_MemoryMap.xml"
linker_section_placement_file="$(ProjectDir)/flash_placement.xml"
macros="DeviceHeaderFile=$(PackagesDir)/nRF/CMSIS/Device/Include/nrf.h;DeviceLibraryIdentifier=M4lf;DeviceSystemFile=$(PackagesDir)/nRF/CMSIS/Device/Source/system_nrf52840.c;DeviceVectorsFile=$(PackagesDir)/nRF/Source/ses_nrf52840_Vectors.s;DeviceFamily=nRF;Target=nRF52840_xxAA;Placement=Flash;tusbDir=../../../..;nrfxDir=../../../../hw/mcu/nordic/nrfx"
macros="DeviceHeaderFile=$(PackagesDir)/nRF/CMSIS/Device/Include/nrf.h;DeviceLibraryIdentifier=M4lf;DeviceSystemFile=$(PackagesDir)/nRF/CMSIS/Device/Source/system_nrf52840.c;DeviceVectorsFile=$(PackagesDir)/nRF/Source/ses_nrf52840_Vectors.s;DeviceFamily=nRF;Target=nRF52840_xxAA;Placement=Flash;tusbDir=../../../../..;nrfxDir=../../../../../hw/mcu/nordic/nrfx"
project_directory=""
project_type="Executable"
target_reset_script="Reset();"
@ -44,70 +44,66 @@
Name="tinyusb"
exclude=""
filter="*.c;*.h"
path="../../../../src"
path="../../../../../src"
recurse="Yes" />
<folder Name="src">
<file file_name="../src/main.c" />
<file file_name="../src/tusb_config.h" />
<file file_name="../src/tusb_descriptors.c" />
<file file_name="../src/tusb_descriptors.h" />
<file file_name="../src/msc_app.c" />
<file file_name="../src/msc_app.h" />
<file file_name="../src/msc_flash_ram.c" />
<file file_name="../src/msc_flash_qspi.c" />
<file file_name="../../src/main.c" />
<file file_name="../../src/tusb_config.h" />
<file file_name="../../src/tusb_descriptors.c" />
<file file_name="../../src/tusb_descriptors.h" />
<file file_name="../../src/msc_app.c" />
<file file_name="../../src/msc_app.h" />
<file file_name="../../src/msc_flash_ram.c" />
<file file_name="../../src/msc_flash_qspi.c" />
<folder Name="segger_rtt">
<file file_name="../src/segger_rtt/SEGGER_RTT.c" />
<file file_name="../src/segger_rtt/SEGGER_RTT_Conf.h" />
<file file_name="../src/segger_rtt/SEGGER_RTT.h" />
<file file_name="../src/segger_rtt/SEGGER_RTT_SES.c" />
<file file_name="../../src/segger_rtt/SEGGER_RTT.c" />
<file file_name="../../src/segger_rtt/SEGGER_RTT_Conf.h" />
<file file_name="../../src/segger_rtt/SEGGER_RTT.h" />
<file file_name="../../src/segger_rtt/SEGGER_RTT_SES.c" />
</folder>
</folder>
<folder Name="hw">
<folder Name="bsp">
<folder Name="pca10056">
<file file_name="../../../../hw/bsp/pca10056/board_pca10056.c" />
<file file_name="../../../../hw/bsp/pca10056/board_pca10056.h" />
<file file_name="../../../../../hw/bsp/pca10056/board_pca10056.c" />
<file file_name="../../../../../hw/bsp/pca10056/board_pca10056.h" />
</folder>
<file file_name="../../../../hw/bsp/ansi_escape.h" />
<file file_name="../../../../hw/bsp/board.h" />
<file file_name="../../../../../hw/bsp/ansi_escape.h" />
<file file_name="../../../../../hw/bsp/board.h" />
</folder>
<folder Name="mcu">
<folder Name="nordic">
<folder Name="nrfx">
<folder Name="drivers">
<folder Name="include">
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power_clock.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_qspi.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power_clock.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_power.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/drivers/include/nrfx_qspi.h" />
</folder>
<folder Name="src">
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c" />
<file file_name="../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_qspi.c" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_power.c" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/drivers/src/nrfx_qspi.c" />
</folder>
</folder>
<folder Name="hal">
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_power.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_qspi.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/hal/nrf_usbd.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/hal/nrf_power.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/hal/nrf_qspi.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/hal/nrf_usbd.h" />
</folder>
<folder Name="mdk">
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf51_to_nrf52840.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_bitfields.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52840.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_peripherals.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/nrf52_to_nrf52840.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/ses_startup_nrf52840.s" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/ses_startup_nrf_common.s" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/system_nrf52840.c" />
<file file_name="../../../../hw/mcu/nordic/nrfx/mdk/system_nrf52840.h" />
</folder>
<folder Name="soc">
<file file_name="../../../../hw/mcu/nordic/nrfx/soc/nrfx_irqs.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx/soc/nrfx_irqs_nrf52840.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/nrf51_to_nrf52840.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_bitfields.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/nrf52840.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/nrf52840_peripherals.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/nrf52_to_nrf52840.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/ses_startup_nrf52840.s" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/ses_startup_nrf_common.s" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/system_nrf52840.c" />
<file file_name="../../../../../hw/mcu/nordic/nrfx/mdk/system_nrf52840.h" />
</folder>
</folder>
<file file_name="../../../../hw/mcu/nordic/nrfx_config.h" />
<file file_name="../../../../hw/mcu/nordic/nrfx_glue.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx_config.h" />
<file file_name="../../../../../hw/mcu/nordic/nrfx_glue.h" />
</folder>
</folder>
</folder>