aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* perf(timer): improve tick() performanceUri Shaked2020-05-251-3/+4
| | | | reduce the number of calls to TIFR/TIMSK getters
* feat(timer): Compare Match Output (#45)Uri Shaked2020-05-251-32/+141
| | | | | The Compare Match Output bits are used to generate hardware PWM signals on selected MCU pins. This is also the mechanism used by Arduino's analogWrite() method. See #32 for more details
* fix(timer): stop Timer 2 when all CS bits are 0Uri Shaked2020-05-041-1/+1
| | | | close #44
* fix(timer): Reading TCNT in 2-cycle instructionsUri Shaked2020-04-291-0/+1
| | | | close #40
* fix(timer): incorrect high counter byte behaviorUri Shaked2020-04-281-23/+19
| | | | | | According to the datasheet, the value of the high byte of the counter for 16-bit timers (such as timer 1) is only updated when the low byte is being read/written. close #37
* style: reformat code with prettier 2.xUri Shaked2020-04-271-10/+10
| | | | prettier rules have changed since we upgraded to 2.x
* fix(timer): Timer value should not increment on the same cycle as TCNTn writeUri Shaked2020-04-271-2/+8
| | | | close #36
* test(timer): add more 16-bit timer testsUri Shaked2020-04-121-10/+10
| | | | also fix some issues found by @gfeun and the tests
* feat(timer): implement 16-bit timersUri Shaked2020-04-121-23/+130
| | | | e.g. Timer/Counter1 on ATmega328
* refactor: added peripherals and cpu feature folderslironh2020-03-221-0/+244