Initial commit.
This commit is contained in:
9
test/unit/mock_ftdi.c
Normal file
9
test/unit/mock_ftdi.c
Normal file
@@ -0,0 +1,9 @@
|
||||
#include <mock_ftdi.h>
|
||||
|
||||
DEFINE_FFF_GLOBALS;
|
||||
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_open, const struct gpio *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_close, const struct gpio *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_read, const struct gpio *, unsigned int *);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_write, const struct gpio *, unsigned int);
|
||||
DEFINE_FAKE_VALUE_FUNC(int, gpio_toggle, const struct gpio *);
|
||||
Reference in New Issue
Block a user