Compare commits
4 Commits
c16dcc3a3c
...
wip
| Author | SHA1 | Date | |
|---|---|---|---|
| fe8076ad07 | |||
| a6916159b6 | |||
| 1c8230747f | |||
| 3620b54406 |
@@ -16,6 +16,7 @@
|
|||||||
#define ZH_MCP23S17_GPIO_INPUT true
|
#define ZH_MCP23S17_GPIO_INPUT true
|
||||||
#define ZH_MCP23S17_GPIO_LOW false
|
#define ZH_MCP23S17_GPIO_LOW false
|
||||||
#define ZH_MCP23S17_GPIO_HIGH true
|
#define ZH_MCP23S17_GPIO_HIGH true
|
||||||
|
//eee
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief MCP23S17 expander initial default values.
|
* @brief MCP23S17 expander initial default values.
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ static const char *TAG = "mcp23s17";
|
|||||||
|
|
||||||
#define ZH_LOGI(msg, ...) ESP_LOGI(TAG, msg, ##__VA_ARGS__)
|
#define ZH_LOGI(msg, ...) ESP_LOGI(TAG, msg, ##__VA_ARGS__)
|
||||||
#define ZH_LOGE(msg, err, ...) ESP_LOGE(TAG, "[%s:%d:%s] " msg, __FILE__, __LINE__, esp_err_to_name(err), ##__VA_ARGS__)
|
#define ZH_LOGE(msg, err, ...) ESP_LOGE(TAG, "[%s:%d:%s] " msg, __FILE__, __LINE__, esp_err_to_name(err), ##__VA_ARGS__)
|
||||||
|
// wwww
|
||||||
#define ZH_ERROR_CHECK(cond, err, cleanup, msg, ...) \
|
#define ZH_ERROR_CHECK(cond, err, cleanup, msg, ...) \
|
||||||
if (!(cond)) \
|
if (!(cond)) \
|
||||||
{ \
|
{ \
|
||||||
|
|||||||
Reference in New Issue
Block a user