diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2017-08-06 11:20:12 -0400 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2017-09-20 12:55:28 -0400 |
commit | 73a1c9d249170a2edc842af7f852e60c427f0f6d (patch) | |
tree | d896406bc29e0f3e80b55dd3136c44170bcc15ed /src/linux/console.c | |
parent | d851882278644b959d9175d6b303631ddc8cd2c6 (diff) | |
download | kutter-73a1c9d249170a2edc842af7f852e60c427f0f6d.tar.gz kutter-73a1c9d249170a2edc842af7f852e60c427f0f6d.tar.xz kutter-73a1c9d249170a2edc842af7f852e60c427f0f6d.zip |
linux: Add support for pca9685 i2c pwm devices
Add support for controlling pca9685 PWM drivers using the standard
Linux I2C interface. The pca9685 device is found on Replicape boards.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'src/linux/console.c')
-rw-r--r-- | src/linux/console.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/linux/console.c b/src/linux/console.c index dcffc701..ba6223a0 100644 --- a/src/linux/console.c +++ b/src/linux/console.c @@ -25,7 +25,7 @@ static struct pollfd main_pfd[2]; #define MP_TTY_IDX 1 // Report 'errno' in a message written to stderr -static void +void report_errno(char *where, int rc) { int e = errno; @@ -37,7 +37,7 @@ report_errno(char *where, int rc) * Setup ****************************************************************/ -static int +int set_non_blocking(int fd) { int flags = fcntl(fd, F_GETFL); |