#include <avr32/io.h>
#include "pwm4.h"
#include "gpio.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "pm_uc3c.h"
#include "scif_uc3c.h"
Macros | |
PWM Configuration | |
#define | EXAMPLE_PWM_L_PIN AVR32_PWM_PWML_0_1_PIN |
#define | EXAMPLE_PWM_L_FUNCTION AVR32_PWM_PWML_0_1_FUNCTION |
#define | EXAMPLE_PWM_H_PIN AVR32_PWM_PWMH_0_1_PIN |
#define | EXAMPLE_PWM_H_FUNCTION AVR32_PWM_PWMH_0_1_FUNCTION |
#define | EXAMPLE_PWM_CHANNEL_ID 0 |
Functions | |
static void | local_start_highfreq_clock (void) |
int | main (void) |
Main function. Execution starts here. More... | |
static void | pwm_start_gc (void) |
#define EXAMPLE_PWM_CHANNEL_ID 0 |
Referenced by main().
#define EXAMPLE_PWM_H_FUNCTION AVR32_PWM_PWMH_0_1_FUNCTION |
Referenced by main().
#define EXAMPLE_PWM_H_PIN AVR32_PWM_PWMH_0_1_PIN |
Referenced by main().
#define EXAMPLE_PWM_L_FUNCTION AVR32_PWM_PWML_0_1_FUNCTION |
Referenced by main().
#define EXAMPLE_PWM_L_PIN AVR32_PWM_PWML_0_1_PIN |
Referenced by main().
|
static |
References opt, PCL_OSC0, pcl_switch_to_osc(), SCIF_OSC0, SCIF_PLL0, scif_pll_enable(), scif_pll_setup(), and scif_wait_for_pll_locked().
Referenced by main().
int main | ( | void | ) |
Main function. Execution starts here.
References pwm_opt_t::cksel, pwm_opt_t::diva, pwm_opt_t::divb, EXAMPLE_PWM_CHANNEL_ID, EXAMPLE_PWM_H_FUNCTION, EXAMPLE_PWM_H_PIN, EXAMPLE_PWM_L_FUNCTION, EXAMPLE_PWM_L_PIN, pwm_opt_t::fault_detection_activated, gpio_enable_module_pin(), local_start_highfreq_clock(), pwm_opt_t::prea, pwm_opt_t::preb, pwm_channel_init(), PWM_CKSEL_GCLK, pwm_init(), PWM_MODE_LEFT_ALIGNED, PWM_POLARITY_LOW, pwm_start_channels(), pwm_start_gc(), PWM_SYNC_UPDATE_MANUAL_WRITE_MANUAL_UPDATE, pwm_update_period_value(), pwm_opt_t::sync_channel_activated, pwm_opt_t::sync_channel_select, and pwm_opt_t::sync_update_channel_mode.
|
static |
References scif_gc_enable(), scif_gc_setup(), and SCIF_GCCTRL_PLL0.
Referenced by main().