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 /firmware/target
*.elf
*.hex

View file

@ -3,33 +3,33 @@ pipeline:
group: default group: default
image: rust_full image: rust_full
commands: commands:
- cd firmware/rust/ - cd firmware/
- cargo fmt --all -- --check - cargo fmt --all -- --check
clippy: clippy:
group: default group: default
image: rust_full image: rust_full
commands: commands:
- cd firmware/rust/ - cd firmware/
- cargo clippy --all-features - cargo clippy --all-features
doc: doc:
group: default group: default
image: rust_full image: rust_full
commands: commands:
- cd firmware/rust/ - cd firmware/
- cargo doc --all-features - cargo doc --all-features
build: build:
group: default group: default
image: rust_full image: rust_full
commands: commands:
- cd firmware/rust/ - cd firmware/
- cargo build --all-features - cargo build --all-features
build_release: build_release:
group: default group: default
image: rust_full image: rust_full
commands: commands:
- cd firmware/rust/ - cd firmware/
- cargo build --all-features --release - 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