Microchip® Advanced Software Framework

avr32/applications/evk1101-control-panel/main.c File Reference

Main file of the USB Full custom example.

Copyright (c) 2009-2018 Microchip Technology Inc. and its subsidiaries.

#include <stdio.h>
#include "conf_usb.h"
#include "usb_descriptors.h"
#include "compiler.h"
#include "preprocessor.h"
#include "board.h"
#include "print_funcs.h"
#include "intc.h"
#include "pm.h"
#include "gpio.h"
#include "ctrl_access.h"
#include "conf_at45dbx.h"
#include "usb_task.h"
#include "device_ctrl_panel_task.h"
#include "device_mass_storage_task.h"
#include "FreeRTOS.h"
#include "task.h"

Macros

#define AT45DBX_ENABLE_NPCS_PIN(NPCS, unused)   {AT45DBX_SPI_NPCS##NPCS##_PIN, AT45DBX_SPI_NPCS##NPCS##_FUNCTION},
 
#define CRLF   "\r\n"
 

Functions

static void at45dbx_resources_init (void)
 Initializes AT45DBX resources: GPIO, SPI and AT45DBX. More...
 
int main (void)
 Starts the generation of a 48-MHz clock for the USB. More...
 

Variables

const char *const pcCtrlPanelVersion = "GCC "__VERSION__" "__DATE__" "__TIME__" ATMEL_CONTROLPANEL_AVR32_UC3_10000"CRLF
 

#define AT45DBX_ENABLE_NPCS_PIN (   NPCS,
  unused 
)    {AT45DBX_SPI_NPCS##NPCS##_PIN, AT45DBX_SPI_NPCS##NPCS##_FUNCTION},

Referenced by at45dbx_resources_init().

#define CRLF   "\r\n"

static void at45dbx_resources_init ( void  )
static
int main ( void  )

Starts the generation of a 48-MHz clock for the USB.

Main function. Execution starts here.

Return values
Noreturn from main function

References at45dbx_resources_init(), device_full_custom_task_init(), device_mass_storage_task_init(), FOSC0, init_dbg_rs232(), OSC0_STARTUP, pcCtrlPanelVersion, pm_configure_usb_clock(), pm_switch_to_osc0(), usb_task_init(), and vTaskStartScheduler().

const char* const pcCtrlPanelVersion = "GCC "__VERSION__" "__DATE__" "__TIME__" ATMEL_CONTROLPANEL_AVR32_UC3_10000"CRLF

Referenced by main().