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

drivers/at86rf215: switch example config to use EXT3 on same54-xpro #19912

Merged
merged 2 commits into from
Sep 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions cpu/sam0_common/periph/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,10 +244,10 @@
#ifdef CPU_COMMON_SAMD21
#define EIC_SYNC() while (_EIC->STATUS.bit.SYNCBUSY)
#else
#define EIC_SYNC() while (_EIC->SYNCBUSY.bit.ENABLE)

Check warning on line 247 in cpu/sam0_common/periph/gpio.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure
#endif

static int _exti(gpio_t pin)

Check warning on line 250 in cpu/sam0_common/periph/gpio.c

View workflow job for this annotation

GitHub Actions / static-tests

full block {} expected in the control structure
{
unsigned port_num = ((pin >> 7) & 0x03);

Expand Down Expand Up @@ -333,6 +333,10 @@
return -1;
}

if (gpio_config[exti].cb) {
DEBUG("gpio: Warning - interrupt line %u already in use\n", exti);
}

/* save callback */
gpio_config[exti].cb = cb;
gpio_config[exti].arg = arg;
Expand Down
10 changes: 5 additions & 5 deletions drivers/at86rf215/include/at86rf215_params.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,23 +28,23 @@ extern "C" {

/**
* @name Set default configuration parameters for the AT86RF215 driver
* Example config for EXT1 on same54-xpro
* Example config for EXT3 on same54-xpro
* @{
*/
#ifndef AT86RF215_PARAM_SPI
#define AT86RF215_PARAM_SPI (SPI_DEV(0))
#define AT86RF215_PARAM_SPI (SPI_DEV(1))
#endif
#ifndef AT86RF215_PARAM_SPI_CLK
#define AT86RF215_PARAM_SPI_CLK (SPI_CLK_5MHZ)
#endif
#ifndef AT86RF215_PARAM_CS
#define AT86RF215_PARAM_CS (GPIO_PIN(1, 28))
#define AT86RF215_PARAM_CS (GPIO_PIN(2, 14))
#endif
#ifndef AT86RF215_PARAM_INT
#define AT86RF215_PARAM_INT (GPIO_PIN(1, 7))
#define AT86RF215_PARAM_INT (GPIO_PIN(2, 30))
#endif
#ifndef AT86RF215_PARAM_RESET
#define AT86RF215_PARAM_RESET (GPIO_PIN(1, 8))
#define AT86RF215_PARAM_RESET (GPIO_PIN(3, 10))
#endif

#ifndef AT86RF215_PARAMS
Expand Down
Loading