- OSMC = 0x16U;\r
-\r
- /* Supply the RTC clock. */\r
- RTCEN = 1U;\r
- \r
- /* Disable ITMC operation. */\r
- ITMC = 0x0000;\r
- \r
- /* Disable INTIT interrupt. */\r
- ITMK = 1U;\r
- \r
- /* Set INTIT high priority */\r
- ITPR1 = 1U;\r
- ITPR0 = 1U;\r
- \r
- /* Set interval. */\r
- ITMC = usCompareMatch;\r
-\r
- /* Clear INIT interrupt. */\r
- ITIF = 0U;\r
- \r
- /* Enable INTIT interrupt. */\r
- ITMK = 0U;\r
- \r
- /* Enable IT operation. */\r
- ITMC |= 0x8000;\r
+ OSMC = ( uint8_t ) 0x16;\r
+\r
+ #ifdef RTCEN\r
+ {\r
+ /* Supply the interval timer clock. */\r
+ RTCEN = ( uint8_t ) 1U;\r
+\r
+ /* Disable INTIT interrupt. */\r
+ ITMK = ( uint8_t ) 1;\r
+\r
+ /* Disable ITMC operation. */\r
+ ITMC = ( uint8_t ) 0x0000;\r
+\r
+ /* Clear INIT interrupt. */\r
+ ITIF = ( uint8_t ) 0;\r
+\r
+ /* Set interval and enable interrupt operation. */\r
+ ITMC = usCompareMatch | 0x8000U;\r
+\r
+ /* Enable INTIT interrupt. */\r
+ ITMK = ( uint8_t ) 0;\r
+ }\r
+ #endif\r
+\r
+ #ifdef TMKAEN\r
+ {\r
+ /* Supply the interval timer clock. */\r
+ TMKAEN = ( uint8_t ) 1U;\r
+\r
+ /* Disable INTIT interrupt. */\r
+ TMKAMK = ( uint8_t ) 1;\r
+\r
+ /* Disable ITMC operation. */\r
+ ITMC = ( uint8_t ) 0x0000;\r
+\r
+ /* Clear INIT interrupt. */\r
+ TMKAIF = ( uint8_t ) 0;\r
+\r
+ /* Set interval and enable interrupt operation. */\r
+ ITMC = usCompareMatch | 0x8000U;\r
+\r
+ /* Enable INTIT interrupt. */\r
+ TMKAMK = ( uint8_t ) 0;\r
+ }\r
+ #endif\r