Test: switch to gpio_sys.
This commit is contained in:
@@ -4,7 +4,7 @@
|
||||
#include <sys/syscall.h>
|
||||
|
||||
#include <utest.h>
|
||||
#include <mock_ftdi.h>
|
||||
#include <mock_gpio.h>
|
||||
|
||||
#include <i2c_bb.h>
|
||||
|
||||
|
@@ -4,7 +4,7 @@
|
||||
#include <sys/syscall.h>
|
||||
|
||||
#include <utest.h>
|
||||
#include <mock_ftdi.h>
|
||||
#include <mock_gpio.h>
|
||||
|
||||
#include <i2c_bb.h>
|
||||
|
||||
|
@@ -1,9 +1,9 @@
|
||||
#include <mock_ftdi.h>
|
||||
#include <mock_gpio.h>
|
||||
|
||||
DEFINE_FFF_GLOBALS;
|
||||
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_open, const struct gpio_sys *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_close, const struct gpio_sys *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_direction, struct gpio_sys *, int);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_read, const struct gpio_sys *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_write, const struct gpio_sys *, int);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_toggle, const struct gpio_sys *);
|
Reference in New Issue
Block a user