<commit_before>CFLAGS += \
  -mthumb \
  -mabi=aapcs \
  -mlong-calls \
  -mcpu=cortex-m4 \
  -mfloat-abi=hard \
  -mfpu=fpv4-sp-d16 \
  -nostdlib -nostartfiles \
  -D__SAME51J19A__ \
  -DCONF_CPU_FREQUENCY=80000000 \
  -DCONF_GCLK_USB_FREQUENCY=48000000 \
  -DCFG_TUSB_MCU=OPT_MCU_SAME51 \
  -DD5035_01=1 \
  -DBOARD_NAME="\"D5035-01\""

ifdef HWREV
  CFLAGS += -DHWREV=$(HWREV)
endif

# All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld

SRC_C += \
	hw/mcu/microchip/same/asf4/same51/gcc/gcc/startup_same51.c \
  hw/mcu/microchip/same/asf4/same51/gcc/system_same51.c \

ifdef SYSCALLS
ifneq ($(SYSCALLS),0)
  SRC_C += hw/mcu/microchip/same/asf4/same51/hal/utils/src/utils_syscalls.c
endif
endif

ifdef LOG
ifneq ($(LOG),0)
  SRC_C += hw/mcu/microchip/same/asf4/same51/hal/utils/src/utils_syscalls.c
endif
endif

INC += \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/ \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/config \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/include \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/hal/include \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/hal/utils/include \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/hpl/port \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/hri \
	$(TOP)/hw/mcu/microchip/same/asf4/same51/CMSIS/Core/Include

# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd

# For freeRTOS port source
FREERTOS_PORT = ARM_CM4F

# For flash-jlink target
JLINK_DEVICE = ATSAME51J19
JLINK_IF = swd

# flash using jlink
flash: flash-jlink<commit_msg>D5035-01 bsp: fix paths, default to hw rev 1 (automated build)<commit_after>CFLAGS += \
  -mthumb \
  -mabi=aapcs \
  -mlong-calls \
  -mcpu=cortex-m4 \
  -mfloat-abi=hard \
  -mfpu=fpv4-sp-d16 \
  -nostdlib -nostartfiles \
  -D__SAME51J19A__ \
  -DCONF_CPU_FREQUENCY=80000000 \
  -DCONF_GCLK_USB_FREQUENCY=48000000 \
  -DCFG_TUSB_MCU=OPT_MCU_SAME51 \
  -DD5035_01=1 \
  -DBOARD_NAME="\"D5035-01\""

ifdef HWREV
  CFLAGS += -DHWREV=$(HWREV)
else
  CFLAGS += -DHWREV=1
endif

# All source paths should be relative to the top level.
LD_FILE = hw/bsp/$(BOARD)/same51j19a_flash.ld

SRC_C += \
	hw/mcu/microchip/same51/gcc/gcc/startup_same51.c \
  hw/mcu/microchip/same51/gcc/system_same51.c \

ifdef SYSCALLS
ifneq ($(SYSCALLS),0)
  SRC_C += hw/mcu/microchip/same51/hal/utils/src/utils_syscalls.c
endif
endif

ifdef LOG
ifneq ($(LOG),0)
  SRC_C += hw/mcu/microchip/same51/hal/utils/src/utils_syscalls.c
endif
endif

INC += \
	$(TOP)/hw/mcu/microchip/same51/ \
	$(TOP)/hw/mcu/microchip/same51/config \
	$(TOP)/hw/mcu/microchip/same51/include \
	$(TOP)/hw/mcu/microchip/same51/hal/include \
	$(TOP)/hw/mcu/microchip/same51/hal/utils/include \
	$(TOP)/hw/mcu/microchip/same51/hpl/port \
	$(TOP)/hw/mcu/microchip/same51/hri \
	$(TOP)/hw/mcu/microchip/same51/CMSIS/Core/Include

# For TinyUSB port source
VENDOR = microchip
CHIP_FAMILY = samd

# For freeRTOS port source
FREERTOS_PORT = ARM_CM4F

# For flash-jlink target
JLINK_DEVICE = ATSAME51J19
JLINK_IF = swd

# flash using jlink
flash: flash-jlink
{'fraction_non_alphanumeric': 0.15072559366754618, 'fraction_numerical': 0.05804749340369393, 'mean_word_length': 3.6024279210925645, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5736673', 'n_tokens_mistral': 1533, 'n_tokens_neox': 1397, 'n_words': 184}