]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/RL78_E2Studio_GCC/src/demo_specific_io.h
Update to MIT licensed FreeRTOS V10.0.0 - see https://www.freertos.org/History.txt
[freertos] / FreeRTOS / Demo / RL78_E2Studio_GCC / src / 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         /* Prevent the files being included from the FreeRTOS port layer assembly\r
38         source files. */\r
39         #ifndef __ASSEMBLER__\r
40 \r
41                 #ifdef YRDKRL78G14\r
42                         #include "iodefine_RL78G14.h"\r
43                         #include "iodefine_RL78G14_ext.h"\r
44                         #define LED_BIT                 ( P4_bit.no1 )\r
45                         #define LED_INIT()              LED_BIT = 0\r
46                 #endif /* YRDKRL78G14 */\r
47 \r
48                 #ifdef RSKRL78G1C\r
49                         #include "iodefine_RL78G1C.h"\r
50                         #include "iodefine_RL78G1C_ext.h"\r
51                         #define LED_BIT                 ( P0_bit.no1 )\r
52                         #define LED_INIT()              P0 &= 0xFD; PM0 &= 0xFD\r
53                 #endif /* RSKRL78G1C */\r
54 \r
55                 #ifdef RSKRL78L1C\r
56                         #include "iodefine_RL78L1C.h"\r
57                         #include "iodefine_RL78L1C_ext.h"\r
58                         #define LED_BIT                 ( P4_bit.no1 )\r
59                         #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
60                 #endif /* RSKRL78L1C */\r
61 \r
62                 #ifdef RSKRL78L13\r
63                         #include "iodefine_RL78L13.h"\r
64                         #include "iodefine_RL78L13_ext.h"\r
65                         #define LED_BIT                 ( P4_bit.no1 )\r
66                         #define LED_INIT()              P4 &= 0xFD; PM4 &= 0xFD\r
67                 #endif /* RSKRL78L13 */\r
68 \r
69                 #ifdef RL78_G1A_TB\r
70                         #include "iodefine_RL78G1A.h"\r
71                         #include "iodefine_RL78G1A_ext.h"\r
72                         #define LED_BIT                 ( P6_bit.no2 )\r
73                         #define LED_INIT()              P6 &= 0xFB; PM6 &= 0xFB\r
74                 #endif /* RL78_G1A_TB */\r
75 \r
76                 #ifndef LED_BIT\r
77                         #error The hardware platform is not defined\r
78                 #endif\r
79 \r
80         #endif /* INCLUDED_FROM_FREERTOS_ASM_FILE */\r
81 \r
82 #endif /* LED_IO_H */\r
83 \r