mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 23:31:09 +08:00
Merge branch 'master' into alisitsyn-esp-based_on_334e95f
This commit is contained in:
commit
38cc459c93
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,6 +13,7 @@ latex
|
|||||||
.env
|
.env
|
||||||
.settings/
|
.settings/
|
||||||
.idea/
|
.idea/
|
||||||
|
.gdb_history
|
||||||
/examples/*/*/build*
|
/examples/*/*/build*
|
||||||
test_old/
|
test_old/
|
||||||
tests_obsolete/
|
tests_obsolete/
|
||||||
|
@ -60,6 +60,7 @@ CROSS_COMPILE ?= arm-none-eabi-
|
|||||||
|
|
||||||
CC = $(CROSS_COMPILE)gcc
|
CC = $(CROSS_COMPILE)gcc
|
||||||
CXX = $(CROSS_COMPILE)g++
|
CXX = $(CROSS_COMPILE)g++
|
||||||
|
GDB = $(CROSS_COMPILE)gdb
|
||||||
OBJCOPY = $(CROSS_COMPILE)objcopy
|
OBJCOPY = $(CROSS_COMPILE)objcopy
|
||||||
SIZE = $(CROSS_COMPILE)size
|
SIZE = $(CROSS_COMPILE)size
|
||||||
MKDIR = mkdir
|
MKDIR = mkdir
|
||||||
|
@ -172,6 +172,16 @@ flash-pyocd: $(BUILD)/$(PROJECT).hex
|
|||||||
pyocd flash -t $(PYOCD_TARGET) $<
|
pyocd flash -t $(PYOCD_TARGET) $<
|
||||||
pyocd reset -t $(PYOCD_TARGET)
|
pyocd reset -t $(PYOCD_TARGET)
|
||||||
|
|
||||||
|
# flash with Black Magic Probe
|
||||||
|
|
||||||
|
# This symlink is created by https://github.com/blacksphere/blackmagic/blob/master/driver/99-blackmagic.rules
|
||||||
|
BMP ?= /dev/ttyBmpGdb
|
||||||
|
|
||||||
|
flash-bmp: $(BUILD)/$(PROJECT).elf
|
||||||
|
$(GDB) --batch -ex 'target extended-remote $(BMP)' -ex 'monitor swdp_scan' -ex 'attach 1' -ex load $<
|
||||||
|
|
||||||
|
debug-bmp: $(BUILD)/$(PROJECT).elf
|
||||||
|
$(GDB) -ex 'target extended-remote $(BMP)' -ex 'monitor swdp_scan' -ex 'attach 1' $<
|
||||||
|
|
||||||
#-------------- Artifacts --------------
|
#-------------- Artifacts --------------
|
||||||
|
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
// LED
|
// LED
|
||||||
#define LED_PORT GPIOC
|
#define LED_PORT GPIOC
|
||||||
#define LED_PIN GPIO_PIN_13
|
#define LED_PIN GPIO_PIN_13
|
||||||
#define LED_STATE_ON 1
|
#define LED_STATE_ON 0
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
#define BUTTON_PORT GPIOA
|
#define BUTTON_PORT GPIOA
|
||||||
|
@ -34,7 +34,7 @@
|
|||||||
// LED
|
// LED
|
||||||
#define LED_PORT GPIOC
|
#define LED_PORT GPIOC
|
||||||
#define LED_PIN GPIO_PIN_13
|
#define LED_PIN GPIO_PIN_13
|
||||||
#define LED_STATE_ON 1
|
#define LED_STATE_ON 0
|
||||||
|
|
||||||
// Button
|
// Button
|
||||||
#define BUTTON_PORT GPIOA
|
#define BUTTON_PORT GPIOA
|
||||||
|
Loading…
x
Reference in New Issue
Block a user