]> git.earman.xyz Git - sensor-watch.git/commitdiff
fix typo
authorJoey Castillo <jose.castillo@gmail.com>
Mon, 30 Aug 2021 18:37:14 +0000 (14:37 -0400)
committerJoey Castillo <jose.castillo@gmail.com>
Mon, 30 Aug 2021 18:37:14 +0000 (14:37 -0400)
watch-library/watch/watch_private.c

index bffa1baa686fde555bc9dfff2521ab58ca982e13..a4e2f72c64ce0089f92ade00c3084c32127651c3 100644 (file)
@@ -147,7 +147,7 @@ void _watch_enable_usb() {
     hri_tc_write_CTRLA_reg(TC0, TC_CTRLA_SWRST);
     hri_tc_wait_for_sync(TC0, TC_SYNCBUSY_SWRST);
     // configure the TC to overflow 1,000 times per second
-    hri_tc_write_CTRLA_reg(TC0, TC_CTRLA_PRESCALER_DIV16 |  // divide the 8 MHz clock by 64 to count at 125 KHz
+    hri_tc_write_CTRLA_reg(TC0, TC_CTRLA_PRESCALER_DIV64 |  // divide the 8 MHz clock by 64 to count at 125 KHz
                                 TC_CTRLA_MODE_COUNT8 |      // count in 8-bit mode
                                 TC_CTRLA_RUNSTDBY);         // run in standby, just in case we figure that out
     hri_tccount8_write_PER_reg(TC0, 125);                   // 125000 Hz / 125 = 1,000 Hz