Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code under GSM_SLEEP causes compilation errors for Discovery board #45

Open
garyachy opened this issue Apr 20, 2017 · 0 comments
Open
Assignees
Labels

Comments

@garyachy
Copy link
Contributor

drivers/network/gsm_ll.c:185:3: warning: implicit declaration of function 'strnlen' [-Wimplicit-function-declaration]
len = strnlen(buf, MAX_BUF_LEN) + 1;
^
In file included from OS/Chibios/os/hal/include/pal.h:113:0,
from OS/Chibios/os/hal/include/hal.h:45,
from common/include/common.h:27,
from drivers/network/gsm_ll.c:30:
drivers/network/gsm_ll.c: In function 'gsmTask':
drivers/network/gsm_ll.c:712:28: error: 'GPIOA_PIN6' undeclared (first use in this function)
palClearPad(GPIOA, GPIOA_PIN6);
^
OS/Chibios/os/hal/ports/STM32/LLD/GPIOv2/pal_lld.h:428:74: note: in definition of macro 'pal_lld_clearport'
#define pal_lld_clearport(port, bits) ((port)->BSRR.H.clear = (uint16_t)(bits))
^
OS/Chibios/os/hal/include/pal.h:482:32: note: in expansion of macro 'palClearPort'
#define palClearPad(port, pad) palClearPort(port, PAL_PORT_BIT(pad))
^
OS/Chibios/os/hal/include/pal.h:482:51: note: in expansion of macro 'PAL_PORT_BIT'
#define palClearPad(port, pad) palClearPort(port, PAL_PORT_BIT(pad))
^
drivers/network/gsm_ll.c:712:9: note: in expansion of macro 'palClearPad'
palClearPad(GPIOA, GPIOA_PIN6);
^
drivers/network/gsm_ll.c:712:28: note: each undeclared identifier is reported only once for each function it appears in
palClearPad(GPIOA, GPIOA_PIN6);
^
OS/Chibios/os/hal/ports/STM32/LLD/GPIOv2/pal_lld.h:428:74: note: in definition of macro 'pal_lld_clearport'
#define pal_lld_clearport(port, bits) ((port)->BSRR.H.clear = (uint16_t)(bits))
^
OS/Chibios/os/hal/include/pal.h:482:32: note: in expansion of macro 'palClearPort'
#define palClearPad(port, pad) palClearPort(port, PAL_PORT_BIT(pad))
^
OS/Chibios/os/hal/include/pal.h:482:51: note: in expansion of macro 'PAL_PORT_BIT'
#define palClearPad(port, pad) palClearPort(port, PAL_PORT_BIT(pad))
^
drivers/network/gsm_ll.c:712:9: note: in expansion of macro 'palClearPad'
palClearPad(GPIOA, GPIOA_PIN6);
^

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants