Compare commits
1 Commits
a948a52da4
...
a0fdaacf63
Author | SHA1 | Date | |
---|---|---|---|
a0fdaacf63 |
6
Makefile
6
Makefile
@ -34,7 +34,9 @@ C_FLAGS += -fpic
|
||||
|
||||
C_FLAGS += -O0 -g -Wall -Wextra -Werror
|
||||
CPP_FLAGS += $(addprefix -I, $(INCLUDES))
|
||||
CHECK_FLAGS = --enable=all --template=gcc --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr $(C_SRCS)
|
||||
|
||||
CHECK_FLAGS = $(addprefix -I,$(filter-out $(PREFIX)/include/,$(INCLUDES)))
|
||||
CHECK_FLAGS += --enable=all --template=gcc --error-exitcode=1 --suppress=missingIncludeSystem --inline-suppr --force
|
||||
|
||||
C_SRCS = $(wildcard $(SRC_DIR)/*.c)
|
||||
C_OBJS = $(patsubst $(SRC_DIR)%,$(OBJ_DIR)%,$(patsubst %.c,%.o,$(C_SRCS)))
|
||||
@ -98,7 +100,7 @@ exec_unit_test: $(UNIT_TEST_TARGET)
|
||||
|
||||
.PHONY: check
|
||||
check: $(C_SRCS)
|
||||
$(CHECK) $(CPP_FLAGS) $(CHECK_FLAGS) $(C_SRCS)
|
||||
$(CHECK) $(CHECK_FLAGS) $(C_SRCS)
|
||||
|
||||
$(UNIT_TEST_TARGET): $(UNIT_TEST_OBJS) $(THIS_MAKEFILE)
|
||||
@mkdir -p $(BIN_DIR)/$(UNIT_TEST_SRC_DIR)
|
||||
|
@ -12,12 +12,12 @@
|
||||
|
||||
static struct gpio_sys gpio_sda = {
|
||||
.pin = 4,
|
||||
.direction = OUT,
|
||||
.direction = 1,
|
||||
};
|
||||
|
||||
static struct gpio_sys gpio_scl = {
|
||||
.pin = 24,
|
||||
.direction = OUT,
|
||||
.direction = 1,
|
||||
};
|
||||
|
||||
static struct i2c_bb i2c_dev = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user