i2c_bb/test/inc/mock_gpio.h

15 lines
437 B
C
Raw Normal View History

2019-07-29 12:34:19 +02:00
#ifndef __MOCK_GPIO_H__
#define __MOCK_GPIO_H__
2019-07-18 16:26:03 +02:00
#include <fff.h>
DEFINE_FFF_GLOBALS;
2019-07-25 13:33:01 +02:00
DECLARE_FAKE_VALUE_FUNC(int, gpio_open, const struct gpio_sys *);
DECLARE_FAKE_VALUE_FUNC(int, gpio_close, const struct gpio_sys *);
2019-07-29 12:34:19 +02:00
DECLARE_FAKE_VALUE_FUNC(int, gpio_direction, struct gpio_sys *, int);
2019-07-25 13:33:01 +02:00
DECLARE_FAKE_VALUE_FUNC(int, gpio_read, const struct gpio_sys *);
DECLARE_FAKE_VALUE_FUNC(int, gpio_write, const struct gpio_sys *, int);
2019-07-18 16:26:03 +02:00
#endif