|
Modbus Vault v1.0
|
Debug using GPIO toggling. More...
#include "driver/gpio.h"#include "sdkconfig.h"Go to the source code of this file.
Macros | |
| #define | PINS_TABLE(ENTRY) |
| Debug pins table. | |
| #define | AS_ENUM(pin_name, pin_num) pin_name = pin_num, |
| #define | DEBUG_GPIO_SET(pin) |
| #define | DEBUG_GPIO_CLR(pin) |
Enumerations | |
| enum | debug_pins_t { DEBUG_PINS_FRAME_CAPTURE = (GPIO_NUM_6) , DEBUG_PINS_FRAME_SERIALIZED = (GPIO_NUM_7) , DEBUG_PINS_FRAME_PUBLISHED = (GPIO_NUM_8) , DEBUG_PINS_FRAME_LOGGED = (GPIO_NUM_9) } |
| Debug pins Enums. More... | |
Functions | |
| esp_err_t | init_debug_pins (void) |
| Initiate debug pins if any. | |
Debug using GPIO toggling.
This module handles debugging code using pins toggling for different modules.
| #define AS_ENUM | ( | pin_name, | |
| pin_num | |||
| ) | pin_name = pin_num, |
We will extract both name and number from table
| #define DEBUG_GPIO_CLR | ( | pin | ) |
Does nothing
| #define DEBUG_GPIO_SET | ( | pin | ) |
Does nothing
| #define PINS_TABLE | ( | ENTRY | ) |
Debug pins table.
| enum debug_pins_t |
Debug pins Enums.
| esp_err_t init_debug_pins | ( | void | ) |
Initiate debug pins if any.
| ESP_OK | Initialize success |
| ESP_ERR_INVALID_ARG | Provided invalid argument(s) |