No Description
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 829B

123456789101112131415161718192021222324
  1. CFLAGS = -DF_CPU=1000000UL -D BME280_32BIT_ENABLE -I BME280_driver -mmcu=atmega88p -Os -flto -Wall -Wextra -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
  2. DEPS = spi.h nrf24l01.h nrf24l01_definitions.h bme280_interface.h BME280_driver/bme280.h led.h pin_programming.h crc.h encryption.h radio.h
  3. all: main.hex
  4. clean:
  5. rm -f main.hex
  6. rm -f main
  7. rm -f obj/*.o
  8. flash: main.hex
  9. sudo avrdude -c buspirate -b 115200 -P /dev/ttyUSB0 -p m88p -v -U flash:w:main.hex
  10. obj/%.o: %.c $(DEPS)
  11. avr-gcc -c $< -o $@ $(CFLAGS)
  12. obj/%.o: BME280_driver/%.c $(DEPS)
  13. avr-gcc -c $< -o $@ $(CFLAGS)
  14. main: obj/main.o obj/spi.o obj/nrf24l01.o obj/bme280_interface.o obj/bme280.o obj/pin_programming.o obj/crc.o obj/encryption.o obj/radio.o
  15. avr-gcc $^ -o $@ $(CFLAGS)
  16. main.hex: main
  17. avr-objcopy -O ihex -R .eeprom main main.hex