Compare commits
3 Commits
7da732b5e1
...
master
Author | SHA1 | Date | |
---|---|---|---|
|
75fcc29d57 | ||
|
42c902ea52 | ||
|
8cb066d3dc |
@@ -24,14 +24,14 @@ PREFIX=/usr/local/ make install
|
||||
## Uninstallation
|
||||
|
||||
```shell
|
||||
make install
|
||||
make uninstall
|
||||
```
|
||||
|
||||
Removes the files installed with the `install` make target.
|
||||
> **NOTE:** If `PREFIX` variable was changed during installation process the same value needs to be set for uninstallation. E.g.:
|
||||
|
||||
```shell
|
||||
PREFIX=/usr/local/ make install
|
||||
PREFIX=/usr/local/ make uninstall
|
||||
```
|
||||
|
||||
## Example
|
||||
@@ -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. |
|
||||
|
@@ -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";
|
||||
|
Reference in New Issue
Block a user