mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-10-17 18:27:47 -04:00
Migrated RL78/IAR port to EWRL78v3+ (#799)
This commit is contained in:
parent
1509e4f742
commit
fc9396f576
31 changed files with 11073 additions and 10542 deletions
|
@ -20,64 +20,73 @@
|
|||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
*
|
||||
* https://www.FreeRTOS.org
|
||||
* https://aws.amazon.com/freertos
|
||||
* https://github.com/FreeRTOS
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LED_IO_H
|
||||
#define LED_IO_H
|
||||
#ifndef DEMO_SPECIFIC_IO_H
|
||||
#define DEMO_SPECIFIC_IO_H
|
||||
|
||||
/* Include the register definition file that is correct for the hardware being
|
||||
used. The C and assembler pre-processor must have one of the following board
|
||||
definitions defined to have the correct register definition header file
|
||||
included. Alternatively, just manually include the correct files here. */
|
||||
#if !defined(__IASMRL78__) && !defined(__ICCRL78__)
|
||||
#error "The demo_specific_io.h header requires IAR Toolchain for RL78."
|
||||
#endif
|
||||
|
||||
/* Include register definition header files that match the device in use.
|
||||
A symbol definition for the board must be set in in two different places:
|
||||
[C/C++ Compiler]/[Preprocessor] as well as in [Assembler]/[Preprocessor].
|
||||
NOTE: Use as reference for when adding other boards. */
|
||||
|
||||
#ifdef YRPBRL78G13
|
||||
#include "ior5f100le.h"
|
||||
#include "ior5f100le_ext.h"
|
||||
#define LED_BIT ( P7_bit.no7 )
|
||||
#define LED_INIT() P7 &= 0x7F; PM7 &= 0x7F
|
||||
#endif /* YRPBRL78G13 */
|
||||
#ifdef YRPBRL78G13
|
||||
#include <ior5f100le.h>
|
||||
#include <ior5f100le_ext.h>
|
||||
#define LED_BIT ( P7_bit.no7 )
|
||||
#define LED_INIT() P7 &= 0x7F; PM7 &= 0x7F
|
||||
#endif /* YRPBRL78G13 */
|
||||
|
||||
#ifdef YRDKRL78G14
|
||||
#include "ior5f104pj.h"
|
||||
#include "ior5f104pj_ext.h"
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() LED_BIT = 0
|
||||
#endif /* YRDKRL78G14 */
|
||||
#ifdef YRPBRL78G14
|
||||
#include <ior5f104le.h>
|
||||
#include <ior5f104le_ext.h>
|
||||
#define LED_BIT ( P7_bit.no7 )
|
||||
#define LED_INIT() P7 &= 0x7F; PM7 &= 0x7F
|
||||
#endif /* YRPBRL78G14 */
|
||||
|
||||
#ifdef RSKRL78G1C
|
||||
#include "ior5f10jgc.h"
|
||||
#include "ior5f10jgc_ext.h"
|
||||
#define LED_BIT ( P0_bit.no1 )
|
||||
#define LED_INIT() P0 &= 0xFD; PM0 &= 0xFD
|
||||
#endif /* RSKRL78G1C */
|
||||
#ifdef YRDKRL78G14
|
||||
#include <ior5f104pj.h>
|
||||
#include <ior5f104pj_ext.h>
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() P4 &= 0xFD; PM4 &= 0xFD
|
||||
#endif /* YRDKRL78G14 */
|
||||
|
||||
#ifdef RSKRL78L1C
|
||||
#include "ior5f110pj.h"
|
||||
#include "ior5f110pj_ext.h"
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() P4 &= 0xFD; PM4 &= 0xFD
|
||||
#endif /* RSKRL78L1C */
|
||||
#ifdef RSKRL78G1C
|
||||
#include <ior5f10jgc.h>
|
||||
#include <ior5f10jgc_ext.h>
|
||||
#define LED_BIT ( P0_bit.no1 )
|
||||
#define LED_INIT() P0 &= 0xFD; PM0 &= 0xFD
|
||||
#endif /* RSKRL78G1C */
|
||||
|
||||
#ifdef RSKRL78L13
|
||||
#include "ior5f10wmg.h"
|
||||
#include "ior5f10wmg_ext.h"
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() P4 &= 0xFD; PM4 &= 0xFD
|
||||
#endif /* RSKRL78L13 */
|
||||
#ifdef RSKRL78L1C
|
||||
#include <ior5f110pj.h>
|
||||
#include <ior5f110pj_ext.h>
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() P4 &= 0xFD; PM4 &= 0xFD
|
||||
#endif /* RSKRL78L1C */
|
||||
|
||||
#ifdef RL78_G1A_TB
|
||||
#include "ior5f10ele.h"
|
||||
#include "ior5f10ele_ext.h"
|
||||
#define LED_BIT ( P6_bit.no2 )
|
||||
#define LED_INIT() P6 &= 0xFB; PM6 &= 0xFB
|
||||
#endif /* RL78_G1A_TB */
|
||||
#ifdef RSKRL78L13
|
||||
#include <ior5f10wmg.h>
|
||||
#include <ior5f10wmg_ext.h>
|
||||
#define LED_BIT ( P4_bit.no1 )
|
||||
#define LED_INIT() P4 &= 0xFD; PM4 &= 0xFD
|
||||
#endif /* RSKRL78L13 */
|
||||
|
||||
#ifndef LED_BIT
|
||||
#error The hardware platform is not defined
|
||||
#endif
|
||||
#ifdef QB_R5F10ELE_TB
|
||||
#include <ior5f10ele.h>
|
||||
#include <ior5f10ele_ext.h>
|
||||
#define LED_BIT ( P6_bit.no2 )
|
||||
#define LED_INIT() P6 &= 0xFB; PM6 &= 0xFB
|
||||
#endif /* QB_R5F10ELE_TB */
|
||||
|
||||
#endif /* LED_IO_H */
|
||||
#ifndef LED_BIT
|
||||
#error "The hardware platform is not defined."
|
||||
#endif
|
||||
|
||||
#endif /* DEMO_SPECIFIC_IO_H */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue