timer0 ctc
This commit is contained in:
20
Makefile
20
Makefile
@@ -3,19 +3,21 @@ CROSS_COMPILE ?= avr-
|
||||
TARGET_FILE ?= avr.elf
|
||||
|
||||
MCU = attiny85
|
||||
DUDE_MCU = t85
|
||||
# MCU = atmega8
|
||||
|
||||
C_FLAGS += -Wall -Werror
|
||||
# C_FLAGS += -Wall -Werror
|
||||
C_FLAGS += -Os
|
||||
C_FLAGS += -mmcu=$(MCU)
|
||||
C_FLAGS += -ffunction-sections
|
||||
C_FLAGS += -fdata-sections
|
||||
C_FLAGS += -std=c11
|
||||
C_FLAGS += -pedantic
|
||||
C_FLAGS += -pedantic-errors
|
||||
# C_FLAGS += -ffunction-sections
|
||||
# C_FLAGS += -fdata-sections
|
||||
# C_FLAGS += -std=c11
|
||||
# C_FLAGS += -pedantic
|
||||
# C_FLAGS += -pedantic-errors
|
||||
C_FLAGS += -Iinclude
|
||||
|
||||
DUDE_FLAGS = -p $(DUDE_MCU)
|
||||
LD_FLAGS += -mmcu=$(MCU)
|
||||
|
||||
DUDE_FLAGS = -p $(MCU)
|
||||
DUDE_FLAGS += -P /dev/spidev0.0
|
||||
DUDE_FLAGS += -c linuxspi
|
||||
DUDE_FLAGS += -b 10000
|
||||
@@ -49,7 +51,7 @@ $(TARGET): $(OBJS) Makefile
|
||||
$(OBJ_DIR)/%.o: $(SRC_DIR)/%.c
|
||||
@mkdir -p $(dir $@)
|
||||
@$(call makedep,$<,$@,$(patsubst %.c,%.d,$(OBJ_DIR)/$(notdir $<)),$(C_FLAGS))
|
||||
$(CC) -c $(C_FLAGS) $(CCFLAGS) -o $@ $<
|
||||
$(CC) -c $(C_FLAGS) -o $@ $<
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
Reference in New Issue
Block a user