25 Commits

Author SHA1 Message Date
Thomas Klaehn ebf1929ac3 Add readme 2019-07-29 15:22:22 +02:00
Thomas Klaehn d86f12f3fe Rename i2c_bb.h -> i2c.h 2019-07-29 15:22:22 +02:00
Thomas Klaehn 6b0f6f3093 Test: switch to gpio_sys. 2019-07-29 12:34:19 +02:00
Thomas Klaehn 7f5d18d554 wip 2019-07-25 14:34:05 +02:00
Thomas Klaehn 98c04194fe modify sda pin direction for read. 2019-07-25 14:22:15 +02:00
Thomas Klaehn 29d76c9d2f Use gpio_sys lib. 2019-07-25 13:33:01 +02:00
Thomas Klaehn bcc4cb8291 wip 2019-07-25 08:25:10 +02:00
Thomas Klaehn 695bf90c03 wip 2019-07-23 16:12:10 +02:00
Thomas Klaehn 2a528c0976 Make cppcheck happy 2019-07-23 15:42:56 +02:00
Thomas Klaehn 501991058c Fix naming error. 2019-07-23 15:26:50 +02:00
Thomas Klaehn b6ca09b58e i2c_bb: implement read/write 2019-07-23 14:53:51 +02:00
Thomas Klaehn fe1d96853c Fix: Open/clode correct gpio's. 2019-07-22 17:27:46 +02:00
Thomas Klaehn 9b8936af89 Fix lib install dir 2019-07-22 17:15:24 +02:00
Thomas Klaehn af70fc34a9 Fix include path. 2019-07-22 16:54:42 +02:00
Thomas Klaehn 72c14a53fe Fix Makefile 2019-07-22 16:16:03 +02:00
Thomas Klaehn 23ad1f3445 Fix Makefile 2019-07-22 16:08:41 +02:00
Thomas Klaehn 9590757913 Remove debug make target 2019-07-22 16:03:02 +02:00
Thomas Klaehn e5d3ef4624 Add debug make target 2019-07-22 16:00:36 +02:00
tkl beddee2f57 tmp 2019-07-22 13:54:36 +00:00
Thomas Klaehn 45201ec19c tmp 2019-07-22 15:53:05 +02:00
tkl 6f483252a0 tmp 2019-07-22 13:47:12 +00:00
tkl c12d49bca0 Fix cppcheck flags. 2019-07-22 15:43:27 +02:00
tkl 39592bc80e Correct include path 2019-07-22 13:22:36 +00:00
Thomas Klaehn 1d317af410 tmp 2019-07-20 08:53:44 +02:00
Thomas Klaehn 82becab1cc Initial commit. 2019-07-18 16:26:03 +02:00
4 changed files with 3 additions and 23 deletions
-17
View File
@@ -54,23 +54,6 @@
"isDefault": true
}
},
{
"label": "distclean",
"type":"shell",
"command": "make distclean -j8",
"problemMatcher": {
"base": "$gcc",
"owner": "gcc",
"fileLocation": [
"relative",
"${workspaceFolder}"
]
},
"group": {
"kind": "build",
"isDefault": true
}
},
{
"label": "build_unit_test",
"type":"shell",
+1 -4
View File
@@ -55,7 +55,7 @@ UNIT_TEST_TARGET = $(BIN_DIR)/$(UNIT_TEST_SRC_DIR)/$(TARGET_FILE)
THIS_MAKEFILE := $(lastword $(MAKEFILE_LIST))
.PHONY: all install uninstall clean distclean
.PHONY: all install uninstall clean
all: $(STATIC_LIB) $(DYNAMIC_LIB)
install: all
@@ -80,9 +80,6 @@ clean:
rm -f $(OBJ_DIR)/*.gcda $(OBJ_DIR)/*.gcno
rm -fr $(COVERAGE_DIR)
distclean:
rm -fr $(BIN_DIR) $(OBJ_DIR) $(LIB_DIR) $(COVERAGE_DIR)
.PHONY: coverage
coverage: _cov_genhtml
$(eval COVERAGE:=$(shell grep 'lines' .coverage.tmp | egrep -o '[0-9]+.[0-9]+%'))
+1 -1
View File
@@ -5,7 +5,7 @@
#include <stdint.h>
#include <unistd.h>
#include <i2c.h>
#include <i2c_bb.h>
static void write_bit(const struct i2c_bb *i2c, uint8_t bit);
+1 -1
View File
@@ -6,7 +6,7 @@
#include <utest.h>
#include <mock_gpio.h>
#include <i2c.h>
#include <i2c_bb.h>
UTEST(i2c_close, success)
{