]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RL78_multiple_IAR/demo_specific_io.h
42e49a5f26301976bdf1355fe93f9c48974200c8
[freertos] / FreeRTOS / Demo / RL78_multiple_IAR / demo_specific_io.h
1 /*\r
2  * FreeRTOS Kernel V10.0.0\r
3  * Copyright (C) 2017 Amazon.com, Inc. or its affiliates.  All Rights Reserved.\r
4  *\r
5  * Permission is hereby granted, free of charge, to any person obtaining a copy of\r
6  * this software and associated documentation files (the "Software"), to deal in\r
7  * the Software without restriction, including without limitation the rights to\r
8  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of\r
9  * the Software, and to permit persons to whom the Software is furnished to do so,\r
10  * subject to the following conditions:\r
11  *\r
12  * The above copyright notice and this permission notice shall be included in all\r
13  * copies or substantial portions of the Software. If you wish to use our Amazon\r
14  * FreeRTOS name, please do so in a fair use way that does not cause confusion.\r
15  *\r
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
17  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
18  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
19  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
20  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
21  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
22  *\r
23  * http://www.FreeRTOS.org\r
24  * http://aws.amazon.com/freertos\r
25  *\r
26  * 1 tab == 4 spaces!\r
27  */\r
28 \r
29 #ifndef LED_IO_H\r
30 #define LED_IO_H\r
31 \r
32 /* Include the register definition file that is correct for the hardware being\r
33 used.  The C and assembler pre-processor must have one of the following board\r
34 definitions defined to have the correct register definition header file\r
35 included.  Alternatively, just manually include the correct files here. */\r
36 \r
37 \r
38         #ifdef YRPBRL78G13\r
39                 #include "ior5f100le.h"\r
40                 #include "ior5f100le_ext.h"\r
41                 #define LED_BIT                 ( P7_bit.no7 )\r
42                 #define LED_INIT()              P7 &= 0x7F; PM7 &= 0x7F\r
43         #endif /* YRPBRL78G13 */\r
44 \r
45         #ifdef YRDKRL78G14\r
46                 #include "ior5f104pj.h"\r
47                 #include "ior5f104pj_ext.h"\r
48                 #define LED_BIT                 ( P4_bit.no1 )\r
49                 #define LED_INIT()              LED_BIT = 0\r
50         #endif /* YRDKRL78G14 */\r
51 \r
52         #ifdef RSKRL78G1C\r
53                 #include "ior5f10jgc.h"\r
54                 #include "ior5f10jgc_ext.h"\r
55                 #define LED_BIT                 ( P0_bit.no1 )\r
56                 #define LED_INIT()              P0 &= 0xFD; PM0 &= 0xFD\r
57         #endif /* RSKRL78G1C */\r
58 \r
59         #ifdef RSKRL78L1C\r
60                 #include "ior5f110pj.h"\r
61                 #include "ior5f110pj_ext.h"\r
62                 #define LED_BIT                 ( P4_bit.no1 )\r
63                 #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
64         #endif /* RSKRL78L1C */\r
65 \r
66         #ifdef RSKRL78L13\r
67                 #include "ior5f10wmg.h"\r
68                 #include "ior5f10wmg_ext.h"\r
69                 #define LED_BIT                 ( P4_bit.no1 )\r
70                 #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
71         #endif /* RSKRL78L13 */\r
72 \r
73         #ifdef RL78_G1A_TB\r
74                 #include "ior5f10ele.h"\r
75                 #include "ior5f10ele_ext.h"\r
76                 #define LED_BIT                 ( P6_bit.no2 )\r
77                 #define LED_INIT()              P6 &= 0xFB; PM6 &= 0xFB\r
78         #endif /* RL78_G1A_TB */\r
79 \r
80         #ifndef LED_BIT\r
81                 #error The hardware platform is not defined\r
82         #endif\r
83 \r
84 #endif /* LED_IO_H */\r
85 \r