Skip to content

Commit 7c73a65

Browse files
authored
Merge pull request #2064 from mbedmicro/kl25z-no-rtc
Remove support for the RTC
2 parents 96b338d + 4b6159b commit 7c73a65

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

hal/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@
470470
"inherits": ["Target"],
471471
"progen": {"target": "frdm-kl25z"},
472472
"detect_code": ["0200"],
473-
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
473+
"device_has": ["ANALOGIN", "ANALOGOUT", "ERROR_RED", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "SEMIHOST", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
474474
"release": true
475475
},
476476
"KL26Z": {

hal/targets/hal/TARGET_Freescale/TARGET_KLXX/rtc_api.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16+
17+
#if DEVICE_RTC
18+
1619
#include "rtc_api.h"
1720
#include "PeripheralPins.h"
1821
#include "clk_freqs.h"
@@ -112,3 +115,5 @@ void rtc_write(time_t t) {
112115
// re-enable counter
113116
RTC->SR |= RTC_SR_TCE_MASK;
114117
}
118+
119+
#endif

0 commit comments

Comments
 (0)