diff options
author | Dmitriy Lisin <d.lisin@thirdpin.io> | 2020-12-24 20:49:30 +0300 |
---|---|---|
committer | Dmitriy Lisin <d.lisin@thirdpin.io> | 2020-12-24 20:49:30 +0300 |
commit | becd58b3e3d591a6686938959bcc93cde421973e (patch) | |
tree | 7513c8263bce126eeac415691de75a3d98eefd06 | |
parent | 6aceb78b83d1390c73ca395a297fa60c8a4de151 (diff) |
[gpio] FIX: Compilation fails if `cm3cpp::gpio::Gpio::Pinout` not in scopebugfix/pinout_macros_case_compile_error
Compiles only if `using cm3cpp::gpio::Gpio::Pinout` defined
somewhere in scope. Add full name of `Pinout` class from
root namespace.
-rw-r--r-- | cm3cpp/private/pinout.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cm3cpp/private/pinout.h b/cm3cpp/private/pinout.h index dfb0841..3416656 100644 --- a/cm3cpp/private/pinout.h +++ b/cm3cpp/private/pinout.h @@ -3,7 +3,8 @@ #define PINOUT_CTOR(port, pin) \ { \ - static_cast<Pinout::Port>(GPIO##port), GPIO##pin, pin \ + static_cast<::cm3cpp::gpio::Gpio::Pinout::Port>(GPIO##port), \ + GPIO##pin, pin, \ } #define PNULL \ |