File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
freemodbus/common/include Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 99
1010#include <stdint.h> // for standard int types definition
1111#include <stddef.h> // for NULL and std defines
12- #include "soc/soc .h" // for BITN definitions
12+ #include "esp_bit_defs .h" // for BITN definitions
1313#include "esp_modbus_common.h" // for common types
1414
1515#ifdef __cplusplus
@@ -112,9 +112,9 @@ typedef union {
112112 * @brief Permissions for the characteristics
113113 */
114114typedef enum {
115- PAR_PERMS_READ = 1 << BIT0 , /**< the characteristic of the device are readable */
116- PAR_PERMS_WRITE = 1 << BIT1 , /**< the characteristic of the device are writable*/
117- PAR_PERMS_TRIGGER = 1 << BIT2 , /**< the characteristic of the device are triggerable */
115+ PAR_PERMS_READ = BIT0 , /**< the characteristic of the device are readable */
116+ PAR_PERMS_WRITE = BIT1 , /**< the characteristic of the device are writable*/
117+ PAR_PERMS_TRIGGER = BIT2 , /**< the characteristic of the device are triggerable */
118118 PAR_PERMS_READ_WRITE = PAR_PERMS_READ | PAR_PERMS_WRITE , /**< the characteristic of the device are readable & writable */
119119 PAR_PERMS_READ_TRIGGER = PAR_PERMS_READ | PAR_PERMS_TRIGGER , /**< the characteristic of the device are readable & triggerable */
120120 PAR_PERMS_WRITE_TRIGGER = PAR_PERMS_WRITE | PAR_PERMS_TRIGGER , /**< the characteristic of the device are writable & triggerable */
You can’t perform that action at this time.
0 commit comments