Atmel Software Framework

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

Control Panel main file.

Copyright (c) 2009-2012 Atmel Corporation. All rights reserved.

#include <string.h>
#include "pm.h"
#include "flashc.h"
#include "gpio.h"
#include "spi.h"
#include "ctrl_access.h"
#include "fsaccess.h"
#include "FreeRTOS.h"
#include "task.h"
#include "serial.h"
#include "navigation.h"
#include "supervisor.h"
#include "shell.h"
#include "cptime.h"
#include "conf_ctrlpanel.h"
#include "conf_at45dbx.h"
#include "conf_sd_mmc_spi.h"

Macros

#define AT45DBX_ENABLE_NPCS_PIN(NPCS, unused)   {AT45DBX_SPI_NPCS##NPCS##_PIN, AT45DBX_SPI_NPCS##NPCS##_FUNCTION},
 
#define mainSUPERVISOR_TASK_PRIORITY   ( tskIDLE_PRIORITY + 1 )
 Init the microcontroller & the board shared resources. More...
 

Functions

int main (void)
 
static void prv_at45dbx_resources_init (void)
 Initialize AT45DBX resources: GPIO, SPI and AT45DBX. More...
 
static void prv_clk_gen_start (void)
 
static void prv_sd_mmc_resources_init (void)
 Initializes SD/MMC resources: GPIO, SPI and SD/MMC. More...
 
void vApplicationStackOverflowHook (xTaskHandle *pxTask, signed portCHAR *pcTaskName)
 

Variables

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

#define AT45DBX_ENABLE_NPCS_PIN (   NPCS,
  unused 
)    {AT45DBX_SPI_NPCS##NPCS##_PIN, AT45DBX_SPI_NPCS##NPCS##_FUNCTION},
#define mainSUPERVISOR_TASK_PRIORITY   ( tskIDLE_PRIORITY + 1 )

Init the microcontroller & the board shared resources.

Launch the Control Panel main modules. Start FreeRTOS.Scheduler include files. Demo file headers. Priority definitions for the supervisor task.

Referenced by main().

static void prv_at45dbx_resources_init ( void  )
static
static void prv_clk_gen_start ( void  )
static

Start the generation of a 48-MHz clock for the USB

USB

MACB

Reduce speed Bus.

References flashc_set_wait_state(), pm_cksel(), pm_gc_enable(), pm_gc_setup(), pm_pll_enable(), pm_pll_set_option(), pm_pll_setup(), pm_switch_to_clock(), pm_wait_for_pll0_locked(), and pm_wait_for_pll1_locked().

Referenced by main().

static void prv_sd_mmc_resources_init ( void  )
static
void vApplicationStackOverflowHook ( xTaskHandle pxTask,
signed portCHAR *  pcTaskName 
)

References i.

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

The Ctrl Panel sw version.

Referenced by e_syscmds_version().