diff options
author | Maxim Devaev <[email protected]> | 2023-07-31 02:17:23 +0300 |
---|---|---|
committer | Maxim Devaev <[email protected]> | 2023-07-31 02:17:23 +0300 |
commit | 1a8f98a64f9480c1062225e0fc994ceac4ba346d (patch) | |
tree | 934ac95c6c0774d6ac512860905d4d2454b0b2aa /hid/Makefile | |
parent | cf44668af998b114fbddc8fa41b47193b606c064 (diff) |
moved arduino hid to hid/arduino
Diffstat (limited to 'hid/Makefile')
-rw-r--r-- | hid/Makefile | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/hid/Makefile b/hid/Makefile deleted file mode 100644 index 652ddd6e..00000000 --- a/hid/Makefile +++ /dev/null @@ -1,51 +0,0 @@ -serial: - make _build E=serial C=avr -spi: - make _build E=spi C=avr -aum: - make _build E=aum C=avr -stm32: - platformio run --environment patch --project-conf platformio-stm32.ini - make _build E=serial C=stm32 -_build: - rm -f .current .config - platformio run --environment $(E) --project-conf platformio-$(C).ini - echo -n $(E) > .current - echo -n $(C) > .config - -# Added to easy test all builds -_build_all: aum spi serial stm32 - rm -f .current .config - -install: upload -upload: - $(eval $@_CURRENT := $(shell cat .current)) - $(eval $@_CONFIG := $(shell cat .config)) - bash -ex -c " \ - current=`cat .current`; \ - if [ '$($@_CURRENT)' == 'spi' ] || [ '$($@_CURRENT)' == 'aum' ]; then \ - gpioset 0 25=1; \ - gpioset 0 25=0; \ - fi \ - " - platformio run --environment '$($@_CURRENT)' --project-conf 'platformio-$($@_CONFIG).ini' --target upload - - -bootloader-spi: install-bootloader-spi -install-bootloader-spi: upload-bootloader-spi -upload-bootloader-spi: - platformio run --environment bootloader_spi --project-conf platformio-avr.ini --target bootloader - - -update: - platformio platform update - - -clean-all: clean - rm -rf .platformio -clean: - rm -rf .pio .current .config platformio.ini - - -help: - @ cat Makefile |