USB drivers with FIDO2 HID interface demo

This commit is contained in:
Conor Patrick
2018-10-23 22:56:12 -04:00
parent 5b858af27b
commit cdac84c93f
36 changed files with 19271 additions and 36 deletions

View File

@@ -2,13 +2,15 @@ CC=arm-none-eabi-gcc
CP=arm-none-eabi-objcopy
SZ=arm-none-eabi-size
SRC=src/main.c src/init.c src/redirect.c src/flash.c src/rng.c src/led.c src/device.c \
../../fido2/util.c \
src/startup_stm32l432xx.s src/system_stm32l4xx.c $(wildcard lib/*c)
SRC = src/main.c src/init.c src/redirect.c src/flash.c src/rng.c src/led.c src/device.c
SRC += src/fifo.c
SRC += ../../fido2/util.c
SRC += src/startup_stm32l432xx.s src/system_stm32l4xx.c
SRC += $(wildcard lib/*.c) $(wildcard lib/usbd/*.c)
OBJ1=$(SRC:.c=.o)
OBJ=$(OBJ1:.s=.o)
INC=-Isrc/ -Isrc/cmsis -Ilib/ -I../../fido2
INC=-Isrc/ -Isrc/cmsis/ -Ilib/ -Ilib/usbd/ -I../../fido2/
LDSCRIPT=stm32l432xx.ld
CFLAGS= $(INC)
@@ -21,7 +23,7 @@ HW=-mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -mthumb
# Solo
CHIP=STM32L442xx
CFLAGS=$(INC) -c -D$(CHIP) -DUSE_FULL_LL_DRIVER -O0 -Wall -fdata-sections -ffunction-sections
CFLAGS=$(INC) -c -D$(CHIP) -DUSE_FULL_LL_DRIVER -Os -Wall -fdata-sections -ffunction-sections
LDFLAGS=$(HW) -specs=nano.specs -specs=nosys.specs -T$(LDSCRIPT) -Wl,-Map=$(TARGET).map,--cref -Wl,--gc-sections -u _printf_float
.PRECIOUS: %.o
@@ -50,3 +52,12 @@ flash: $(TARGET).hex
sleep 0.5
python dfuse-tool/dfuse-tool.py --leave
test:
STM32_Programmer_CLI -c port=SWD -halt -d ../../../cube_stm32l442/build/cube_stm32l442.hex -rst
sleep 0.5
python dfuse-tool/dfuse-tool.py --leave
test2:
STM32_Programmer_CLI -c port=SWD -halt -d ../../../stmusb2/build/stmusb2.hex -rst
sleep 0.5
python dfuse-tool/dfuse-tool.py --leave