Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: High-precision timer #382

Draft
wants to merge 15 commits into
base: main
Choose a base branch
from
Draft

WIP: High-precision timer #382

wants to merge 15 commits into from

Commits on Mar 12, 2024

  1. Configuration menu
    Copy the full SHA
    81d04bf View commit details
    Browse the repository at this point in the history

Commits on Mar 13, 2024

  1. Configuration menu
    Copy the full SHA
    092a375 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    757957e View commit details
    Browse the repository at this point in the history

Commits on Mar 14, 2024

  1. HPT: switch to 1024hz timekeeping

    TODO:
    - Scheduling next HPT event
    - Carefully handling overflows
    - Low level timer stuff
    zzm634 committed Mar 14, 2024
    Configuration menu
    Copy the full SHA
    0d51c44 View commit details
    Browse the repository at this point in the history

Commits on Mar 15, 2024

  1. Configuration menu
    Copy the full SHA
    d6f9e99 View commit details
    Browse the repository at this point in the history

Commits on Mar 16, 2024

  1. HPT: now working on hardware

    Still some questions left in the code, and I had to disable the stock stopwatch and dual timer faces. Once I am sure this works properly, I'll update those faces to use it.
    zzm634 committed Mar 16, 2024
    Configuration menu
    Copy the full SHA
    ae5b466 View commit details
    Browse the repository at this point in the history

Commits on Mar 17, 2024

  1. Configuration menu
    Copy the full SHA
    eb966e4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    bc284ac View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2024

  1. Configuration menu
    Copy the full SHA
    aeee9a4 View commit details
    Browse the repository at this point in the history
  2. HPT: general cleanup

    - Removed some debugging cruft and commented out code
    - HPT requests are stored using a byte array instead of a single variable (allows for more than 64 HPT requests)
    - Added "fast" mode to counter reads that skips the synchronization step
    - Fixes and improvements to HPT timing faces.
    zzm634 committed Mar 18, 2024
    Configuration menu
    Copy the full SHA
    b727cc2 View commit details
    Browse the repository at this point in the history

Commits on Mar 19, 2024

  1. HPT: Refactor buzzer sequences to use HPT instead of TC3

    Also refactors movement.c to use HPT buzzing for alarms, signals, and other short beeps.
    
    Adds another feature to buzzer sequences: skip aheads. (Not used by anything yet, but repeater faces might need it.
    
    Also enables TCC run in standby always. TCC is enabled on-demand anyway. Might as well let it run in standby.
    
    Eventually, I would like to remove `watch_buzzer_play_note` because it uses delay_ms, but a lot of faces use it right now and they can be refactored later.
    zzm634 committed Mar 19, 2024
    Configuration menu
    Copy the full SHA
    2cf79bc View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    aa79719 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    728b3e3 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    6721c00 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    3b752d0 View commit details
    Browse the repository at this point in the history