Skip to content

Commit 4b6159b

Browse files
committed
guard Freescale_KLXX shared RTC implementation with DEVICE_RTC
1 parent d8f44bb commit 4b6159b

File tree

1 file changed

+5
-0
lines changed
  • hal/targets/hal/TARGET_Freescale/TARGET_KLXX

1 file changed

+5
-0
lines changed

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)