File tree Expand file tree Collapse file tree 6 files changed +6
-11
lines changed
components/802.15.4_RF/mcr20a-rf-driver/source Expand file tree Collapse file tree 6 files changed +6
-11
lines changed Original file line number Diff line number Diff line change 1
1
/*!
2
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
3
* All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
4
5
*
5
6
* \file MCR20Drv.c
6
7
*
@@ -114,9 +115,7 @@ void MCR20Drv_Init
114
115
xcvr_spi_configure_speed (gXcvrSpiInstance_c , 8000000 );
115
116
116
117
gXcvrDeassertCS_d ();
117
- #if !defined(TARGET_KW24D )
118
118
MCR20Drv_RST_B_Deassert ();
119
- #endif
120
119
RF_IRQ_Init ();
121
120
RF_IRQ_Disable ();
122
121
mPhyIrqDisableCnt = 1 ;
@@ -639,7 +638,6 @@ void MCR20Drv_RESET
639
638
void
640
639
)
641
640
{
642
- #if !defined(TARGET_KW24D )
643
641
volatile uint32_t delay = 1000 ;
644
642
//assert RST_B
645
643
MCR20Drv_RST_B_Assert ();
@@ -648,7 +646,6 @@ void MCR20Drv_RESET
648
646
649
647
//deassert RST_B
650
648
MCR20Drv_RST_B_Deassert ();
651
- #endif
652
649
}
653
650
654
651
/*---------------------------------------------------------------------------
Original file line number Diff line number Diff line change 1
1
/*!
2
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
3
* All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
4
5
*
5
6
* \file MCR20Drv.h
6
7
*
Original file line number Diff line number Diff line change 1
1
/*!
2
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
3
* All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
4
5
*
5
6
* \file MCR20Overwrites.h
6
7
* Description: Overwrites header file for MCR20 Register values
Original file line number Diff line number Diff line change 1
1
/*!
2
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
3
* All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
4
5
*
5
6
* \file MCR20reg.h
6
7
* MCR20 Registers
Original file line number Diff line number Diff line change @@ -61,11 +61,7 @@ extern "C" {
61
61
#define gCcaCCA_MODE1_c 1
62
62
63
63
#define gXcvrRunState_d gXcvrPwrAutodoze_c
64
- #if !defined(TARGET_KW24D)
65
64
#define gXcvrLowPowerState_d gXcvrPwrHibernate_c
66
- #else
67
- #define gXcvrLowPowerState_d gXcvrPwrAutodoze_c
68
- #endif
69
65
70
66
namespace {
71
67
@@ -504,9 +500,7 @@ static void rf_init(void)
504
500
/* Disable Tristate on MISO for SPI reads */
505
501
MCR20Drv_IndirectAccessSPIWrite (MISC_PAD_CTRL, 0x02 );
506
502
/* Set XCVR clock output settings */
507
- #if !defined(TARGET_KW24D)
508
503
MCR20Drv_Set_CLK_OUT_Freq (gMCR20_ClkOutFreq_d );
509
- #endif
510
504
/* Set default XCVR power state */
511
505
rf_set_power_state (gXcvrRunState_d );
512
506
@@ -1758,7 +1752,7 @@ void NanostackRfPhyMcr20a::_pins_clear()
1758
1752
irq_thread = NULL ;
1759
1753
}
1760
1754
1761
- #if MBED_CONF_MCR20A_PROVIDE_DEFAULT || TARGET_KW24D
1755
+ #if MBED_CONF_MCR20A_PROVIDE_DEFAULT
1762
1756
1763
1757
NanostackRfPhy &NanostackRfPhy::get_default_instance ()
1764
1758
{
Original file line number Diff line number Diff line change 1
1
/*!
2
2
* Copyright (c) 2015, Freescale Semiconductor, Inc.
3
3
* All rights reserved.
4
+ * SPDX-License-Identifier: BSD-3-Clause
4
5
*
5
6
* \file XcvrSpi.h
6
7
*
You can’t perform that action at this time.
0 commit comments