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

Undeclared NOT_AN_INTERRUPT for Nordic NRF52 plateform #14

Open
PJCzx opened this issue Mar 27, 2020 · 1 comment
Open

Undeclared NOT_AN_INTERRUPT for Nordic NRF52 plateform #14

PJCzx opened this issue Mar 27, 2020 · 1 comment

Comments

@PJCzx
Copy link

PJCzx commented Mar 27, 2020

Hello @sumotoy

Thx for your work :)

I submitted a fix for relative path of Wire.h and SPI.h headers. This enables me to build correctly on atmelavr plateform but still have an issue on nordicnrf52.

Environment    Status    Duration
-------------  --------  ------------
nanoatmega328  SUCCESS   00:00:03.300
nordicnrf52    FAILED    00:00:02.831

Here are my project confs :

[env:nanoatmega328]
platform = atmelavr
board = nanoatmega328
framework = arduino
lib_deps =
    Wire
    SPI
    gpio_expander

[env:nordicnrf52]
lib_deps =
    Wire
    SPI
    gpio_expander
framework = arduino
platform = nordicnrf52
board = nrf52_dk
debug_tool = jlink

And here is the error part of my console output 👍

.pio/libdeps/nordicnrf52/gpio_expander_ID973/max6957.cpp: In member function 'int max6957::getInterruptNumber(byte)':
.pio/libdeps/nordicnrf52/gpio_expander_ID973/max6957.cpp:49:16: error: 'NOT_AN_INTERRUPT' was not declared in this scope
  if (intNum != NOT_AN_INTERRUPT) {
                ^~~~~~~~~~~~~~~~
Compiling .pio/build/nordicnrf52/lib499/gpio_expander_ID973/mcp23016.cpp.o
.pio/libdeps/nordicnrf52/gpio_expander_ID973/max6957.cpp:49:16: note: suggested alternative: '_WIRING_INTERRUPTS_'
  if (intNum != NOT_AN_INTERRUPT) {
                ^~~~~~~~~~~~~~~~
                _WIRING_INTERRUPTS_
Archiving .pio/build/nordicnrf52/liba99/libSPI.a
.pio/libdeps/nordicnrf52/gpio_expander_ID973/max7301.cpp: In member function 'int max7301::getInterruptNumber(byte)':
.pio/libdeps/nordicnrf52/gpio_expander_ID973/max7301.cpp:48:16: error: 'NOT_AN_INTERRUPT' was not declared in this scope
  if (intNum != NOT_AN_INTERRUPT) {
                ^~~~~~~~~~~~~~~~
*** [.pio/build/nordicnrf52/lib499/gpio_expander_ID973/max6957.cpp.o] Error 1
.pio/libdeps/nordicnrf52/gpio_expander_ID973/max7301.cpp:48:16: note: suggested alternative: '_WIRING_INTERRUPTS_'
  if (intNum != NOT_AN_INTERRUPT) {
                ^~~~~~~~~~~~~~~~
                _WIRING_INTERRUPTS_
Indexing .pio/build/nordicnrf52/liba99/libSPI.a
*** [.pio/build/nordicnrf52/lib499/gpio_expander_ID973/max7301.cpp.o] Error 1

Do you have any clue ?

Thx a lot :)

@PJCzx PJCzx changed the title Undeclared NOT_AN_INTERRUPT for Nordic NRF52 plateform due to Undeclared NOT_AN_INTERRUPT for Nordic NRF52 plateform Mar 27, 2020
@PJCzx PJCzx mentioned this issue Mar 27, 2020
@PJCzx
Copy link
Author

PJCzx commented Mar 27, 2020

I suggested a fix here : #15

PLEASE REVIEW CAREFULLY since it may be a bit rought ^^

Thx

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

No branches or pull requests

1 participant