This commit is contained in:
Олег Бородин
2024-08-26 21:00:46 +02:00
parent aee7e32bf0
commit 35b79f0cda
5 changed files with 249 additions and 170 deletions

View File

@@ -21,7 +21,7 @@ void timer0_init(void) {
REG_SETDOWN_BIT(TCCR0A, WGM00);
/* TCCR0B */
/* Set clock to 1/64 */
/* Set prescaler */
REG_SETUP_BIT(TCCR0B, CS02);
REG_SETDOWN_BIT(TCCR0B, CS01);
REG_SETDOWN_BIT(TCCR0B, CS00);