diff options
Diffstat (limited to 'thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc')
3 files changed, 457 insertions, 0 deletions
diff --git a/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/Makefile b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/Makefile new file mode 100644 index 00000000..ae3f617b --- /dev/null +++ b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/Makefile @@ -0,0 +1,52 @@ +# List of available make goals: +# +# all Default target, builds the project +# clean Clean up the project +# rebuild Rebuild the project +# +# +# doc Build the documentation +# cleandoc Clean up the documentation +# rebuilddoc Rebuild the documentation +# +# Copyright (c) 2011 Atmel Corporation. All rights reserved. +# +# \asf_license_start +# +# \page License +# +# 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 Atmel may not be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# 4. This software may only be redistributed and used in connection with an +# Atmel microcontroller product. +# +# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE +# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. +# +# \asf_license_stop +# + +# Include the common Makefile, which will also include the project specific +# config.mk file. +MAKEFILE_PATH = ../../../../../../sam/utils/make/Makefile.sam.in +include $(MAKEFILE_PATH) diff --git a/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/asf.h b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/asf.h new file mode 100644 index 00000000..24e6d521 --- /dev/null +++ b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/asf.h @@ -0,0 +1,183 @@ +/** + * \file + * + * \brief Autogenerated API include file for the Atmel Software Framework (ASF) + * + * Copyright (c) 2012 Atmel Corporation. All rights reserved. + * + * \asf_license_start + * + * \page License + * + * 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 Atmel may not be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * 4. This software may only be redistributed and used in connection with an + * Atmel microcontroller product. + * + * THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE + * EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. + * + * \asf_license_stop + * + */ + +#ifndef ASF_H +#define ASF_H + +/* + * This file includes all API header files for the selected drivers from ASF. + * Note: There might be duplicate includes required by more than one driver. + * + * The file is automatically generated and will be re-written when + * running the ASF driver selector tool. Any changes will be discarded. + */ +
+// From module: Common SAM compiler driver
+#include <compiler.h>
+#include <status_codes.h>
+
+// From module: EEFC - Enhanced Embedded Flash Controller
+#include <efc.h>
+
+// From module: Flash - SAM Flash Service API
+#include <flash_efc.h>
+
+// From module: FreeRTOS mini Real-Time Kernel
+#include <FreeRTOS.h>
+#include <FreeRTOS_CLI.h>
+#include <StackMacros.h>
+#include <croutine.h>
+#include <list.h>
+#include <mpu_wrappers.h>
+#include <portable.h>
+#include <projdefs.h>
+#include <queue.h>
+#include <semphr.h>
+#include <task.h>
+#include <timers.h>
+
+// From module: GPBR - General Purpose Backup Register
+#include <gpbr.h>
+
+// From module: Generic board support
+#include <board.h>
+
+// From module: IOPORT - General purpose I/O service
+#include <ioport.h>
+
+// From module: Interrupt management - SAM implementation
+#include <interrupt.h>
+
+// From module: PDC - Peripheral DMA Controller Example
+#include <pdc.h>
+
+// From module: PIO - Parallel Input/Output Controller
+#include <pio.h>
+
+// From module: PLC Buffered PDC Uart Service Interface
+#include <buart_if.h>
+
+// From module: PLC Buffered PDC Usart Service Interface
+#include <busart_if.h>
+
+// From module: PLC PRIME CRC calculation service
+#include <pcrc.h>
+
+// From module: PLC Physical Layer Interface
+#include <atpl230.h>
+#include <atpl230_reg.h>
+
+// From module: PLC Universal Serial Interface
+#include <usi.h>
+
+// From module: PMC - Power Management Controller
+#include <pmc.h>
+#include <sleep.h>
+
+// From module: PRIME Embedded Sniffer Serial Interface Module
+#include <serial_if_sniffer.h>
+
+// From module: PRIME Hardware Abstraction Layer
+#include <hal.h>
+
+// From module: PRIME IEC 61334-4-32 Convergence Layer
+#include <dl432.h>
+#include <sscs432.h>
+
+// From module: PRIME IEC 61334-4-32 Convergence Layer Serial Interface Module
+#include <serial_432_if.h>
+
+// From module: PRIME MAC Layer
+#include <bmngt.h>
+#include <mngl.h>
+#include <prime.h>
+
+// From module: PRIME MLME Serial Interface Module
+#include <serial_if_mlme.h>
+
+// From module: PRIME Operative System Support (OSS)
+#include <oss_if.h>
+
+// From module: PRIME PLME Serial Interface Module
+#include <serial_if_plme.h>
+
+// From module: Part identification macros
+#include <parts.h>
+
+// From module: Physical Abstraction Layer (PAL) interface - ATPL230 and PRIME MAC 1.3
+#include <pal.h>
+
+// From module: Proxy Power Line Communication (PLC) Controller Interface - ATPL230 implementation
+#include <pplc_if.h>
+
+// From module: SAM4CMP Demo Board LED support enabled
+#include <led.h>
+
+// From module: SPI - Serial Peripheral Interface
+#include <spi.h>
+
+// From module: Standard serial I/O (stdio) - SAM implementation
+#include <stdio_serial.h>
+
+// From module: System Clock Control - SAM4CM implementation
+#include <sysclk.h>
+
+// From module: TC - Timer Counter
+#include <tc.h>
+
+// From module: UART - Univ. Async Rec/Trans
+#include <uart.h>
+
+// From module: USART - Serial interface - SAM implementation for devices with both UART and USART
+#include <serial.h>
+
+// From module: USART - Univ. Syn Async Rec/Trans
+#include <usart.h>
+
+// From module: WDT - Watchdog Timer
+#include <wdt.h>
+
+// From module: pio_handler support enabled
+#include <pio_handler.h>
+ +#endif // ASF_H diff --git a/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/config.mk b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/config.mk new file mode 100644 index 00000000..bf1f0f06 --- /dev/null +++ b/thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc/config.mk @@ -0,0 +1,222 @@ +# +# Copyright (c) 2011 Atmel Corporation. All rights reserved. +# +# \asf_license_start +# +# \page License +# +# 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 Atmel may not be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# 4. This software may only be redistributed and used in connection with an +# Atmel microcontroller product. +# +# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE +# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL 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. +# +# \asf_license_stop +# + +# Path to top level ASF directory relative to this project directory. +PRJ_PATH = ../../../../../.. + +# Target CPU architecture: cortex-m3, cortex-m4 +ARCH = cortex-m4 + +# Target part: none, sam3n4 or sam4l4aa +PART = sam4cmp16c:0 + +# Application target name. Given with suffix .a for library and .elf for a +# standalone application. +TARGET_FLASH = apps_prime_base_serial_flash.elf +TARGET_SRAM = apps_prime_base_serial_sram.elf + +# List of C source files. +CSRCS = \ + common/services/clock/sam4cm/sysclk.c \ + common/services/serial/usart_serial.c \ + common/utils/interrupt/interrupt_sam_nvic.c \ + common/utils/stdio/read.c \ + common/utils/stdio/write.c \ + sam/boards/sam4cmp_db/init.c \ + sam/drivers/efc/efc.c \ + sam/drivers/gpbr/gpbr.c \ + sam/drivers/pdc/pdc.c \ + sam/drivers/pio/pio.c \ + sam/drivers/pio/pio_handler.c \ + sam/drivers/pmc/pmc.c \ + sam/drivers/pmc/sleep.c \ + sam/drivers/spi/spi.c \ + sam/drivers/tc/tc.c \ + sam/drivers/uart/uart.c \ + sam/drivers/usart/usart.c \ + sam/drivers/wdt/wdt.c \ + sam/services/flash_efc/flash_efc.c \ + sam/services/plc/buart_if/buart_if.c \ + sam/services/plc/busart_if/busart_if.c \ + sam/services/plc/hal/prime/hal.c \ + sam/services/plc/pcrc/pcrc.c \ + sam/services/plc/pplc_if/atpl230/pplc_if.c \ + sam/services/plc/usi/usi.c \ + sam/utils/cmsis/sam4cm/source/templates/gcc/startup_sam4cm.c \ + sam/utils/cmsis/sam4cm/source/templates/system_sam4cm.c \ + sam/utils/syscalls/gcc/syscalls.c \ + thirdparty/freertos/freertos-7.3.0/source/FreeRTOS_CLI.c \ + thirdparty/freertos/freertos-7.3.0/source/list.c \ + thirdparty/freertos/freertos-7.3.0/source/portable/gcc/sam/port.c \ + thirdparty/freertos/freertos-7.3.0/source/portable/memmang/heap_4.c \ + thirdparty/freertos/freertos-7.3.0/source/queue.c \ + thirdparty/freertos/freertos-7.3.0/source/tasks.c \ + thirdparty/freertos/freertos-7.3.0/source/timers.c \ + thirdparty/prime/apps/prime_base_serial/main.c \ + thirdparty/prime/mac/mac_1_3/addons/serial_if/serial_if_mlme.c \ + thirdparty/prime/mac/mac_1_3/addons/serial_if/serial_if_plme.c \ + thirdparty/prime/mac/mac_1_3/addons/serial_if/serial_if_sniffer.c \ + thirdparty/prime/mac/mac_1_3/module_config/conf_mac.c \ + thirdparty/prime/mac/mac_1_3/source/PrimeVersion.c \ + thirdparty/prime/oss/oss_if.c \ + thirdparty/prime/pal/atpl230_primemac13/source/pal.c \ + thirdparty/prime/phy/atpl230/coupling_config/conf_atpl230.c \ + thirdparty/prime/phy/atpl230/source/atpl230.c \ + thirdparty/prime/phy/atpl230/source/atpl230_iir_filter.c \ + thirdparty/prime/sscs/sscs-4-32/addons/serial_if/serial_432_if.c + +# List of assembler source files. +ASSRCS = + +# List of include paths. +INC_PATH = \ + common/boards \ + common/services/clock \ + common/services/ioport \ + common/services/serial \ + common/services/serial/sam_uart \ + common/utils \ + common/utils/stdio/stdio_serial \ + sam/boards \ + sam/boards/sam4cmp_db \ + sam/drivers/efc \ + sam/drivers/gpbr \ + sam/drivers/pdc \ + sam/drivers/pdc/pdc_uart_example \ + sam/drivers/pio \ + sam/drivers/pmc \ + sam/drivers/spi \ + sam/drivers/tc \ + sam/drivers/uart \ + sam/drivers/usart \ + sam/drivers/wdt \ + sam/services/flash_efc \ + sam/services/plc/buart_if \ + sam/services/plc/busart_if \ + sam/services/plc/hal/prime \ + sam/services/plc/pcrc \ + sam/services/plc/pplc_if/atpl230 \ + sam/services/plc/usi \ + sam/utils \ + sam/utils/cmsis/sam4cm/include \ + sam/utils/cmsis/sam4cm/source/templates \ + sam/utils/header_files \ + sam/utils/preprocessor \ + thirdparty/CMSIS/Include \ + thirdparty/CMSIS/Lib/GCC \ + thirdparty/freertos/freertos-7.3.0/source/include \ + thirdparty/freertos/freertos-7.3.0/source/portable/gcc/sam \ + thirdparty/prime/apps/prime_base_serial \ + thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db \ + thirdparty/prime/mac/mac_1_3/addons/bootloader \ + thirdparty/prime/mac/mac_1_3/addons/serial_if \ + thirdparty/prime/mac/mac_1_3/include \ + thirdparty/prime/mac/mac_1_3/module_config \ + thirdparty/prime/oss \ + thirdparty/prime/pal/atpl230_primemac13/include \ + thirdparty/prime/pal/atpl230_primemac13/module_config \ + thirdparty/prime/phy/atpl230/coupling_config \ + thirdparty/prime/phy/atpl230/include \ + thirdparty/prime/sscs/sscs-4-32/addons/serial_if \ + thirdparty/prime/sscs/sscs-4-32/include \ + thirdparty/prime/apps/prime_base_serial/sam4cmp16c_sam4cmp_db/gcc + +# Additional search paths for libraries. +LIB_PATH = \ + thirdparty/CMSIS/Lib/GCC \ + thirdparty/prime/mac/mac_1_3/libs/gcc \ + thirdparty/prime/sscs/sscs-4-32/libs/gcc + +# List of libraries to use during linking. +LIBS = \ + arm_cortexM4l_math \ + sam4c-mac13-bn-gcc \ + sam4c-sscs432-bn-gcc \ + m + +# Path relative to top level directory pointing to a linker script. +LINKER_SCRIPT_FLASH = sam/utils/linker_scripts/sam4cm/gcc/sam4cmp16c_0_flash.ld +LINKER_SCRIPT_SRAM = sam/utils/linker_scripts/sam4cm/gcc/sam4cmp16c_0_sram.ld + +# Path relative to top level directory pointing to a linker script. +DEBUG_SCRIPT_FLASH = sam/boards/sam4cmp_db/debug_scripts/gcc/sam4cmp_db_flash_0.gdb +DEBUG_SCRIPT_SRAM = sam/boards/sam4cmp_db/debug_scripts/gcc/sam4cmp_db_sram_0.gdb + +# Project type parameter: all, sram or flash +PROJECT_TYPE = flash + +# Additional options for debugging. By default the common Makefile.in will +# add -g3. +DBGFLAGS = + +# Application optimization used during compilation and linking: +# -O0, -O1, -O2, -O3 or -Os +OPTIMIZATION = -O1 + +# Extra flags to use when archiving. +ARFLAGS = + +# Extra flags to use when assembling. +ASFLAGS = + +# Extra flags to use when compiling. +CFLAGS = + +# Extra flags to use when preprocessing. +# +# Preprocessor symbol definitions +# To add a definition use the format "-D name[=definition]". +# To cancel a definition use the format "-U name". +# +# The most relevant symbols to define for the preprocessor are: +# BOARD Target board in use, see boards/board.h for a list. +# EXT_BOARD Optional extension board in use, see boards/board.h for a list. +CPPFLAGS = \ + -D ARM_MATH_CM4=true \ + -D BOARD=SAM4CMP_DB \ + -D __FREERTOS__ \ + -D __SAM4CMP16C_0__ \ + -D printf=iprintf \ + -D scanf=iscanf + +# Extra flags to use when linking +LDFLAGS = \ + +# Pre- and post-build commands +PREBUILD_CMD = +POSTBUILD_CMD =
\ No newline at end of file |