[riot-notifications] [RIOT-OS/RIOT] USBUS: Initial work towards an USB stack (#10916)

Dylan Laduranty notifications at github.com
Mon Mar 18 22:25:35 CET 2019


@bergzand gcc is complaining 

```
$ make BOARD=arduino-zero -C examples/usbus_minimal
make : on entre dans le répertoire « /home/dylad/software/RIOT/examples/usbus_minimal »
Building application "usbus_minimal" for "arduino-zero" with MCU "samd21".

"make" -C /home/dylad/software/RIOT/boards/arduino-zero
"make" -C /home/dylad/software/RIOT/core
"make" -C /home/dylad/software/RIOT/cpu/samd21
"make" -C /home/dylad/software/RIOT/cpu/cortexm_common
"make" -C /home/dylad/software/RIOT/cpu/cortexm_common/periph
"make" -C /home/dylad/software/RIOT/cpu/sam0_common
"make" -C /home/dylad/software/RIOT/cpu/sam0_common/periph
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c: In function '_usbdev_init':
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:308:29: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init(usbdev->config.dp, GPIO_IN);
                             ^
                             ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:309:29: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init(usbdev->config.dm, GPIO_IN);
                             ^
                             ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:310:33: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init_mux(usbdev->config.dm, usbdev->config.dm_mux);
                                 ^
                                 ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:310:52: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init_mux(usbdev->config.dm, usbdev->config.dm_mux);
                                                    ^
                                                    ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:311:33: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init_mux(usbdev->config.dp, usbdev->config.dp_mux);
                                 ^
                                 ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:311:52: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init_mux(usbdev->config.dp, usbdev->config.dp_mux);
                                                    ^
                                                    ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:336:5: error: implicit declaration of function 'gpio_init_int'; did you mean 'gpio_init_mux'? [-Werror=implicit-function-declaration]
     gpio_init_int(usbdev->config.vbus, GPIO_IN_PD, GPIO_BOTH,
     ^~~~~~~~~~~~~
     gpio_init_mux
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:336:33: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     gpio_init_int(usbdev->config.vbus, GPIO_IN_PD, GPIO_BOTH,
                                 ^
                                 ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:338:33: error: 'usbdev->config' is a pointer; did you mean to use '->'?
     if (gpio_read(usbdev->config.vbus)) {
                                 ^
                                 ->
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c: In function '_usbdev_esr':
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:496:23: error: 'usbus' undeclared (first use in this function); did you mean 'usbdev'?
         if (gpio_read(usbus->config.vbus)) {
                       ^~~~~
                       usbdev
/home/dylad/software/RIOT/cpu/sam0_common/periph/usbdev.c:496:23: note: each undeclared identifier is reported only once for each function it appears in
cc1: all warnings being treated as errors
/home/dylad/software/RIOT/Makefile.base:83: recipe for target '/home/dylad/software/RIOT/examples/usbus_minimal/bin/arduino-zero/sam0_common_periph/usbdev.o' failed
```


-- 
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/10916#issuecomment-474107524
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190318/11ba36c0/attachment-0001.html>


More information about the notifications mailing list