-
Notifications
You must be signed in to change notification settings - Fork 3
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
Description of pins for UART #20
Comments
for the Arduino MKRZero, for example: https://github.com/arduino/ArduinoCore-samd/blob/master/variants/mkrzero/variant.h#L173 |
Thanks. I'm working with an Adafruit Clue, which uses an nrf52840 and does have a hardware Serial1 available as defined in this Uart.h file. I am getting an error in ME310.cpp on a few lines like this: It looks like we are trying to see if the UART needs to stop listening because we waited longer than allowed but, indeed, when I go digging in the UART definition I'm not able to find anything about getTimeout. I'm not sure if that is specific to how it is implemented for the nrf52840 or not. If I comment out the 4 lines with getTimeout in ME310.cpp then the compilation completes but I'm sure that this is critical to operation. Can you shed some light on how to address this error? |
In theory, getTimeout() is an inherited method from Stream class: https://github.com/arduino/ArduinoCore-API/blob/master/api/Stream.h#L69 but the Adafruit Clue seems to be missing it: https://github.com/adafruit/Adafruit_nRF52_Arduino/blob/211566bc25a0ea0f7d6b1847e615ac242597ae2b/cores/nRF5/Stream.h#L68 I think the easiest way would be to add the method to the Stream.h _unsigned long getTimeout(void) { return timeout; } or, since we are using the default timeout of Stream class (1 second) because nothing is calling setTimeout, as far as I can see, you could simply replace |
There isn't a comment that describes this well enough or non-Charlie boards.
`/*
*/`
I assume that need to define these like so, but I'm a little confused.
#define PIN_MODULE_RX 0 #define PIN_MODULE_TX 1 #define PAD_MODULE_RX 2 #define PAD_MODULE_TX 3 #define PIN_MODULE_RTS 4 #define PIN_MODULE_CTS 5
What is PIN_MODULE_RX vs PAD_MODULE_RX for example?
If I have a generic arduino type device that has a hardware serial port (let's say arduino calls it "Serial") then what would need to be defined for the arduino board to talk to the device (like a Telit module like an ME910G1 on EVK2 or with a Telit Bravo board)?
The text was updated successfully, but these errors were encountered: