1. May 24, 2023
    • Vadim Kaushan's avatar
      Merge pull request #54 from rmsyn/feature/interrupt · fdb0685f
      Vadim Kaushan authored
      features: adds `rt` feature for gd32vf103-pac/rt
      fdb0685f
    • rmsyn's avatar
      features: adds `rt` feature for gd32vf103-pac/rt · a53c4d4f
      rmsyn authored
      Adds a `rt` feature to allow users to opt-in to using the
      `gd32vf103-pac/rt` feature. This exposes the `interrupt` macro, allowing
      users to define functions for system interrupts.
      
      This is preferable to using inline assembly to include the code in
      `eclic-mode-hack.S` which causes symbol collisions with user-defined
      interrupt functions, and strange bugs for handler execution.
      a53c4d4f
  2. Oct 24, 2021
  3. Oct 23, 2021
  4. Sep 04, 2021
  5. Aug 31, 2021
  6. Aug 27, 2021
    • Stéphane Clérambault's avatar
      Remove enable and disable channel when call `set_duty()` · 3e8be4d2
      Stéphane Clérambault authored
      The PWM duty cycle could be changed on-the-fly. It is not necessary to disable
      and then enable the channel.
      
      That avoid some "missing" PWM cycle during the change.
      
      Now enabling the channel explicitly is mandatory to get an output.
      
      Fix #30
      3e8be4d2
    • Stéphane Clérambault's avatar
      Add PWM remap fonctionnality. · cc096474
      Stéphane Clérambault authored
      On GD32V103f there is 4 types of remaps for PWM. Not all timers are able to be
      configured with this 4 remaps types. Also it is not possible to deduce the
      Remap type with the pins used (e.g TIMER0).
      
      The implementation works with an intermediate trait Pins<TIMER, REMAP> which is
      implemented for all compatibles tuples of gpio::P** for the specified couple
      TIMER, REMAP.
      
      ```rust
          // ...
      
          let mut pwm_t0 = PwmTimer::<TIMER0, NoRemap>::new(
              timer0, (None, Some(&pa9), Some(&pa10), None), &mut rcu, &mut afio
          );
      
          // ...
          pwm_t0.set_duty(Channel::CH1, 100);
      
      ```
      cc096474
  7. Aug 21, 2021
  8. Aug 20, 2021
  9. Aug 07, 2021
  10. May 21, 2021
  11. Feb 07, 2021
  12. Dec 27, 2020
  13. Nov 26, 2020
  14. Nov 25, 2020
  15. Nov 03, 2020
  16. Nov 02, 2020
  17. Jun 22, 2020
  18. Jun 20, 2020