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

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [rtos/] [freertos-6.1.1/] [Demo/] [SuperH_SH7216_Renesas/] [RTOSDemo/] [RenesasCode/] [rsk7216def.h] - Blame information for rev 592

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 585 jeremybenn
/******************************************************************************
2
* File Name    : rsk7670def.h
3
* Version      : 1.0
4
* Device(s)    : SH2A/7670
5
* Tool-Chain   : Renesas SH2A V9+
6
* OS           : None
7
* H/W Platform : RSK+SH7670
8
* Description  : Defines for RSK2+SH7670 kit.
9
*******************************************************************************
10
* History      : DD.MM.YYYY Ver. Description
11
*              : 01.08.2009 1.00 MAB First Release
12
******************************************************************************/
13
 
14
/******************************************************************************
15
* DISCLAIMER
16
* This software is supplied by Renesas Technology Corp. and is only
17
* intended for use with Renesas products. No other uses are authorized.
18
* This software is owned by Renesas Technology Corp. and is protected under
19
* all applicable laws, including copyright laws.
20
* THIS SOFTWARE IS PROVIDED "AS IS" AND RENESAS MAKES NO WARRANTIES
21
* REGARDING THIS SOFTWARE, WHETHER EXPRESS, IMPLIED OR STATUTORY,
22
* INCLUDING BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
23
* PARTICULAR PURPOSE AND NON-INFRINGEMENT. ALL SUCH WARRANTIES ARE EXPRESSLY
24
* DISCLAIMED.
25
* TO THE MAXIMUM EXTENT PERMITTED NOT PROHIBITED BY LAW, NEITHER RENESAS
26
* TECHNOLOGY CORP. NOR ANY OF ITS AFFILIATED COMPANIES SHALL BE LIABLE
27
* FOR ANY DIRECT, INDIRECT, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES
28
* FOR ANY REASON RELATED TO THE THIS SOFTWARE, EVEN IF RENESAS OR ITS
29
* AFFILIATES HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
30
* Renesas reserves the right, without notice, to make changes to this
31
* software and to discontinue the availability of this software.
32
* By using this software, you agree to the additional terms and
33
* conditions found by accessing the following link:
34
* http://www.renesas.com/disclaimer
35
******************************************************************************/
36
/* Copyright (C) 2008. Renesas Technology Corp.,       All Rights Reserved.  */
37
/* Copyright (C) 2009. Renesas Technology Europe Ltd., All Rights Reserved.  */
38
/*****************************************************************************/
39
 
40
#ifndef RSK7216DEF_H
41
#define RSK7216DEF_H
42
 
43
/******************************************************************************
44
Macro Defines
45
******************************************************************************/
46
 
47
/* General Values */
48
#define         LED_ON                  (1)
49
#define         LED_OFF                 (0)
50
#define         SET_BIT_HIGH    (1)
51
#define         SET_BIT_LOW             (0)
52
#define         SET_BYTE_HIGH   (0xFF)
53
#define         SET_BYTE_LOW    (0x00)
54
 
55
/* Define switches to be polled if not available as interrupts */
56
#define         SW_ACTIVE               FALSE
57
 
58
#define         SW1                     PORT.PDDRL.BIT.PD16DR //"IRQ0" PD16
59
#define         SW2                     PORT.PADRL.BIT.PA20DR //"IRQ6" PA20
60
 
61
 
62
/* LEDs */
63
#define         LED0                    PE.DR.BIT.B9 
64
#define         LED1                    PE.DR.BIT.B11
65
#define         LED2                    PE.DR.BIT.B12
66
#define         LED3                    PE.DR.BIT.B13
67
#define         LED4                    PE.DR.BIT.B14
68
#define         LED5                    PE.DR.BIT.B15 
69
 
70
#define ID_LED1     1
71
#define ID_LED2     2
72
#define ID_LED3     4
73
#define ID_LED4     8
74
#define ID_LED5     16
75
#define ID_LED6     32
76
#define ID_LED_ALL  (ID_LED1 | ID_LED2 | ID_LED3 | ID_LED4 | ID_LED5 | ID_LED6)
77
 
78
#define PERIPHERAL_CLOCK_FREQUENCY  50000000UL
79
 
80
/******************************************************************************
81
Constant Macros
82
******************************************************************************/
83
 
84
#define BOARD_NAME  "SH7216 CPU BOARD"
85
 
86
/******************************************************************************
87
Public Functions
88
******************************************************************************/
89
 
90
#ifdef __cplusplus
91
extern "C" {
92
#endif
93
 
94
extern void led_init(void);
95
extern void led_on(unsigned short ledno);
96
extern void led_off(unsigned short ledno);
97
 
98
#ifdef __cplusplus
99
}
100
#endif
101
 
102
#endif /* RSK7216DEF_H */
103
 
104
/******************************************************************************
105
End  Of File
106
******************************************************************************/

powered by: WebSVN 2.1.0

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