1# List of available make goals: 2# 3# all Default target, builds the project 4# clean Clean up the project 5# rebuild Rebuild the project 6# 7# 8# doc Build the documentation 9# cleandoc Clean up the documentation 10# rebuilddoc Rebuild the documentation 11# 12# Copyright (c) 2011 Atmel Corporation. All rights reserved. 13# 14# \asf_license_start 15# 16# \page License 17# 18# Redistribution and use in source and binary forms, with or without 19# modification, are permitted provided that the following conditions are met: 20# 21# 1. Redistributions of source code must retain the above copyright notice, 22# this list of conditions and the following disclaimer. 23# 24# 2. Redistributions in binary form must reproduce the above copyright notice, 25# this list of conditions and the following disclaimer in the documentation 26# and/or other materials provided with the distribution. 27# 28# 3. The name of Atmel may not be used to endorse or promote products derived 29# from this software without specific prior written permission. 30# 31# 4. This software may only be redistributed and used in connection with an 32# Atmel microcontroller product. 33# 34# THIS SOFTWARE IS PROVIDED BY ATMEL "AS IS" AND ANY EXPRESS OR IMPLIED 35# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 36# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT ARE 37# EXPRESSLY AND SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR 38# ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 39# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 40# OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 41# HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 42# STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 43# ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 44# POSSIBILITY OF SUCH DAMAGE. 45# 46# \asf_license_stop 47# 48 49BTSTACK_ROOT=../../../.. 50 51# enforce .gatt compilation if needed 52all: le_counter.h wilc3000_ble_firmware.h 53 54le_counter.h: ${BTSTACK_ROOT}/example/le_counter.gatt 55 python3 ${BTSTACK_ROOT}/tool/compile_gatt.py $< $@ 56 57 58# Include the common Makefile, which will also include the project specific 59# config.mk file. 60MAKEFILE_PATH = ../../ASF/sam/utils/make/Makefile.sam.in 61include $(MAKEFILE_PATH) 62 63# firmware 64include ${BTSTACK_ROOT}/chipset/atwilc3000/Makefile.inc 65 66flash: $(TARGET_FLASH) 67 openocd -f interface/cmsis-dap.cfg -f board/atmel_samv71_xplained_ultra.cfg -f upload.cfg 68 69