OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [AVR32_UC3/] [SERVICES/] [USB/] [CLASS/] [DFU/] [EXAMPLES/] [ISP/] [conf_isp.h] - Blame information for rev 589

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 589 jeremybenn
/*This file is prepared for Doxygen automatic documentation generation.*/
2
/*! \file ******************************************************************
3
 *
4
 * \brief ISP configuration file.
5
 *
6
 * This file contains the possible external configuration of the ISP.
7
 *
8
 * - Compiler:           IAR EWAVR32 and GNU GCC for AVR32
9
 * - Supported devices:  All AVR32 devices with a USB module can be used.
10
 * - AppNote:
11
 *
12
 * \author               Atmel Corporation: http://www.atmel.com \n
13
 *                       Support and FAQ: http://support.atmel.no/
14
 *
15
 ***************************************************************************/
16
 
17
/* Copyright (c) 2007, Atmel Corporation All rights reserved.
18
 *
19
 * Redistribution and use in source and binary forms, with or without
20
 * modification, are permitted provided that the following conditions are met:
21
 *
22
 * 1. Redistributions of source code must retain the above copyright notice,
23
 * this list of conditions and the following disclaimer.
24
 *
25
 * 2. Redistributions in binary form must reproduce the above copyright notice,
26
 * this list of conditions and the following disclaimer in the documentation
27
 * and/or other materials provided with the distribution.
28
 *
29
 * 3. The name of ATMEL may not be used to endorse or promote products derived
30
 * from this software without specific prior written permission.
31
 *
32
 * THIS SOFTWARE IS PROVIDED BY ATMEL ``AS IS'' AND ANY EXPRESS OR IMPLIED
33
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
34
 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE EXPRESSLY AND
35
 * SPECIFICALLY DISCLAIMED. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT,
36
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
37
 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
38
 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
39
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
40
 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
41
 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
42
 */
43
 
44
 
45
#ifndef _CONF_ISP_H_
46
#define _CONF_ISP_H_
47
 
48
#include <avr32/io.h>
49
#include "compiler.h"
50
 
51
 
52
//_____ D E F I N I T I O N S ______________________________________________
53
 
54
#define PRODUCT_MANUFACTURER_ID       0x58
55
#define PRODUCT_FAMILY_ID             0x20
56
 
57
#define ISP_VERSION                   0x00
58
#define ISP_ID0                       0x00
59
#define ISP_ID1                       0x00
60
 
61
#define ISP_GPFB_FORCE                31
62
#define ISP_GPFB_FORCE_MASK           0x80000000
63
#define ISP_GPFB_FORCE_OFFSET         31
64
#define ISP_GPFB_FORCE_SIZE           1
65
 
66
#define ISP_GPFB_IO_COND_EN           30
67
#define ISP_GPFB_IO_COND_EN_MASK      0x40000000
68
#define ISP_GPFB_IO_COND_EN_OFFSET    30
69
#define ISP_GPFB_IO_COND_EN_SIZE      1
70
 
71
#define ISP_GPFB_BOD_EN               29
72
#define ISP_GPFB_BOD_EN_MASK          0x20000000
73
#define ISP_GPFB_BOD_EN_OFFSET        29
74
#define ISP_GPFB_BOD_EN_SIZE          1
75
 
76
#define ISP_CFG                       (*(volatile U32 *)ISP_CFG_ADDRESS)
77
#define ISP_CFG_ADDRESS               (AVR32_FLASHC_USER_PAGE_ADDRESS + ISP_CFG_OFFSET)
78
#define ISP_CFG_OFFSET                0x000001FC
79
#define ISP_CFG_SIZE                  4
80
 
81
#define ISP_CFG_BOOT_KEY              17
82
#define ISP_CFG_BOOT_KEY_MASK         0xFFFE0000
83
#define ISP_CFG_BOOT_KEY_OFFSET       17
84
#define ISP_CFG_BOOT_KEY_SIZE         15
85
#define ISP_CFG_BOOT_KEY_VALUE        0x494F
86
 
87
#define ISP_CFG_IO_COND_LEVEL         16
88
#define ISP_CFG_IO_COND_LEVEL_MASK    0x00010000
89
#define ISP_CFG_IO_COND_LEVEL_OFFSET  16
90
#define ISP_CFG_IO_COND_LEVEL_SIZE    1
91
 
92
#define ISP_CFG_IO_COND_PIN           8
93
#define ISP_CFG_IO_COND_PIN_MASK      0x0000FF00
94
#define ISP_CFG_IO_COND_PIN_OFFSET    8
95
#define ISP_CFG_IO_COND_PIN_SIZE      8
96
 
97
#define ISP_CFG_CRC8                  0
98
#define ISP_CFG_CRC8_MASK             0x000000FF
99
#define ISP_CFG_CRC8_OFFSET           0
100
#define ISP_CFG_CRC8_SIZE             8
101
#define ISP_CFG_CRC8_POLYNOMIAL       0x107
102
 
103
#define ISP_KEY                       (*(volatile U32 *)ISP_KEY_ADDRESS)
104
#define ISP_KEY_ADDRESS               (AVR32_SRAM_ADDRESS + ISP_KEY_OFFSET)
105
#define ISP_KEY_OFFSET                0x00000000
106
#define ISP_KEY_SIZE                  4
107
#define ISP_KEY_VALUE                 ('I' << 24 | 'S' << 16 | 'P' << 8 | 'K')
108
 
109
#ifndef ISP_OSC
110
  #define ISP_OSC                     0
111
#endif
112
 
113
#define DFU_FRAME_LENGTH              2048
114
 
115
#define PROGRAM_START_ADDRESS         (AVR32_FLASH_ADDRESS + PROGRAM_START_OFFSET)
116
#define PROGRAM_START_OFFSET          0x00002000
117
 
118
 
119
#endif  // _CONF_ISP_H_

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.