![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
FRDM-KL46Z board sLCD demo code using RTC clock.
Fork of FRDM-KL46Z LCD rtc Demo by
Diff: TPM_init.h
- Revision:
- 2:1c12897871e5
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/TPM_init.h Thu Dec 18 21:47:44 2014 +0000 @@ -0,0 +1,21 @@ +#ifndef TPM_INIT_H +#define TPM_INIT_H + +#include "mbed.h" + +#define SIM_SOPT2_ADDR 0x40048004 +#define SIM_SCGC6_ADDR 0x4004803C +#define MCG_C1_ADDR 0x40064000 +#define TPM0_SC_ADDR 0x40038000 +#define TPM0_C0SC_ADDR 0x4003800C +#define TPM0_CNT_ADDR 0x40038004 +#define TPM0_MOD_ADDR 0x40038008 + +void TPM0_init(unsigned int modulo_val); + +void TPM0_clear_overflow(); +unsigned int TPM0_read(); +unsigned int TPM0_SC_read(); + +void TPM0_start(); +#endif \ No newline at end of file