Fix debug port names for PWM

This commit is contained in:
Rihards Skuja 2018-01-09 20:16:51 +02:00
parent 60aedbc945
commit 4a4d6e19de
No known key found for this signature in database
GPG Key ID: 53FA13A3F7F8571B
2 changed files with 9 additions and 8 deletions

View File

@ -13,7 +13,7 @@ TARGET = main
SRC = $(wildcard $(SRC_DIR)/*.c)
OBJ = $(SRC:$(SRC_DIR)/%.c=$(OBJ_DIR)/%.o)
LST = $(SRC:$(SRC_DIR)/%.c=$(BUILD_DIR)/%.lst)
OPT = s
OPT = s
# Name of this Makefile (used for "make depend").
MAKEFILE = Makefile
@ -53,6 +53,7 @@ ifeq ($(BUILD),debug)
-Wmissing-include-dirs -Wno-unused-parameter -Wuninitialized \
-Wold-style-definition -Wmissing-prototypes -Wunreachable-code \
-Wno-unused-but-set-variable -Wmaybe-uninitialized
CINCS += -I/usr/include/simavr
#
endif
@ -97,7 +98,7 @@ AVRDUDE_PROGRAMMER = usbasp
AVRDUDE_PORT = usb
AVRDUDE_WRITE_FLASH = -U flash:w:$(BUILD_DIR)/$(TARGET).hex
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
#AVRDUDE_WRITE_EEPROM = -U eeprom:w:$(TARGET).eep
# Uncomment the following if you want avrdude's erase cycle counter.

View File

@ -2,15 +2,15 @@
#define DEBUG_H
#include <avr/io.h>
#include "/usr/include/simavr/avr/avr_mcu_section.h"
#include <avr/avr_mcu_section.h>
AVR_MCU(F_CPU, "atmega328p");
const struct avr_mmcu_vcd_trace_t _mytrace[] _MMCU_ = {
{ AVR_MCU_VCD_SYMBOL("DDRB"), .what = (void *) &DDRB, },
{ AVR_MCU_VCD_SYMBOL("TCCR1A"), .what = (void *) &TCCR1A, },
{ AVR_MCU_VCD_SYMBOL("TCCR1B"), .what = (void *) &TCCR1B, },
{ AVR_MCU_VCD_SYMBOL("OCR1A"), .what = (void *) &OCR1A, },
{ AVR_MCU_VCD_SYMBOL("OCR1B"), .what = (void *) &OCR1B, },
{ AVR_MCU_VCD_SYMBOL("DDRD"), .what = (void *) &DDRD, },
{ AVR_MCU_VCD_SYMBOL("TCCR0A"), .what = (void *) &TCCR0A, },
{ AVR_MCU_VCD_SYMBOL("TCCR0B"), .what = (void *) &TCCR0B, },
{ AVR_MCU_VCD_SYMBOL("OCR0A"), .what = (void *) &OCR0A, },
{ AVR_MCU_VCD_SYMBOL("OCR0B"), .what = (void *) &OCR0B, },
};
#endif /* DEBUG_H */