From 8cbe75f0047732c865f58e2f847a5ffafe066e71 Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sat, 20 Dec 2025 11:25:26 +0800 Subject: Change projects to poc and blog to log. --- _blog/arduino-uno/3v3.Makefile | 46 -------------------------------------- _blog/arduino-uno/Makefile | 43 ----------------------------------- _blog/arduino-uno/breadboard.jpeg | Bin 54319 -> 0 bytes _blog/arduino-uno/pinout.png | Bin 247197 -> 0 bytes 4 files changed, 89 deletions(-) delete mode 100644 _blog/arduino-uno/3v3.Makefile delete mode 100644 _blog/arduino-uno/Makefile delete mode 100644 _blog/arduino-uno/breadboard.jpeg delete mode 100644 _blog/arduino-uno/pinout.png (limited to '_blog/arduino-uno') diff --git a/_blog/arduino-uno/3v3.Makefile b/_blog/arduino-uno/3v3.Makefile deleted file mode 100644 index 4ca89d4..0000000 --- a/_blog/arduino-uno/3v3.Makefile +++ /dev/null @@ -1,46 +0,0 @@ -CC = avr-gcc -MCU = atmega328p -PORT = /dev/cuaU0 -TARGET = app - -SRC = main.c -OBJ = $(SRC:.c=.o) - -CFLAGS = -std=gnu99 -CFLAGS += -Os -CFLAGS += -Wall -CFLAGS += -mmcu=$(MCU) -CFLAGS += -DBAUD=57600 -CFLAGS += -DF_CPU=8000000UL -CFLAGS += -ffunction-sections -fdata-sections - -LDFLAGS = -mmcu=$(MCU) -LDFLAGS += -Wl,--gc-sections - -HEX_FLAGS = -O ihex -HEX_FLAGS += -j .text -j .data - -AVRDUDE_FLAGS = -p $(MCU) -AVRDUDE_FLAGS += -c arduino -AVRDUDE_FLAGS += -b 57600 -AVRDUDE_FLAGS += -P $(PORT) -AVRDUDE_FLAGS += -D -U - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< - -elf: $(OBJ) - $(CC) $(LDFLAGS) $(OBJ) -o $(TARGET).elf - -hex: elf - avr-objcopy $(HEX_FLAGS) $(TARGET).elf $(TARGET).hex - -upload: hex - avrdude $(AVRDUDE_FLAGS) flash:w:$(TARGET).hex:i - -.PHONY: clean - -clean: - rm -f *.o *.elf *.hex - - diff --git a/_blog/arduino-uno/Makefile b/_blog/arduino-uno/Makefile deleted file mode 100644 index 9db7b09..0000000 --- a/_blog/arduino-uno/Makefile +++ /dev/null @@ -1,43 +0,0 @@ -CC = avr-gcc -MCU = atmega328p -PORT = /dev/cuaU0 -TARGET = app - -SRC = main.c -OBJ = $(SRC:.c=.o) - -CFLAGS = -std=gnu99 -CFLAGS += -Os -CFLAGS += -Wall -CFLAGS += -mmcu=$(MCU) -CFLAGS += -DBAUD=115200 -CFLAGS += -DF_CPU=16000000UL -CFLAGS += -ffunction-sections -fdata-sections - -LDFLAGS = -mmcu=$(MCU) -LDFLAGS += -Wl,--gc-sections - -HEX_FLAGS = -O ihex -HEX_FLAGS += -j .text -j .data - -AVRDUDE_FLAGS = -p $(MCU) -AVRDUDE_FLAGS += -c arduino -AVRDUDE_FLAGS += -P $(PORT) -AVRDUDE_FLAGS += -D -U - -%.o: %.c - $(CC) $(CFLAGS) -c -o $@ $< - -elf: $(OBJ) - $(CC) $(LDFLAGS) $(OBJ) -o $(TARGET).elf - -hex: elf - avr-objcopy $(HEX_FLAGS) $(TARGET).elf $(TARGET).hex - -upload: hex - avrdude $(AVRDUDE_FLAGS) flash:w:$(TARGET).hex:i - -.PHONY: clean - -clean: - rm *.o *.elf *.hex diff --git a/_blog/arduino-uno/breadboard.jpeg b/_blog/arduino-uno/breadboard.jpeg deleted file mode 100644 index bd74907..0000000 Binary files a/_blog/arduino-uno/breadboard.jpeg and /dev/null differ diff --git a/_blog/arduino-uno/pinout.png b/_blog/arduino-uno/pinout.png deleted file mode 100644 index 59acfbc..0000000 Binary files a/_blog/arduino-uno/pinout.png and /dev/null differ -- cgit v1.2.3