暫無描述
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

makefile 439B

1234567891011121314
  1. all: main.hex
  2. clean:
  3. rm -f main.hex
  4. rm -f main
  5. flash: main.hex
  6. sudo avrdude -c avr109 -b 57600 -P /dev/ttyACM0 -p m32u4 -v -U flash:w:main.hex
  7. main: main.c nrf24l01.c nrf24l01.h uart_debug.c uart_debug.h
  8. avr-gcc main.c nrf24l01.c uart_debug.c -o main -mmcu=atmega32u4 -Os -Wall -Wextra -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -DF_CPU=8000000UL
  9. main.hex: main
  10. avr-objcopy -O ihex -R .eeprom main main.hex