Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependents: Nucleo_L432KC_Quadrature_Decoder_with_ADC_and_DAC
Fork of mbed-dev by
Diff: targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c
- Revision:
- 150:02e0a0aed4ec
- Parent:
- 149:156823d33999
- Child:
- 151:5eaa88a5bcc7
--- a/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c Fri Oct 28 11:17:30 2016 +0100
+++ b/targets/TARGET_ONSEMI/TARGET_NCS36510/ncs36510Init.c Tue Nov 08 17:45:16 2016 +0000
@@ -83,6 +83,13 @@
RFANATRIMREG->TX_VCO_TRIM_LUT1 = TRIMREG->TX_VCO_LUT1.WORD;;
RFANATRIMREG->TX_VCO_TRIM_LUT2 = TRIMREG->TX_VCO_LUT2.WORD;;
+ if ( TRIMREG->MAC_ADDR_LOW != 0xFFFFFFFF ) {
+ MACHWREG->LONG_ADDRESS_LOW = TRIMREG->MAC_ADDR_LOW;
+ }
+
+ if ( TRIMREG->MAC_ADDR_HIGH != 0xFFFFFFFF ) {
+ MACHWREG->LONG_ADDRESS_HIGH = TRIMREG->MAC_ADDR_HIGH;
+ }
return True;
} else {
@@ -158,15 +165,16 @@
SCB->SCR &= ~SCB_SCR_SLEEPONEXIT_Msk;
/** Set regulator timings */
- PMUREG->FVDD_TSETTLE = 160;
- PMUREG->FVDD_TSTARTUP = 400;
+ PMUREG->FVDD_TSETTLE = 160;
+ PMUREG->FVDD_TSTARTUP = 400;
+
/** Keep SRAMA & SRAMB powered in coma mode */
PMUREG->CONTROL.BITS.SRAMA = False;
PMUREG->CONTROL.BITS.SRAMB = False;
- PMUREG->CONTROL.BITS.N1V1 = True; /* Enable ACTIVE mode switching regulator */
- PMUREG->CONTROL.BITS.C1V1 = True; /* Enable COMA mode switching regulator */
+ PMUREG->CONTROL.BITS.N1V1 = True; /* Enable ACTIVE mode switching regulator */
+ PMUREG->CONTROL.BITS.C1V1 = True; /* Enable COMA mode switching regulator */
/** Disable the clock for PMU peripheral device, all settings are done */
CLOCK_DISABLE(CLOCK_PMU);
