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>
20 lines
429 B
C
20 lines
429 B
C
#ifndef __LINUX_INTERNAL_H
|
|
#define __LINUX_INTERNAL_H
|
|
// Local definitions for micro-controllers running on linux
|
|
|
|
#include <time.h> // struct timespec
|
|
|
|
// console.c
|
|
void report_errno(char *where, int rc);
|
|
int set_non_blocking(int fd);
|
|
int console_setup(char *name);
|
|
void console_sleep(struct timespec ts);
|
|
|
|
// timer.c
|
|
int timer_check_periodic(struct timespec *ts);
|
|
|
|
// watchdog.c
|
|
int watchdog_setup(void);
|
|
|
|
#endif // internal.h
|