Compare commits

...

2 Commits

Author SHA1 Message Date
Thomas Klaehn
42c902ea52 README.md: Update. 2019-07-29 17:08:20 +02:00
Thomas Klaehn
8cb066d3dc fix 2019-07-29 14:54:52 +02:00
2 changed files with 7 additions and 1 deletions

View File

@@ -93,6 +93,7 @@ PREFIX=/usr/local/ make install
| install | Install the libraries and necessary include header files. |
| uninstall | Uninstall the libraries and necessary include header files. |
| clean | Clean up build artifacts. |
| distclean | Remove all directories created while any build step. |
| build_unit_test | Build the unit tests. |
| exec_unit_test | Execute the unit tests. |
| coverage | Determine code coverage of the unit tests. |

View File

@@ -9,7 +9,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <gpio_sys.h>
#include <gpio.h>
#define IN 0
#define OUT 1
@@ -22,6 +22,7 @@ static int gpio_export(int pin);
static int gpio_unexport(int pin);
static int gpio_set_direction(int pin, int dir);
// cppcheck-suppress unusedFunction
int gpio_open(const struct gpio_sys *gpio)
{
int res;
@@ -41,6 +42,7 @@ int gpio_open(const struct gpio_sys *gpio)
return 0;
}
// cppcheck-suppress unusedFunction
int gpio_close(const struct gpio_sys *gpio)
{
int res;
@@ -58,6 +60,7 @@ int gpio_close(const struct gpio_sys *gpio)
return 0;
}
// cppcheck-suppress unusedFunction
int gpio_direction(struct gpio_sys *gpio, int direction)
{
int res;
@@ -76,6 +79,7 @@ int gpio_direction(struct gpio_sys *gpio, int direction)
return 0;
}
// cppcheck-suppress unusedFunction
int gpio_read(const struct gpio_sys *gpio)
{
char path[VALUE_MAX];
@@ -99,6 +103,7 @@ int gpio_read(const struct gpio_sys *gpio)
return(atoi(value_str));
}
// cppcheck-suppress unusedFunction
int gpio_write(const struct gpio_sys *gpio, int value)
{
static const char s_values_str[] = "01";