mirror of
https://github.com/xtacocorex/CHIP_IO
synced 2025-07-20 04:43:21 +00:00
Got rid of last of GPIO port constants from code.
This commit is contained in:
@ -42,14 +42,31 @@ SOFTWARE.
|
||||
|
||||
#define ARRAY_SIZE(a) (sizeof(a) / sizeof(a[0]))
|
||||
|
||||
// See http://blog.geeky-boy.com/2016/06/of-compiler-warnings-and-asserts-in.html
|
||||
#define ASSRT(cond_expr) do { \
|
||||
if (!(cond_expr)) { \
|
||||
fprintf(stderr, "ASSRT failed at %s:%d (%s)", __FILE__, __LINE__, #cond_expr); \
|
||||
fflush(stderr); \
|
||||
abort(); \
|
||||
} } while (0)
|
||||
|
||||
#define FILENAME_BUFFER_SIZE 128
|
||||
|
||||
int get_xio_base();
|
||||
int setup_error;
|
||||
int module_setup;
|
||||
|
||||
int get_xio_base(void);
|
||||
int lookup_gpio_by_key(const char *key);
|
||||
int lookup_gpio_by_name(const char *name);
|
||||
int lookup_ain_by_key(const char *key);
|
||||
int lookup_ain_by_name(const char *name);
|
||||
int copy_key_by_key(const char *input_key, char *key);
|
||||
int copy_pwm_key_by_key(const char *input_key, char *key);
|
||||
int get_key_by_name(const char *name, char *key);
|
||||
int get_pwm_key_by_name(const char *name, char *key);
|
||||
int get_gpio_number(const char *key, unsigned int *gpio);
|
||||
int get_pwm_key(const char *input, char *key);
|
||||
int get_key(const char *input, char *key);
|
||||
int get_pwm_key(const char *input, char *key);
|
||||
int get_adc_ain(const char *key, unsigned int *ain);
|
||||
int build_path(const char *partial_path, const char *prefix, char *full_path, size_t full_path_len);
|
||||
int get_spi_bus_path_number(unsigned int spi);
|
||||
int setup_error;
|
||||
int module_setup;
|
||||
|
Reference in New Issue
Block a user