[riot-notifications] [RIOT-OS/RIOT] cpu/rpx0xx: add periph timer (#16627)

fabian18 notifications at github.com
Tue Jul 27 09:48:51 CEST 2021


```
Building application "tests_pkg_flatbuffers" for "rpi-pico" with MCU "rpx0xx".

rm -rf /tmp/dwq.0.12608149732274465/fa3616a9a42e33e62055f6de0feb46ad/build/pkg-build/flatbuffers
[INFO] cloning flatbuffers
git-cache: cloning from cache. tag=592c204500d79f46bdf5f225c3de82f69e87b50f/v1.11.0
[INFO] updating flatbuffers /tmp/dwq.0.12608149732274465/fa3616a9a42e33e62055f6de0feb46ad/build/pkg/flatbuffers/.pkg-state.git-downloaded
echo v1.11.0 > /tmp/dwq.0.12608149732274465/fa3616a9a42e33e62055f6de0feb46ad/build/pkg/flatbuffers/.pkg-state.git-downloaded
[INFO] patch flatbuffers
In file included from ../../boards/rpi-pico/include/periph_conf.h:25,
                 from ../../boards/rpi-pico/include/board.h:23,
                 from ../include/xtimer.h:46,
                 from condition_variable.cpp:28:
../../cpu/rpx0xx/include/periph_cpu.h: In function 'void gpio_set_pad_config(uint8_t, gpio_pad_ctrl_t)':
../../cpu/rpx0xx/include/periph_cpu.h:442:58: error: passing 'volatile gpio_pad_ctrl_t' as 'this' argument discards qualifiers [-fpermissive]
  442 |     *(volatile gpio_pad_ctrl_t*)gpio_pad_register(pin) = config;
      |                                                          ^~~~~~
../../cpu/rpx0xx/include/periph_cpu.h:299:3: note:   in call to 'gpio_pad_ctrl_t& gpio_pad_ctrl_t::operator=(const gpio_pad_ctrl_t&)'
  299 | } gpio_pad_ctrl_t;
      |   ^~~~~~~~~~~~~~~
../../cpu/rpx0xx/include/periph_cpu.h: In function 'void gpio_set_io_config(uint8_t, gpio_io_ctrl_t)':
../../cpu/rpx0xx/include/periph_cpu.h:459:56: error: passing 'volatile gpio_io_ctrl_t' as 'this' argument discards qualifiers [-fpermissive]
  459 |     *(volatile gpio_io_ctrl_t*)gpio_io_register(pin) = config;
      |                                                        ^~~~~~
../../cpu/rpx0xx/include/periph_cpu.h:390:3: note:   in call to 'gpio_io_ctrl_t& gpio_io_ctrl_t::operator=(const gpio_io_ctrl_t&)'
  390 | } gpio_io_ctrl_t;
```

This error disappears without `volatile` in the cast.
I don´t know if it is required and it seems unrelated to me.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16627#issuecomment-887291540
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210727/594e5969/attachment.htm>


More information about the notifications mailing list