| 94 | #endif /* RT_USING_HOOK */ |
| 95 | |
| 96 | rt_inline struct rt_spinlock* _timerlock_idx(struct rt_timer *timer) |
| 97 | { |
| 98 | #ifdef RT_USING_TIMER_ALL_SOFT |
| 99 | return &_stimer_lock; |
| 100 | #else |
| 101 | #ifdef RT_USING_TIMER_SOFT |
| 102 | if (timer->parent.flag & RT_TIMER_FLAG_SOFT_TIMER) |
| 103 | { |
| 104 | return &_stimer_lock; |
| 105 | } |
| 106 | else |
| 107 | #endif /* RT_USING_TIMER_SOFT */ |
| 108 | { |
| 109 | return &_htimer_lock; |
| 110 | } |
| 111 | #endif |
| 112 | } |
| 113 | |
| 114 | /** |
| 115 | * @brief [internal] The init funtion of timer |
no outgoing calls
no test coverage detected