#include "gpio.h"
#include "pwmclass.h"
#include "generator.h"
//////////////////////////////////////
/* Demonstrace PWM s použitím DMA
 * Generátor je sinus, data se tvoří
 * v přerušení. Parametry se musí nastavit
 * ve zdrojácích, je to jen DEMO.
 * */
//////////////////////////////////////
static  PwmClass  pwm;
static  Generator gen (1u << 16);
int main () {
  pwm.attach(gen);
  for (;;);
  return 0;
}