aboutsummaryrefslogtreecommitdiff
path: root/src/peripherals/timer.spec.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* feat(timer): Compare Match Output (#45)Uri Shaked2020-05-251-14/+144
| | | | | 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): Reading TCNT in 2-cycle instructionsUri Shaked2020-04-291-4/+22
| | | | close #40
* fix(timer): incorrect high counter byte behaviorUri Shaked2020-04-281-23/+70
| | | | | | 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-1/+1
| | | | 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-0/+40
| | | | close #36
* test(timer): add more 16-bit timer testsUri Shaked2020-04-121-3/+46
| | | | also fix some issues found by @gfeun and the tests
* feat(timer): implement 16-bit timersUri Shaked2020-04-121-1/+18
| | | | e.g. Timer/Counter1 on ATmega328
* refactor: added peripherals and cpu feature folderslironh2020-03-221-0/+204