Skip to content

Instantly share code, notes, and snippets.

@gamazeps
Created June 16, 2014 14:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gamazeps/a798a31bce13f11a04ec to your computer and use it in GitHub Desktop.
Save gamazeps/a798a31bce13f11a04ec to your computer and use it in GitHub Desktop.
static PWMConfig pwmcfg = {
200000, /* 200Khz PWM clock frequency*/
1024, /* PWM period of 1024 ticks ~ 0.005 second */
NULL, /* No callback */
/* Only channel 1 enabled */
{
{PWM_OUTPUT_ACTIVE_HIGH, NULL},
{PWM_OUTPUT_DISABLED, NULL},
{PWM_OUTPUT_DISABLED, NULL},
{PWM_OUTPUT_DISABLED, NULL}
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment