diff options
author | David Crocker <dcrocker@eschertech.com> | 2021-10-31 20:13:29 +0300 |
---|---|---|
committer | David Crocker <dcrocker@eschertech.com> | 2021-10-31 20:13:29 +0300 |
commit | 9b90cdf445b9893eb93c02317ef87965ec60657f (patch) | |
tree | 4d586fe0b033528dcfaa31477dec2e2cef716c88 /src/Hardware/SAME70 | |
parent | c0b1908a673e62e8553264f31057843d11a27bc5 (diff) |
Annotations for static analysis
Diffstat (limited to 'src/Hardware/SAME70')
-rw-r--r-- | src/Hardware/SAME70/PinDescription.h | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/Hardware/SAME70/PinDescription.h b/src/Hardware/SAME70/PinDescription.h index 77c80971..1924343e 100644 --- a/src/Hardware/SAME70/PinDescription.h +++ b/src/Hardware/SAME70/PinDescription.h @@ -15,19 +15,19 @@ enum class PinCapability: uint8_t { // Individual capabilities - none = 0, - read = 1, - ain = 2, - write = 4, - pwm = 8, + none = 0u, + read = 1u, + ain = 2u, + write = 4u, + pwm = 8u, // Combinations - ainr = 1|2, - rw = 1|4, - wpwm = 4|8, - rwpwm = 1|4|8, - ainrw = 1|2|4, - ainrwpwm = 1|2|4|8 + ainr = 1u|2u, + rw = 1u|4u, + wpwm = 4u|8u, + rwpwm = 1u|4u|8u, + ainrw = 1u|2u|4u, + ainrwpwm = 1u|2u|4u|8u }; constexpr inline PinCapability operator|(PinCapability a, PinCapability b) noexcept @@ -40,10 +40,10 @@ constexpr inline PinCapability operator|(PinCapability a, PinCapability b) noexc struct PinDescription : public PinDescriptionBase { PinCapability cap; - const char* pinNames; + const char *_ecv_array null pinNames; PinCapability GetCapability() const noexcept { return cap; } - const char* GetNames() const noexcept { return pinNames; } + const char *_ecv_array null GetNames() const noexcept { return pinNames; } }; #endif /* SRC_HARDWARE_SAME70_PINDESCRIPTION_H_ */ |