Skip to content

Commit c064726

Browse files
author
Arto Kinnunen
committed
Sync with Atmel RF driver v3.0.6
1 parent 135a894 commit c064726

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

components/802.15.4_RF/atmel-rf-driver/mbed_lib.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@
2424
"provide-default": {
2525
"help": "Provide default NanostackRfpy. [true/false]",
2626
"value": false
27+
},
28+
"irq-thread-stack-size": {
29+
"help": "The stack size of the Thread serving the Atmel RF interrupts",
30+
"value": 1024
2731
}
2832
},
2933
"target_overrides": {

components/802.15.4_RF/atmel-rf-driver/source/NanostackRfPhyAtmel.cpp

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,7 @@ RFBits::RFBits(PinName spi_mosi, PinName spi_miso,
270270
SLP_TR(spi_slp),
271271
IRQ(spi_irq)
272272
#ifdef MBED_CONF_RTOS_PRESENT
273-
, irq_thread(osPriorityRealtime, 1024)
273+
, irq_thread(osPriorityRealtime, MBED_CONF_ATMEL_RF_IRQ_THREAD_STACK_SIZE, NULL, "atmel_irq_thread")
274274
#endif
275275
{
276276
#ifdef MBED_CONF_RTOS_PRESENT
@@ -1071,13 +1071,10 @@ static void rf_if_irq_task_process_irq(void)
10711071
static void rf_if_interrupt_handler(void)
10721072
#endif
10731073
{
1074-
static uint8_t last_is, last_ts;
10751074
uint8_t irq_status, full_trx_status;
1076-
uint8_t orig_xah_ctrl_1 = xah_ctrl_1;
10771075

10781076
/*Read and clear interrupt flag, and pick up trx_status*/
10791077
irq_status = rf_if_read_register_with_status(IRQ_STATUS, &full_trx_status);
1080-
uint8_t orig_flags = rf_flags;
10811078

10821079
/*Frame end interrupt (RX and TX)*/
10831080
if (irq_status & TRX_END) {
@@ -1098,8 +1095,6 @@ static void rf_if_interrupt_handler(void)
10981095
// Here some counter could be used to monitor the underrun occurancy count.
10991096
// Do not print anything here!
11001097
}
1101-
last_is = irq_status;
1102-
last_ts = full_trx_status;
11031098
}
11041099

11051100
/*
@@ -1635,7 +1630,6 @@ static bool rf_start_tx()
16351630
rf_flags_clear(RFF_RX);
16361631
// Check whether we saw any delay in the PLL_ON transition.
16371632
if (poll_count > 0) {
1638-
tr_warning("PLL_ON delayed, retry count: %d", poll_count);
16391633
// let's get back to the receiving state.
16401634
rf_receive(state);
16411635
return false;

0 commit comments

Comments
 (0)