mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-09-05 05:43:51 -04:00
Starting point for RX63N demo added.
This commit is contained in:
parent
9e926a4459
commit
a3c45eb1da
33 changed files with 23480 additions and 0 deletions
|
@ -0,0 +1,62 @@
|
|||
/*
|
||||
FreeRTOS V7.1.0 - Copyright (C) 2011 Real Time Engineers Ltd.
|
||||
|
||||
|
||||
***************************************************************************
|
||||
* *
|
||||
* FreeRTOS tutorial books are available in pdf and paperback. *
|
||||
* Complete, revised, and edited pdf reference manuals are also *
|
||||
* available. *
|
||||
* *
|
||||
* Purchasing FreeRTOS documentation will not only help you, by *
|
||||
* ensuring you get running as quickly as possible and with an *
|
||||
* in-depth knowledge of how to use FreeRTOS, it will also help *
|
||||
* the FreeRTOS project to continue with its mission of providing *
|
||||
* professional grade, cross platform, de facto standard solutions *
|
||||
* for microcontrollers - completely free of charge! *
|
||||
* *
|
||||
* >>> See http://www.FreeRTOS.org/Documentation for details. <<< *
|
||||
* *
|
||||
* Thank you for using FreeRTOS, and thank you for your support! *
|
||||
* *
|
||||
***************************************************************************
|
||||
|
||||
|
||||
This file is part of the FreeRTOS distribution.
|
||||
|
||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
||||
the terms of the GNU General Public License (version 2) as published by the
|
||||
Free Software Foundation AND MODIFIED BY the FreeRTOS exception.
|
||||
>>>NOTE<<< The modification to the GPL is included to allow you to
|
||||
distribute a combined work that includes FreeRTOS without being obliged to
|
||||
provide the source code for proprietary components outside of the FreeRTOS
|
||||
kernel. FreeRTOS is distributed in the hope that it will be useful, but
|
||||
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
|
||||
more details. You should have received a copy of the GNU General Public
|
||||
License and the FreeRTOS license exception along with FreeRTOS; if not it
|
||||
can be viewed here: http://www.freertos.org/a00114.html and also obtained
|
||||
by writing to Richard Barry, contact details for whom are available on the
|
||||
FreeRTOS WEB site.
|
||||
|
||||
1 tab == 4 spaces!
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, latest information, license and
|
||||
contact details.
|
||||
|
||||
http://www.SafeRTOS.com - A version that is certified for use in safety
|
||||
critical systems.
|
||||
|
||||
http://www.OpenRTOS.com - Commercial support, development, porting,
|
||||
licensing and training services.
|
||||
*/
|
||||
|
||||
#ifndef INT_QUEUE_TIMER_H
|
||||
#define INT_QUEUE_TIMER_H
|
||||
|
||||
void vInitialiseTimerForIntQueueTest( void );
|
||||
portBASE_TYPE xTimer0Handler( void );
|
||||
portBASE_TYPE xTimer1Handler( void );
|
||||
|
||||
#endif
|
||||
|
6615
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/OLDiodefine.h
Normal file
6615
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/OLDiodefine.h
Normal file
File diff suppressed because it is too large
Load diff
12074
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/iodefine.h
Normal file
12074
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/iodefine.h
Normal file
File diff suppressed because it is too large
Load diff
13
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/lowsrc.h
Normal file
13
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/lowsrc.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* FILE :lowsrc.h */
|
||||
/* DATE :Wed, Aug 11, 2010 */
|
||||
/* DESCRIPTION :Header file of I/O Stream file */
|
||||
/* CPU TYPE :Other */
|
||||
/* */
|
||||
/* This file is generated by Renesas Project Generator (Ver.4.50). */
|
||||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||||
/* */
|
||||
/***********************************************************************/
|
||||
/*Number of I/O Stream*/
|
||||
#define IOSTREAM 20
|
107
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/rskrx63ndef.h
Normal file
107
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/rskrx63ndef.h
Normal file
|
@ -0,0 +1,107 @@
|
|||
|
||||
/******************************************************************************
|
||||
* DISCLAIMER
|
||||
* Please refer to http://www.renesas.com/disclaimer
|
||||
******************************************************************************
|
||||
Copyright (C) 2011. Renesas Electronics Corp., All Rights Reserved.
|
||||
*******************************************************************************
|
||||
* File Name : rsksh7216.h
|
||||
* Version : 1.00
|
||||
* Description : RSK RX63N board specific settings
|
||||
******************************************************************************
|
||||
* History : DD.MM.YYYY Version Description
|
||||
* : 12.09.2011 1.00 First Release
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef RSKRX63N_H
|
||||
#define RSKRX63N_H
|
||||
|
||||
/******************************************************************************
|
||||
Includes <System Includes> , "Project Includes"
|
||||
******************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
Typedef definitions
|
||||
******************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
Macro definitions
|
||||
******************************************************************************/
|
||||
|
||||
/* System Clock Settings */
|
||||
|
||||
/* DETAIL THIS LATER !!!! */
|
||||
|
||||
#define XTAL_FREQUENCY (12000000L)
|
||||
#define PLL_MUL (16)
|
||||
#define PLL_INPUT_FREQ_DIV (1)
|
||||
#define ICLK_DIV (2)
|
||||
#define PCLK_DIV (4)
|
||||
#define BCLK_DIV (4)
|
||||
#define PLL_FREQUENCY (XTAL_FREQUENCY * (PLL_MUL / PLL_INPUT_FREQ_DIV))
|
||||
#define ICLK_FREQUENCY (PLL_FREQUENCY / ICLK_DIV)
|
||||
#define PCLK_FREQUENCY (PLL_FREQUENCY / PCLK_DIV)
|
||||
#define BCLK_FREQUENCY (PLL_FREQUENCY / BCLK_DIV)
|
||||
|
||||
#define CMT0_CLK_SELECT (512)
|
||||
|
||||
/* General Values */
|
||||
#define LED_ON (0)
|
||||
#define LED_OFF (1)
|
||||
#define SET_BIT_HIGH (1)
|
||||
#define SET_BIT_LOW (0)
|
||||
#define SET_BYTE_HIGH (0xFF)
|
||||
#define SET_BYTE_LOW (0x00)
|
||||
|
||||
/* Define switches to be polled if not available as interrupts */
|
||||
#define SW_ACTIVE FALSE
|
||||
#define SW1 PORT0.DR.BIT.B0
|
||||
#define SW2 PORT0.DR.BIT.B1
|
||||
#define SW3 PORT0.DR.BIT.B7
|
||||
#define SW1_DDR PORT0.DDR.BIT.B0
|
||||
#define SW2_DDR PORT0.DDR.BIT.B1
|
||||
#define SW3_DDR PORT0.DDR.BIT.B7
|
||||
#define SW1_ICR PORT0.ICR.BIT.B0
|
||||
#define SW2_ICR PORT0.ICR.BIT.B1
|
||||
#define SW3_ICR PORT0.ICR.BIT.B7
|
||||
|
||||
/* LEDs */
|
||||
#define LED0 PORT0.PODR.BIT.B3
|
||||
#define LED1 PORT0.PODR.BIT.B5
|
||||
#define LED2 PORT1.PODR.BIT.B0
|
||||
#define LED3 PORT1.PODR.BIT.B1
|
||||
//#define LED4 PORT6.DR.BIT.B0
|
||||
//#define LED5 PORT7.DR.BIT.B3
|
||||
#define LED0_PDR PORT0.PDR.BIT.B3
|
||||
#define LED1_PDR PORT0.PDR.BIT.B5
|
||||
#define LED2_PDR PORT1.PDR.BIT.B0
|
||||
#define LED3_PDR PORT1.PDR.BIT.B1
|
||||
//#define LED4_DDR PORT6.DDR.BIT.B0
|
||||
//#define LED5_DDR PORT7.DDR.BIT.B3
|
||||
|
||||
/* 2x8 segment LCD */
|
||||
#if 0
|
||||
#define INCLUDE_LCD 1
|
||||
#define LCD_RS PORTJ.PODR.BIT.B1
|
||||
#define LCD_EN PORTJ.PODR.BIT.B3
|
||||
#define LCD_DATA PORTH.PODR.BYTE
|
||||
|
||||
#define LCD_RS_DDR PORTJ.PDR.BIT.B1
|
||||
#define LCD_EN_DDR PORTJ.PDR.BIT.B3
|
||||
#define LCD_DATA_DDR PORTH.PDR.BYTE
|
||||
#endif
|
||||
|
||||
|
||||
/******************************************************************************
|
||||
Variable Externs
|
||||
******************************************************************************/
|
||||
|
||||
/******************************************************************************
|
||||
Functions Prototypes
|
||||
******************************************************************************/
|
||||
|
||||
|
||||
|
||||
/* RSKRX63N_H */
|
||||
#endif
|
||||
|
13
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/stacksct.h
Normal file
13
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/stacksct.h
Normal file
|
@ -0,0 +1,13 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* FILE :stacksct.h */
|
||||
/* DATE :Wed, Aug 11, 2010 */
|
||||
/* DESCRIPTION :Setting of Stack area */
|
||||
/* CPU TYPE :Other */
|
||||
/* */
|
||||
/* This file is generated by Renesas Project Generator (Ver.4.50). */
|
||||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||||
/* */
|
||||
/***********************************************************************/
|
||||
#pragma stacksize su=0x300
|
||||
#pragma stacksize si=0x100
|
41
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/typedefine.h
Normal file
41
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/typedefine.h
Normal file
|
@ -0,0 +1,41 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* FILE :typedefine.h */
|
||||
/* DATE :Wed, Aug 11, 2010 */
|
||||
/* DESCRIPTION :Aliases of Integer Type */
|
||||
/* CPU TYPE :Other */
|
||||
/* */
|
||||
/* This file is generated by Renesas Project Generator (Ver.4.50). */
|
||||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||||
/* */
|
||||
/***********************************************************************/
|
||||
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
*
|
||||
* Device : RX
|
||||
*
|
||||
* File Name : typedefine.h
|
||||
*
|
||||
* Abstract : Aliases of Integer Type.
|
||||
*
|
||||
* History : 1.00 (2009-08-07)
|
||||
*
|
||||
* NOTE : THIS IS A TYPICAL EXAMPLE.
|
||||
*
|
||||
* Copyright(c) 2009 Renesas Technology Corp.
|
||||
* And Renesas Solutions Corp.,All Rights Reserved.
|
||||
*
|
||||
*********************************************************************/
|
||||
|
||||
typedef signed char _SBYTE;
|
||||
typedef unsigned char _UBYTE;
|
||||
typedef signed short _SWORD;
|
||||
typedef unsigned short _UWORD;
|
||||
typedef signed int _SINT;
|
||||
typedef unsigned int _UINT;
|
||||
typedef signed long _SDWORD;
|
||||
typedef unsigned long _UDWORD;
|
||||
typedef signed long long _SQWORD;
|
||||
typedef unsigned long long _UQWORD;
|
60
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/vect.h
Normal file
60
Demo/RX600_RX63N-RSK_Renesas/RTOSDemo/include/vect.h
Normal file
|
@ -0,0 +1,60 @@
|
|||
/***********************************************************************/
|
||||
/* */
|
||||
/* FILE :vect.h */
|
||||
/* DATE :Wed, Aug 11, 2010 */
|
||||
/* DESCRIPTION :Definition of Vector */
|
||||
/* CPU TYPE :Other */
|
||||
/* */
|
||||
/* This file is generated by Renesas Project Generator (Ver.4.50). */
|
||||
/* NOTE:THIS IS A TYPICAL EXAMPLE. */
|
||||
/* */
|
||||
/***********************************************************************/
|
||||
|
||||
|
||||
|
||||
/*********************************************************************
|
||||
*
|
||||
* Device : RX/RX600
|
||||
*
|
||||
* File Name : vect.h
|
||||
*
|
||||
* Abstract : Definition of Vector.
|
||||
*
|
||||
* History : 1.00 (2009-08-07)
|
||||
*
|
||||
* NOTE : THIS IS A TYPICAL EXAMPLE.
|
||||
*
|
||||
* Copyright(c) 2009 Renesas Technology Corp.
|
||||
* And Renesas Solutions Corp.,All Rights Reserved.
|
||||
*
|
||||
*********************************************************************/
|
||||
|
||||
// Exception(Supervisor Instruction)
|
||||
#pragma interrupt (Excep_SuperVisorInst)
|
||||
void Excep_SuperVisorInst(void);
|
||||
|
||||
// Exception(Undefined Instruction)
|
||||
#pragma interrupt (Excep_UndefinedInst)
|
||||
void Excep_UndefinedInst(void);
|
||||
|
||||
// Exception(Floating Point)
|
||||
#pragma interrupt (Excep_FloatingPoint)
|
||||
void Excep_FloatingPoint(void);
|
||||
|
||||
// NMI
|
||||
#pragma interrupt (NonMaskableInterrupt)
|
||||
void NonMaskableInterrupt(void);
|
||||
|
||||
// Dummy
|
||||
#pragma interrupt (Dummy)
|
||||
void Dummy(void);
|
||||
|
||||
// BRK
|
||||
#pragma interrupt (Excep_BRK(vect=0))
|
||||
void Excep_BRK(void);
|
||||
|
||||
//;<<VECTOR DATA START (POWER ON RESET)>>
|
||||
//;Power On Reset PC
|
||||
extern void PowerON_Reset_PC(void);
|
||||
//;<<VECTOR DATA END (POWER ON RESET)>>
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue