Microchip® Advanced Software Framework

avr32/applications/uc3-uart-bootloader/isp.c File Reference
#include "compiler.h"
#include "board.h"
#include "power_clocks_lib.h"
#include "cycle_counter.h"
#include "gpio.h"
#include "conf_isp.h"
#include "conf_clocks.h"
#include "isp.h"
#include "uart_dfu.h"

Macros

#define TC   (&AVR32_TC)
 
#define TC_32KHZ_CHANNEL   0
 

Functions

int main (void)
 Set-up a generic clock at 12MHz with the DFLL as a source, output the generic clock to a pin. More...
 
void sys_clk_gen_start (void)
 Setup the system clocks. More...
 
void sys_clk_gen_stop (void)
 Undo the setup of the system clocks (restore the same clock settings as after a POR. More...
 
void wait_10_ms (void)
 Wait 10ms active. More...
 

Variables

static volatile const char build_info [] = "GCC "__VERSION__" ATMEL_AVR_UC3_UART_BOOTLOADER_1.0.2"
 

#define TC   (&AVR32_TC)
#define TC_32KHZ_CHANNEL   0

int main ( void  )

Set-up a generic clock at 12MHz with the DFLL as a source, output the generic clock to a pin.

References build_info, local_start_gc(), sys_clk_gen_start(), uart_dfu_start(), uart_execute_dfu_command(), and uart_get_dfu_command().

void sys_clk_gen_start ( void  )

Setup the system clocks.

Start the generation of system clocks

References gpio_clr_gpio_pin().

Referenced by main().

void sys_clk_gen_stop ( void  )

Undo the setup of the system clocks (restore the same clock settings as after a POR.

Stop the generation of system clocks and switch to RCOsc

Referenced by process_cmd_grp_exec().

void wait_10_ms ( void  )

Wait 10ms active.

References Get_system_register, and Set_system_register.

Referenced by process_cmd_grp_exec().

volatile const char build_info[] = "GCC "__VERSION__" ATMEL_AVR_UC3_UART_BOOTLOADER_1.0.2"
static

Referenced by main().