Skip to content

Commit

Permalink
Hide state struct and blink_cb from public
Browse files Browse the repository at this point in the history
  • Loading branch information
Enophi committed Oct 20, 2021
1 parent 1d90aee commit 7cf011a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
3 changes: 0 additions & 3 deletions include/mgos_pcf857x.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ extern "C" {

struct mgos_pcf857x;

struct mgos_pcf857x_gpio_blink_state;

/*
* Initialize a PCF857X on the I2C bus `i2c` at address specified in `i2caddr`
* parameter (default PCF857X is on address 0x20). The device will be polled for
Expand Down Expand Up @@ -72,7 +70,6 @@ bool mgos_pcf857x_gpio_set_button_handler(struct mgos_pcf857x *dev, int pin, enu
* Set to (0, 0) to disable.
*/
bool mgos_pcf857x_gpio_blink(struct mgos_pcf857x *dev, int pin, int on_ms, int off_ms);
void mgos_pcf857x_gpio_blink_cb(void *arg);

#ifdef __cplusplus
}
Expand Down
3 changes: 3 additions & 0 deletions src/mgos_pcf857x_internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ struct mgos_pcf857x_gpio_blink_state {
} blink;
};

/* Callback used by the blink function */
static void mgos_pcf857x_gpio_blink_cb(void *arg);

/* Mongoose OS initializer */
bool mgos_pcf857x_i2c_init(void);

Expand Down

0 comments on commit 7cf011a

Please sign in to comment.