fixed i2c (internal pullup + right scan method)

This commit is contained in:
Edward Emelianov
2023-01-10 23:45:27 +03:00
parent f88e9ec4df
commit ed5a19f8bb
4 changed files with 17 additions and 16 deletions

View File

@@ -64,12 +64,11 @@ CFLAGS += -O2 -MD -D__thumb2__=1
CFLAGS += -Wall -Werror -Wextra -Wshadow -Wimplicit-function-declaration
CFLAGS += -Wredundant-decls $(INCLUDE)
# -Wmissing-prototypes -Wstrict-prototypes
CFLAGS += -fno-common -ffunction-sections -fdata-sections
CFLAGS += -fno-common -ffunction-sections -fdata-sections
###############################################################################
# Linker flags
LDFLAGS += --static -nostartfiles
#--specs=nano.specs
LDFLAGS += --static -nostartfiles --specs=nano.specs
LDFLAGS += -L$(LIB_DIR)
LDFLAGS += -T$(LDSCRIPT)
LDFLAGS += -Wl,-Map=$(OBJDIR)/$(BINARY).map
@@ -146,7 +145,7 @@ clean:
@rmdir $(OBJDIR) 2>/dev/null || true
size: $(ELF)
$(SIZE) $(ELF)
$(SIZE) -Ax $(ELF)
flash: $(BIN)
@echo " FLASH $(BIN)"