#include "board.h"#include <stdint.h>#include <stdio.h>Go to the source code of this file.
Defines | |
| #define | PWM_FREQUENCY 50 |
| #define | MAX_DUTY_CYCLE 100 |
| #define | MIN_DUTY_CYCLE 0 |
| #define | DUTY_BUFFER_LENGTH (MAX_DUTY_CYCLE - MIN_DUTY_CYCLE ) |
| #define | PIN_PWM_LED { PIO_PA23B_PWMC0_PWMH0, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT} |
| #define | CHANNEL_PWM_LED0 0 |
Functions | |
| COMPILER_ALIGNED (32) | |
| void | PWM0_Handler (void) |
| int | main (void) |
| Application entry point for PWM with PDC example. | |
This file contains all the specific code for the pwm_pdc example.
Definition in file main.c.
| #define DUTY_BUFFER_LENGTH (MAX_DUTY_CYCLE - MIN_DUTY_CYCLE ) |
| #define PIN_PWM_LED { PIO_PA23B_PWMC0_PWMH0, PIOA, ID_PIOA, PIO_PERIPH_B, PIO_DEFAULT} |
| COMPILER_ALIGNED | ( | 32 | ) |
| int main | ( | void | ) |
Application entry point for PWM with PDC example.
Outputs a PWM on LED1. Channel #0 is configured as synchronous channels. The update of the duty cycle values is made automatically by the Peripheral DMA Controller.
Definition at line 230 of file main.c.

1.7.1