| 1 | /** |
|---|
| 2 | @file |
|---|
| 3 | DHL_Timer_Config.h |
|---|
| 4 | |
|---|
| 5 | @brief |
|---|
| 6 | DHL_Timer Ç÷§Æû µðÆúÆ® ¼³Á¤ |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | #ifndef __DHL_TIMER_CONFIG_H__ |
|---|
| 11 | #define __DHL_TIMER_CONFIG_H__ |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #ifdef __cplusplus |
|---|
| 16 | extern "C" { |
|---|
| 17 | #endif |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | //---------------------------- |
|---|
| 21 | // dhl timer id: any unique number |
|---|
| 22 | // |
|---|
| 23 | |
|---|
| 24 | // |
|---|
| 25 | // maximum number of allowed timer entry in this timer module. |
|---|
| 26 | // |
|---|
| 27 | // ÇÊ¿ä ÀÌ»óÀ¸·Î Ŭ °æ¿ì |
|---|
| 28 | // ÀÌ °ªÀÌ ºÎÁ·Çϸé Ãß°¡·Î DHL_SYS_StartTimer¿¡¼ ¿¡·¯°¡ ¹ß»ýÇÑ´Ù. |
|---|
| 29 | // |
|---|
| 30 | // ¾Æ·¡¿¡ ÁöÁ¤ÇÑ Timer ID ÃÖ´ë °¹¼ö·Î ¸ÂÃçÁÖ¸é ÁÁ´Ù. |
|---|
| 31 | // |
|---|
| 32 | #define DHL_TIMER_MAX_ENTRY 6 |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | // |
|---|
| 36 | // definition of each timer entry id and its description. |
|---|
| 37 | // |
|---|
| 38 | // meaning of description: |
|---|
| 39 | // purpose: what to do in timer proc. |
|---|
| 40 | // timing: degree of precision of timer, timing point of view. |
|---|
| 41 | // if it requires very critical (~1 os tick), consider other method. |
|---|
| 42 | // load: how much work cpu should do in timer proc. |
|---|
| 43 | // if load is too heavy, do not use this dhl timer. |
|---|
| 44 | |
|---|
| 45 | enum |
|---|
| 46 | { |
|---|
| 47 | eDHL_TIMER_IR_LED = 7700, |
|---|
| 48 | // purpose: LED manipulation. |
|---|
| 49 | // timing: high. 50 ms. (not so important) |
|---|
| 50 | // load: very small. LED control (1 gpio). |
|---|
| 51 | |
|---|
| 52 | eDHL_TIMER_IR_WAKEUP = 7701, |
|---|
| 53 | // purpose: implement IR repeatition feature. |
|---|
| 54 | // timing: medium. 200~500 ms. |
|---|
| 55 | // load: very small. just send message to gpio dpc task. |
|---|
| 56 | |
|---|
| 57 | eDHL_TIMER_GPIO_DPC = 7702, |
|---|
| 58 | // purpose: avoid gpio button glitch noise. |
|---|
| 59 | // timing: critical. needs 10 millisecond precision. (~2 os tick) |
|---|
| 60 | // load: very small. just send message to gpio dpc task. |
|---|
| 61 | |
|---|
| 62 | #if 0 |
|---|
| 63 | eDHL_TIMER_FE_SER = 7703, |
|---|
| 64 | // purpose: periodic signal statistic check. |
|---|
| 65 | // timing: medium. 100 ms. |
|---|
| 66 | // load: small. register read, arithmatic calculation. |
|---|
| 67 | #else |
|---|
| 68 | eDHL_TIMER_TUNER_BASE = 7800, |
|---|
| 69 | // purpose: tuner timeout control |
|---|
| 70 | // timing: medium. 100 ms. |
|---|
| 71 | // load: very small. just send message to tuner task. |
|---|
| 72 | eDHL_TIMER_TUNER_END = 7816, |
|---|
| 73 | #endif |
|---|
| 74 | |
|---|
| 75 | eDHL_TIMER_CHM_PSI_BASE = 7820, |
|---|
| 76 | // purpose: psi rx timeout control |
|---|
| 77 | // timing: medium. 100 ms. |
|---|
| 78 | // load: very small. just send message to tuner task. |
|---|
| 79 | eDHL_TIMER_CHM_PSI_END = 7836, |
|---|
| 80 | |
|---|
| 81 | }; |
|---|
| 82 | |
|---|
| 83 | |
|---|
| 84 | |
|---|
| 85 | #ifdef __cplusplus |
|---|
| 86 | } /* extern "C" */ |
|---|
| 87 | #endif |
|---|
| 88 | |
|---|
| 89 | #endif /* __DHL_TIMER_CONFIG_H__ */ |
|---|
| 90 | |
|---|