Skip to content

Commit fb0eba4

Browse files
authored
Merge pull request #6235 from gorazdko/lpc546xx-fixes
mcu_lpc546xx: move "release_versions" to children and fix clock
2 parents 8a7b390 + c053b70 commit fb0eba4

File tree

4 files changed

+4
-8
lines changed

4 files changed

+4
-8
lines changed

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC54114/TARGET_LPCXpresso/mbed_overrides.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ void ADC_ClockPower_Configuration(void)
4141
POWER_DisablePD(kPDRUNCFG_PD_TEMPS); /* Power on the temperature sensor. */
4242

4343
/* Enable the clock. */
44-
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK);
4544
CLOCK_EnableClock(kCLOCK_Adc0);
4645
}
4746

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_FF_LPC546XX/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,6 @@ void ADC_ClockPower_Configuration(void)
7373
POWER_DisablePD(kPDRUNCFG_PD_VREFP); /* Power on the reference voltage source. */
7474
POWER_DisablePD(kPDRUNCFG_PD_TS); /* Power on the temperature sensor. */
7575

76-
/* Enable the clock. */
77-
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK);
7876

7977
/* CLOCK_AttachClk(kMAIN_CLK_to_ADC_CLK); */
8078
/* Sync clock source is not used. Using sync clock source and would be divided by 2.

targets/TARGET_NXP/TARGET_MCUXpresso_MCUS/TARGET_LPC546XX/TARGET_LPCXpresso/mbed_overrides.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,6 @@ void ADC_ClockPower_Configuration(void)
121121
POWER_DisablePD(kPDRUNCFG_PD_VREFP); /* Power on the reference voltage source. */
122122
POWER_DisablePD(kPDRUNCFG_PD_TS); /* Power on the temperature sensor. */
123123

124-
/* Enable the clock. */
125-
CLOCK_AttachClk(kFRO12M_to_MAIN_CLK);
126124

127125
/* CLOCK_AttachClk(kMAIN_CLK_to_ADC_CLK); */
128126
/* Sync clock source is not used. Using sync clock source and would be divided by 2.

targets/targets.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -755,18 +755,19 @@
755755
"inherits": ["Target"],
756756
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
757757
"features": ["LWIP"],
758-
"release_versions": ["2", "5"],
759758
"device_name" : "LPC54628J512ET180"
760759
},
761760
"LPC546XX": {
762761
"supported_form_factors": ["ARDUINO"],
763762
"inherits": ["MCU_LPC546XX"],
764-
"detect_code": ["1056"]
763+
"detect_code": ["1056"],
764+
"release_versions": ["2", "5"]
765765
},
766766
"FF_LPC546XX": {
767767
"inherits": ["MCU_LPC546XX"],
768768
"extra_labels_remove" : ["LPCXpresso"],
769-
"detect_code": ["8081"]
769+
"detect_code": ["8081"],
770+
"release_versions": ["2", "5"]
770771
},
771772
"NUCLEO_F030R8": {
772773
"inherits": ["FAMILY_STM32"],

0 commit comments

Comments
 (0)