FRDM-KL46Z board sLCD demo code using RTC clock.
Fork of FRDM-KL46Z LCD rtc Demo by
TPM_init.h@2:1c12897871e5, 2014-12-18 (annotated)
- Committer:
- arthshah1
- Date:
- Thu Dec 18 21:47:44 2014 +0000
- Revision:
- 2:1c12897871e5
asdf
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
arthshah1 | 2:1c12897871e5 | 1 | #ifndef TPM_INIT_H |
arthshah1 | 2:1c12897871e5 | 2 | #define TPM_INIT_H |
arthshah1 | 2:1c12897871e5 | 3 | |
arthshah1 | 2:1c12897871e5 | 4 | #include "mbed.h" |
arthshah1 | 2:1c12897871e5 | 5 | |
arthshah1 | 2:1c12897871e5 | 6 | #define SIM_SOPT2_ADDR 0x40048004 |
arthshah1 | 2:1c12897871e5 | 7 | #define SIM_SCGC6_ADDR 0x4004803C |
arthshah1 | 2:1c12897871e5 | 8 | #define MCG_C1_ADDR 0x40064000 |
arthshah1 | 2:1c12897871e5 | 9 | #define TPM0_SC_ADDR 0x40038000 |
arthshah1 | 2:1c12897871e5 | 10 | #define TPM0_C0SC_ADDR 0x4003800C |
arthshah1 | 2:1c12897871e5 | 11 | #define TPM0_CNT_ADDR 0x40038004 |
arthshah1 | 2:1c12897871e5 | 12 | #define TPM0_MOD_ADDR 0x40038008 |
arthshah1 | 2:1c12897871e5 | 13 | |
arthshah1 | 2:1c12897871e5 | 14 | void TPM0_init(unsigned int modulo_val); |
arthshah1 | 2:1c12897871e5 | 15 | |
arthshah1 | 2:1c12897871e5 | 16 | void TPM0_clear_overflow(); |
arthshah1 | 2:1c12897871e5 | 17 | unsigned int TPM0_read(); |
arthshah1 | 2:1c12897871e5 | 18 | unsigned int TPM0_SC_read(); |
arthshah1 | 2:1c12897871e5 | 19 | |
arthshah1 | 2:1c12897871e5 | 20 | void TPM0_start(); |
arthshah1 | 2:1c12897871e5 | 21 | #endif |