mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
fff4a248be
Two boards from Olimex are added: olimex_hmz144 with PIC32MZ2048EFM144 olimex_emz64.c with PIC32MZ2048EFH064 Both can be programmed with Segger JLINK probe using ICSP interface. (JTAG not tested but could also work but header is not mounted).
21 lines
356 B
Makefile
21 lines
356 B
Makefile
CROSS_COMPILE = xc32-
|
|
CFLAGS_OPTIMIZED = -O2
|
|
LIBS_GCC = -lgcc -lm
|
|
SKIP_NANOLIB = 1
|
|
|
|
CFLAGS = \
|
|
-std=c99 \
|
|
-DCFG_TUSB_MCU=OPT_MCU_PIC32MZ
|
|
|
|
include $(TOP)/$(BOARD_PATH)/board.mk
|
|
|
|
SRC_C += \
|
|
src/portable/microchip/pic32mz/dcd_pic32mz.c \
|
|
|
|
INC += \
|
|
$(TOP)/hw/mcu/microchip/pic32mz \
|
|
$(TOP)/$(BOARD_PATH) \
|
|
|
|
# flash target using jlink
|
|
flash: flash-jlink
|