boards/sodaq-explorer: add initial support#7725
Conversation
|
Nice. This is the SODAQ ExpLoRer. |
keestux
left a comment
There was a problem hiding this comment.
ACK. Thanks for doing this.
| @@ -0,0 +1,20 @@ | |||
| # define the cpu used by Arduino/Genuino MKR1000 board | |||
There was a problem hiding this comment.
This should be SODAQ ExpLoRer, I guess.
I was unsure of what was the best, I'll change that |
| #define LED0_PORT PORT->Group[PA] | ||
| #define LED0_MASK (1 << 21) | ||
|
|
||
| #define LED0_ON (LED0_PORT.OUTSET.reg = LED0_MASK) |
There was a problem hiding this comment.
not sure but shouldn't these rather use |=?
There was a problem hiding this comment.
nevermind, found that other boards of that cpu (family) use it the same.
d302163 to
23fccf8
Compare
f2e6632 to
d6cba4c
Compare
d6cba4c to
99095b5
Compare
haukepetersen
left a comment
There was a problem hiding this comment.
Looking good! Just two minor remarks.
boards/sodaq-explorer/doc.txt
Outdated
| * | ||
| * ### Accessing STDIO via UART | ||
| * | ||
| * To access the STDIO of RIOT, a FTDI to USB converted needs to be plugged to |
There was a problem hiding this comment.
s/converted/converter/?
| { | ||
| .name = "LED", | ||
| .pin = LED0_PIN, | ||
| .mode = GPIO_OUT |
There was a problem hiding this comment.
does it make sense to adapt this also to #7586 (setting polarity and initial state) from the start?!
There was a problem hiding this comment.
Not for the LED since it's not inverted. I changed that for the button
|
Also, #7724 is merged, so you can rebase :-) |
99095b5 to
e2c36e1
Compare
|
@haukepetersen, comments addressed and branch rebased |
|
oh, for completeness: the ACK is untested as I don't have the hw... |
|
I have to remove this board from the unittests, Murdock is failing because of this |
cc7ff6b to
d984cf8
Compare
|
Murdock is finally happy, @smlng do you ACK ? |
| export LINKER_SCRIPT ?= $(RIOTCPU)/sam0_common/ldscripts/$(CPU_MODEL)_arduino_bootloader.ld | ||
| include $(RIOTMAKE)/tools/bossa.inc.mk | ||
|
|
||
| INCLUDES += -I$(RIOTBOARD)/lorawan-explorer/include |
There was a problem hiding this comment.
missed that, replace /lorawan-explorer/sodaq-explorer/, or even better with $(BOARD) - thought murdock would find such things?
There was a problem hiding this comment.
actually I think, this isn't needed at all, just for boards that depend on some common includes.
| * @{ | ||
| * | ||
| * @file | ||
| * @brief Configuration of CPU peripherals for the Sodaq LoRaWAN Explorer board |
There was a problem hiding this comment.
nit picky, but consistent with other files here would be Configuration of CPU peripherals for the SODAQ ExpLoRer board
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
There was a problem hiding this comment.
with #6702 merge you need to add
/**
* @name xtimer configuration
* @{
*/
#define XTIMER_WIDTH (16)
/** @} */
or use TIMER1 for xtimer with default with of 32 bits
There was a problem hiding this comment.
I kept the 16 bit version
There was a problem hiding this comment.
did you run any of the tests/xtimer_* to verify, because this must be tested at runtime, otherwise Murdock would've complained already.
There was a problem hiding this comment.
I tested with xtimer_msg, works well.
There was a problem hiding this comment.
xtimer_drift is good test to run for an overall sanity check of the hardware timer. It will show you if the timer is misconfigured, for example running at slower or faster than expected. It should print one message per second if everything is working properly.
There was a problem hiding this comment.
I ran this one as well and had the expected behaviour ;)
d984cf8 to
316e842
Compare
|
@smlng, comments addressed |
| #ifdef __cplusplus | ||
| extern "C" { | ||
| #endif | ||
|
|
There was a problem hiding this comment.
did you run any of the tests/xtimer_* to verify, because this must be tested at runtime, otherwise Murdock would've complained already.
This PR adds a basic support for the Sodaq LoRaWAN ExpLoRer kit board.
What has been tested with success:
I2C and SPI have not been tested.
Since no PWM is defined, this PR relies on #7724