Skip to content

Commit

Permalink
drivers: sam0: Fix deprecated IRQ macro usage
Browse files Browse the repository at this point in the history
During conversion in zephyrproject-rtos#16937 a few IRQ macro aliases where missed
(probably due to lack of enabled test cases that compile them),
this fixes their usage.

Signed-off-by: Derek Hageman <[email protected]>
  • Loading branch information
Sizurka authored and nashif committed Jun 24, 2019
1 parent 2ee674f commit 4c27e5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions drivers/adc/adc_sam0.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,12 +597,12 @@ static const struct adc_driver_api adc_sam0_api = {
&adc_sam0_api); \
static void adc_sam0_config_##n(struct device *dev) \
{ \
IRQ_CONNECT(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ, \
DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_PRIORITY, \
IRQ_CONNECT(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0, \
DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0_PRIORITY, \
adc_sam0_isr, \
DEVICE_GET(adc0_sam_##n), \
0); \
irq_enable(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ); \
irq_enable(DT_ATMEL_SAM0_ADC_ADC_##n##_IRQ_0); \
ADC_SAM0_CONFIGURE(n); \
}

Expand Down
6 changes: 3 additions & 3 deletions drivers/counter/counter_sam0_tc32.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,12 +432,12 @@ static const struct counter_driver_api counter_sam0_tc32_driver_api = {
&counter_sam0_tc32_driver_api); \
static void counter_sam0_tc32_config_##n(struct device *dev) \
{ \
IRQ_CONNECT(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ, \
DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_PRIORITY, \
IRQ_CONNECT(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0, \
DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0_PRIORITY, \
counter_sam0_tc32_isr, \
DEVICE_GET(counter_sam0_tc32_##n), \
0); \
irq_enable(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ); \
irq_enable(DT_ATMEL_SAM0_TC32_TC_##n##_IRQ_0); \
}

#if DT_ATMEL_SAM0_TC32_TC_0_BASE_ADDRESS
Expand Down

0 comments on commit 4c27e5b

Please sign in to comment.