15 lines
437 B
C
15 lines
437 B
C
#ifndef __MOCK_GPIO_H__
|
|
#define __MOCK_GPIO_H__
|
|
|
|
#include <fff.h>
|
|
|
|
DEFINE_FFF_GLOBALS;
|
|
|
|
DECLARE_FAKE_VALUE_FUNC(int, gpio_open, const struct gpio_sys *);
|
|
DECLARE_FAKE_VALUE_FUNC(int, gpio_close, const struct gpio_sys *);
|
|
DECLARE_FAKE_VALUE_FUNC(int, gpio_direction, struct gpio_sys *, int);
|
|
DECLARE_FAKE_VALUE_FUNC(int, gpio_read, const struct gpio_sys *);
|
|
DECLARE_FAKE_VALUE_FUNC(int, gpio_write, const struct gpio_sys *, int);
|
|
|
|
#endif
|