(value byte)
| 558 | } |
| 559 | |
| 560 | func (t *Triangle) writeTimerHigh(value byte) { |
| 561 | t.lengthValue = lengthTable[value>>3] |
| 562 | t.timerPeriod = (t.timerPeriod & 0x00FF) | (uint16(value&7) << 8) |
| 563 | t.timerValue = t.timerPeriod |
| 564 | t.counterReload = true |
| 565 | } |
| 566 | |
| 567 | func (t *Triangle) stepTimer() { |
| 568 | if t.timerValue == 0 { |
nothing calls this directly
no outgoing calls
no test coverage detected