8000 boards: add acd52832/nrf52832 · Pull Request #7501 · RIOT-OS/RIOT · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

boards: add acd52832/nrf52832 #7501

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

Closed
wants to merge 1 commit into from
Closed

boards: add acd52832/nrf52832 #7501

wants to merge 1 commit into from

Conversation

ghost
Copy link
@ghost ghost commented Aug 23, 2017

This PR includes the configuration for the aconno board acd52832.

@smlng
Copy link
Member
smlng commented Aug 24, 2017

Quick note: I'd prefer to have the ADC driver and the new board configuration in separate PRs. @PeterKietzmann what to you think?

@smlng smlng added the Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation label Aug 24, 2017
@haukepetersen
Copy link
Contributor

+1 for splitting this PR.

@haukepetersen haukepetersen added the Type: new feature The issue requests / The PR implemements a new feature for RIOT label Aug 25, 2017
@haukepetersen haukepetersen added this to the Release 2017.10 milestone Aug 25, 2017
Copy link
Contributor
@haukepetersen haukepetersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have some further comments regarding the ADC driver, but would prefer to handle them in a separate PR...

/* initialize the boards LEDs */
NRF_P0->DIRSET = (LED0_MASK);
NRF_P0->OUTSET = (LED0_MASK);
NRF_P0->OUTSET = (LED0_MASK);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indention is off by two spaces

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

also: the line above is duplicated...

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@haukepetersen Taken over from boards/nrf52dk/board.c

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

then you can fix that file as well :-)

* @file
* @brief Board initialization for the nRF52 DK
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

author and copyright should be you? Also the brief description is wrong for this board.

* @brief Board specific configuaration for the acd52832
*
* @author Hauke Petersen <hauke.petersen@fu-berlin.de>
* @author Sebastian Meiling <s@mlng.net>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

static const timer_conf_t timer_config[] = {
{
.dev = NRF_TIMER1,
.channels = 3,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

both lines above have one space char too much after the equal sign

.dev = NRF_SPI0,
.sclk = 4,
.mosi = 3,
.miso = 13 // NC
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what is the // NC comment supposed to mean here? If it is supposed to stay, there should be a more comprehensive comment and /* */-style comment should be used.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It means: Not Connected

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

so not connected at all, also not to some pin header or similar? Maybe then it would make sense to set it to some undefined value and adapt the SPI driver to not initialize the pin in the first place.

*/

/**
* @ingroup cpu_nrf52832
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the group is cpu_nrf52.

@ghost
Copy link
Author
ghost commented Aug 25, 2017

OK, I will split it.

@haukepetersen
Copy link
Contributor

cool, thx!

@ghost
Copy link
Author
ghost commented Aug 25, 2017

This commit includes now only the board configuration.

Copy link
Contributor
@haukepetersen haukepetersen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good, untested ACK

@haukepetersen haukepetersen added the CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR label Aug 25, 2017
@ghost ghost mentioned this pull request Aug 25, 2017
void board_init(void)
{
/* initialize the boards LEDs */
NRF_P0->DIRSET = (LED0_MASK);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO this should rather be gpio_init(LED0_PIN, GPIO_OUT);, or not?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could, but not necessarily. as the 'native' pin init is a 1-liner here, so why hassle...

{
/* initialize the boards LEDs */
NRF_P0->DIRSET = (LED0_MASK);
NRF_P0->OUTSET = (LED0_MASK);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

and hence this gpis_clear(LED0_PIN);, if needed at all?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually it would be gpio_set() but could also be LED0_OFF

NRF_P0->OUTSET = (LED0_MASK);

/* initialize the CPU */
cpu_init();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

most boards init cpu first, and LED(s) second but that may not matter that much, just for consistency

* @{
*/
#define UART_NUMOF (1U)
#define UART_PIN_RX GPIO_PIN(0,30)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

space after , here and below

microbit native nrf51dongle nrf52dk nrf6310 openmote-cc2538 pba-d-01-kw2x \
pca10000 pca10005 remote-pa remote-reva saml21-xpro samr21-xpro \
spark-core telosb yunjia-nrf51822 z1
microbit native nrf51dongle nrf52dk nrf6310 acd52832 openmote-cc2538 \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this list is lexicographically sorted, hence acd52832 should be in pole position 😄 though it might be based on NRFxy and hence related to nrf6310

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@haukepetersen haukepetersen added CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Aug 25, 2017
@ghost ghost mentioned this pull request Sep 1, 2017
@smlng
Copy link
Member
smlng commented Oct 5, 2017

please rebase, fix issue with examples/default/Makefile and squash into 1 commit. Otherwise ACK.

@kYc0o kYc0o added CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR and removed CI: needs squashing Commits in this PR need to be squashed; If set, CI systems will mark this PR as unmergable CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR labels Oct 5, 2017
@PeterKietzmann
Copy link
Member

Closing in favor of #8035

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI: ready for build If set, CI server will compile all applications for all available boards for the labeled PR Type: enhancement The issue suggests enhanceable parts / The PR enhances parts of the codebase / documentation Type: new feature The issue requests / The PR implemements a new feature for RIOT
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
0