Project

General

Profile

Download (2.47 KB) Statistics
| Branch: | Revision:

root / fw / boot / board.h @ 14:d3713e2e39d0

1
/* ----------------------------------------------------------------------------
2
 * xDevs.com HC1 Microcontroller Software Support
3
 * ----------------------------------------------------------------------------
4
 * Copyright (c) 2010, xDevs.com
5
 * rev 0.5
6
 * board.h - Board HAL
7
 * IAR ARM 5.50 project environment
8
 * xDevs.com ES HC1 rev.A2 hardware proven
9
 * AT91SAM7S128, 18.432MHz, 48MCK
10
 * ----------------------------------------------------------------------------
11
 * Project maintainers: Tsemenko Ilya [ilya@xdevs.com]
12
 * Project supervisor:  Alex Gurin    [warder@xdevs.com]
13
 */
14

    
15
/**
16
  * Definition and functions for using HC1-related features, such
17
  * has PIO pins, memories, etc.
18
  *
19
  * !Usage
20
  * -# The code for booting the board is provided by board_cstartup.S and
21
  *    board_lowlevel.c.
22
  * -# For using board PIOs, board characteristics (clock, etc.) and external
23
  *    components, see board.h.
24
  * -# For manipulating memories (remapping, SDRAM, etc.), see board_memories.h.
25
  */
26

    
27
/** \unit
28
  * !Purpose
29
  *
30
  * Definition of hardware characteristics, AT91SAM7S-dependant PIOs and
31
  * external components interfacing.
32
  *
33
  * !Usage
34
  * -# For operating frequency information, see "wiki/HC1-A2 - Operating frequencies".
35
  * -# For using portable PIO definitions, see "wiki/HC1-A2 - PIO definitions".
36
  */
37

    
38
#ifndef BOARD_H
39
#define BOARD_H
40

    
41
/* Headers */
42

    
43
#if defined(at91sam7s321)
44
    #include "at91sam7s321/at91sam7s321.h"
45
#elif defined(at91sam7s64)
46
    #include "at91sam7s64/at91sam7s64.h"
47
#elif defined(at91sam7s128)
48
    #include "at91sam7s128/at91sam7s128.h"
49
#elif defined(at91sam7s256)
50
    #include "at91sam7s256/at91sam7s256.h"
51
#elif defined(at91sam7s512)
52
    #include "at91sam7s512/at91sam7s512.h"
53
#else
54
    #error Board does not support the specified chip.
55
#endif
56

    
57
/* Name of the board. */
58
#define BOARD_NAME "xDevs.com HC1-ES rev.A2"
59
/* Board definition. */
60
#define at91sam7sek
61
/* Family definition. */
62
#define at91sam7s
63

    
64
/* Frequency of the board main oscillator.*/
65
#define BOARD_MAINOSC           16000000
66
/* Master clock frequency (when using board_lowlevel.c). */
67
#define BOARD_MCK               (uint32_t)((BOARD_MAINOSC*72)/28) /* Target 48000000 */
68

    
69
/** This page lists definitions related to internal & external on-board memories. 
70
  * Indicates chip has an EFC.
71
  */
72
#define BOARD_FLASH_EFC
73
/* Address of the IAP function in ROM.  */
74
#define BOARD_FLASH_IAP_ADDRESS         0x300E08
75

    
76
#endif /* #ifndef BOARD_H */
77

    
(3-3/7)