corecture F_CPU and osccal, there seems to be a bug only when connected to the pc but not to the wall adapter
This commit is contained in:
8
makefile
8
makefile
@@ -10,7 +10,7 @@ FORMAT = ihex
|
||||
TARGET = main
|
||||
SRC = $(TARGET).c avr_adc.c fix_fft.c light_ws2812_AVR/Light_WS2812/light_ws2812.c
|
||||
ASRC =
|
||||
OPT = 0
|
||||
OPT = 1
|
||||
|
||||
# Name of this Makefile (used for "make depend").
|
||||
MAKEFILE = Makefile
|
||||
@@ -18,7 +18,7 @@ MAKEFILE = Makefile
|
||||
# Debugging format.
|
||||
# Native formats for AVR-GCC's -g are stabs [default], or dwarf-2.
|
||||
# AVR (extended) COFF requires stabs, plus an avr-objcopy run.
|
||||
DEBUG = stabs
|
||||
#DEBUG = stabs
|
||||
|
||||
# Compiler flag to set the C Standard level.
|
||||
# c89 - "ANSI" C
|
||||
@@ -28,7 +28,7 @@ DEBUG = stabs
|
||||
CSTANDARD = -std=gnu99
|
||||
|
||||
# Place -D or -U options here
|
||||
CDEFS = -D F_CPU=32000000UL
|
||||
CDEFS = -D F_CPU=16000000UL
|
||||
|
||||
# Place -I options here
|
||||
CINCS =
|
||||
@@ -38,7 +38,7 @@ CDEBUG = -g$(DEBUG)
|
||||
CWARN = -Wall -Wstrict-prototypes
|
||||
CTUNING = -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
|
||||
#CEXTRA = -Wa,-adhlns=$(<:.c=.lst)
|
||||
CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD) $(CEXTRA)
|
||||
CFLAGS = $(CDEBUG) $(CDEFS) $(CINCS) -O$(OPT) $(CWARN) $(CSTANDARD)# $(CEXTRA)
|
||||
|
||||
|
||||
#ASFLAGS = -Wa,-adhlns=$(<:.S=.lst),-gstabs
|
||||
|
||||
Reference in New Issue
Block a user