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

@ -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

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 */