Forum Rule: Always post complete source code & details to reproduce any issue!

Search:

Type: Posts; User: luni

Search: Search took 0.01 seconds.

  1. This is simple. g_rising_edge_timer leaves setup...

    This is simple. g_rising_edge_timer leaves setup with a high value (here 120000). You do not set it to zero in loop but subtract the interval g_interval (which is good). So, the first condition will...
  2. Yes, you only have 2 GPTs but 20 TCKs. So I...

    Yes, you only have 2 GPTs but 20 TCKs. So I consider GPT as quite valuable :-)



    Sorry added my explanation to #4 which you probably didn't see (my bad)

    Edit: Crosspost with joepasquariello
  3. const uint8_t _pin_out_ = 2; Is perfectly fine...

    const uint8_t _pin_out_ = 2;

    Is perfectly fine for the compiler to identify it as compile time constant. If you want to give the compliler even more hints for optimization you can use

    ...
  4. IIRC, you are using the TimerTool in your...

    IIRC, you are using the TimerTool in your project? If so, you could as well use the TCK timers for this application. They are cheap, are implemented in software only (use the cycle counters) and have...
Results 1 to 4 of 4