]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RL78_E2Studio_GCC/src/demo_specific_io.h
1237255ad373efece3f5768b0d6f1c2ccb4e9121
[freertos] / FreeRTOS / Demo / RL78_E2Studio_GCC / src / demo_specific_io.h
1 /*\r
2  * FreeRTOS Kernel V10.1.0\r
3  * Copyright (C) 2018 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.\r
14  *\r
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
16  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS\r
17  * FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\r
18  * COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER\r
19  * IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN\r
20  * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21  *\r
22  * http://www.FreeRTOS.org\r
23  * http://aws.amazon.com/freertos\r
24  *\r
25  * 1 tab == 4 spaces!\r
26  */\r
27 \r
28 #ifndef LED_IO_H\r
29 #define LED_IO_H\r
30 \r
31 /* Include the register definition file that is correct for the hardware being\r
32 used.  The C and assembler pre-processor must have one of the following board\r
33 definitions defined to have the correct register definition header file\r
34 included.  Alternatively, just manually include the correct files here. */\r
35 \r
36         /* Prevent the files being included from the FreeRTOS port layer assembly\r
37         source files. */\r
38         #ifndef __ASSEMBLER__\r
39 \r
40                 #ifdef YRDKRL78G14\r
41                         #include "iodefine_RL78G14.h"\r
42                         #include "iodefine_RL78G14_ext.h"\r
43                         #define LED_BIT                 ( P4_bit.no1 )\r
44                         #define LED_INIT()              LED_BIT = 0\r
45                 #endif /* YRDKRL78G14 */\r
46 \r
47                 #ifdef RSKRL78G1C\r
48                         #include "iodefine_RL78G1C.h"\r
49                         #include "iodefine_RL78G1C_ext.h"\r
50                         #define LED_BIT                 ( P0_bit.no1 )\r
51                         #define LED_INIT()              P0 &= 0xFD; PM0 &= 0xFD\r
52                 #endif /* RSKRL78G1C */\r
53 \r
54                 #ifdef RSKRL78L1C\r
55                         #include "iodefine_RL78L1C.h"\r
56                         #include "iodefine_RL78L1C_ext.h"\r
57                         #define LED_BIT                 ( P4_bit.no1 )\r
58                         #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
59                 #endif /* RSKRL78L1C */\r
60 \r
61                 #ifdef RSKRL78L13\r
62                         #include "iodefine_RL78L13.h"\r
63                         #include "iodefine_RL78L13_ext.h"\r
64                         #define LED_BIT                 ( P4_bit.no1 )\r
65                         #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
66                 #endif /* RSKRL78L13 */\r
67 \r
68                 #ifdef RL78_G1A_TB\r
69                         #include "iodefine_RL78G1A.h"\r
70                         #include "iodefine_RL78G1A_ext.h"\r
71                         #define LED_BIT                 ( P6_bit.no2 )\r
72                         #define LED_INIT()              P6 &= 0xFB; PM6 &= 0xFB\r
73                 #endif /* RL78_G1A_TB */\r
74 \r
75                 #ifndef LED_BIT\r
76                         #error The hardware platform is not defined\r
77                 #endif\r
78 \r
79         #endif /* INCLUDED_FROM_FREERTOS_ASM_FILE */\r
80 \r
81 #endif /* LED_IO_H */\r
82 \r