firmware: Remove the c attempt of the firmware
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
finga 2023-06-07 21:13:56 +02:00
parent b9fea56014
commit 698965fcf7
20 changed files with 6 additions and 1432 deletions

4
.gitignore vendored
View file

@ -1,3 +1 @@
*.o
*.elf
*.hex
/firmware/target

View file

@ -3,33 +3,33 @@ pipeline:
group: default
image: rust_full
commands:
- cd firmware/rust/
- cd firmware/
- cargo fmt --all -- --check
clippy:
group: default
image: rust_full
commands:
- cd firmware/rust/
- cd firmware/
- cargo clippy --all-features
doc:
group: default
image: rust_full
commands:
- cd firmware/rust/
- cd firmware/
- cargo doc --all-features
build:
group: default
image: rust_full
commands:
- cd firmware/rust/
- cd firmware/
- cargo build --all-features
build_release:
group: default
image: rust_full
commands:
- cd firmware/rust/
- cd firmware/
- cargo build --all-features --release

View file

@ -1,55 +0,0 @@
.SUFFIXES:
MCU := atmega328p
PROGRAMMER := usbasp
SPEED := 8000000UL
TARGET := main.hex
EEP := main.eep
BIN := main.elf
OBJ := main.o
LOW_FUSE := 0xE2
HIGH_FUSE := 0xD6
SHELL := sh
CC := avr-gcc
OBJCOPY := avr-objcopy
SIZE := avr-size
AVRDUDE := avrdude
CFLAGS := -mmcu=$(MCU) -D F_CPU=$(SPEED) -Os -Wall -Werror -Wextra -Wpedantic
all: $(TARGET) $(EEP)
$(TARGET): $(BIN)
${OBJCOPY} -O ihex -j .text -j .data $< $@
$(EEP): $(BIN)
${OBJCOPY} --change-section-lma .eeprom=0 -O ihex -j .eeprom $< $@
$(BIN): $(OBJ)
$(CC) $(CFLAGS) $< -o $@
%.o: %.c
$(CC) $(CFLAGS) -c $< -o $@
.PHONY: flash eeprom fuses clean check size
flash: $(TARGET) size
$(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -U flash:w:$<:a
eeprom: $(EEP) size
$(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -U eeprom:w:$<:a
fuses:
$(AVRDUDE) -p $(MCU) -c $(PROGRAMMER) -U lfuse:w:$(LOW_FUSE):m -U hfuse:w:$(HIGH_FUSE):m
clean:
$(RM) $(TARGET) $(EEP) $(BIN) $(OBJ)
check:
cppcheck main.c
size: $(BIN)
$(SIZE) --format=avr --mcu=$(MCU) $<

File diff suppressed because it is too large Load diff

View file

@ -1 +0,0 @@
/target