Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
| 123456789101112131415161718192021222324 |
- 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
- 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
-
- all: main.hex
-
- clean:
- rm -f main.hex
- rm -f main
- rm -f obj/*.o
-
- flash: main.hex
- sudo avrdude -c buspirate -b 115200 -P /dev/ttyUSB0 -p m88p -v -U flash:w:main.hex
-
- obj/%.o: %.c $(DEPS)
- avr-gcc -c $< -o $@ $(CFLAGS)
-
- obj/%.o: BME280_driver/%.c $(DEPS)
- avr-gcc -c $< -o $@ $(CFLAGS)
-
- 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
- avr-gcc $^ -o $@ $(CFLAGS)
-
- main.hex: main
- avr-objcopy -O ihex -R .eeprom main main.hex
|