| 116 | } |
| 117 | |
| 118 | static void gpt_delay(enum sched_item_id id) { |
| 119 | int index; |
| 120 | gpt.status |= gpt.delayStatus & ((1 << 9) - 1); |
| 121 | for (index = 0; index < 3; index++) { |
| 122 | intrpt_set(INT_TIMER1 << index, gpt.delayIntrpt & 1 << index); |
| 123 | } |
| 124 | gpt.delayStatus >>= 9; |
| 125 | if (gpt.delayStatus || gpt.delayIntrpt) { |
| 126 | sched_repeat(id, 1); |
| 127 | } |
| 128 | gpt.delayIntrpt >>= 3; |
| 129 | } |
| 130 | |
| 131 | static void gpt_some(int which, void update(enum sched_item_id id)) { |
| 132 | int index = which < 3 ? which : 0; |
nothing calls this directly
no test coverage detected