mirror of
https://github.com/FreeRTOS/FreeRTOS-Kernel.git
synced 2025-08-01 08:54:14 -04:00
Added YRDKRL78G14 build configuration to the IAR RL78 demo.
This commit is contained in:
parent
a5d0e3f0c1
commit
17bba16fa6
12 changed files with 1389 additions and 213 deletions
|
@ -56,19 +56,19 @@
|
|||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
|
||||
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
|
||||
license and Real Time Engineers Ltd. contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool, and our new
|
||||
fully thread aware and reentrant UDP/IP stack.
|
||||
|
||||
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
|
||||
Integrity Systems, who sell the code with commercial support,
|
||||
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
|
||||
Integrity Systems, who sell the code with commercial support,
|
||||
indemnification and middleware, under the OpenRTOS brand.
|
||||
|
||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
||||
engineered and independently SIL3 certified version for use in safety and
|
||||
|
||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
||||
engineered and independently SIL3 certified version for use in safety and
|
||||
mission critical applications that require provable dependability.
|
||||
*/
|
||||
|
||||
|
@ -233,32 +233,32 @@ const unsigned short usClockHz = 15000UL; /* Internal clock. */
|
|||
const unsigned short usCompareMatch = ( usClockHz / configTICK_RATE_HZ ) + 1UL;
|
||||
|
||||
/* Use the internal 15K clock. */
|
||||
OSMC = 0x16U;
|
||||
OSMC = ( unsigned char ) 0x16;
|
||||
|
||||
/* Supply the RTC clock. */
|
||||
RTCEN = 1U;
|
||||
RTCEN = ( unsigned char ) 1U;
|
||||
|
||||
/* Disable ITMC operation. */
|
||||
ITMC = 0x0000;
|
||||
ITMC = ( unsigned char ) 0x0000;
|
||||
|
||||
/* Disable INTIT interrupt. */
|
||||
ITMK = 1U;
|
||||
ITMK = ( unsigned char ) 1;
|
||||
|
||||
/* Set INTIT high priority */
|
||||
ITPR1 = 1U;
|
||||
ITPR0 = 1U;
|
||||
ITPR1 = ( unsigned char ) 1;
|
||||
ITPR0 = ( unsigned char ) 1;
|
||||
|
||||
/* Set interval. */
|
||||
ITMC = usCompareMatch;
|
||||
|
||||
/* Clear INIT interrupt. */
|
||||
ITIF = 0U;
|
||||
ITIF = ( unsigned char ) 0;
|
||||
|
||||
/* Set interval and enable interrupt operation. */
|
||||
ITMC = usCompareMatch | 0x8000U;
|
||||
|
||||
/* Enable INTIT interrupt. */
|
||||
ITMK = 0U;
|
||||
ITMK = ( unsigned char ) 0;
|
||||
|
||||
/* Enable IT operation. */
|
||||
ITMC |= 0x8000;
|
||||
// ITMC |= 0x8000;
|
||||
}
|
||||
/*-----------------------------------------------------------*/
|
||||
|
||||
|
|
|
@ -53,11 +53,6 @@
|
|||
|
||||
#include "ISR_Support.h"
|
||||
|
||||
|
||||
#if __CORE__ != __RL78_1__
|
||||
#error "This file is only for RL78 Devices"
|
||||
#endif
|
||||
|
||||
#define CS 0xFFFFC
|
||||
#define ES 0xFFFFD
|
||||
|
||||
|
|
|
@ -56,25 +56,28 @@
|
|||
***************************************************************************
|
||||
|
||||
|
||||
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
|
||||
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
|
||||
license and Real Time Engineers Ltd. contact details.
|
||||
|
||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
||||
including FreeRTOS+Trace - an indispensable productivity tool, and our new
|
||||
fully thread aware and reentrant UDP/IP stack.
|
||||
|
||||
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
|
||||
Integrity Systems, who sell the code with commercial support,
|
||||
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
|
||||
Integrity Systems, who sell the code with commercial support,
|
||||
indemnification and middleware, under the OpenRTOS brand.
|
||||
|
||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
||||
engineered and independently SIL3 certified version for use in safety and
|
||||
|
||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
||||
engineered and independently SIL3 certified version for use in safety and
|
||||
mission critical applications that require provable dependability.
|
||||
*/
|
||||
|
||||
#ifndef PORTMACRO_H
|
||||
#define PORTMACRO_H
|
||||
|
||||
#include "port_iodefine.h"
|
||||
#include "port_iodefine_ext.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
@ -178,19 +181,6 @@ extern volatile unsigned short usCriticalNesting; \
|
|||
#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
||||
|
||||
/* --------------------------------------------------------------------------*/
|
||||
/* Option-bytes and security ID */
|
||||
/* --------------------------------------------------------------------------*/
|
||||
#define OPT_BYTES_SIZE 4
|
||||
#define SECU_ID_SIZE 10
|
||||
#define WATCHDOG_DISABLED 0x00
|
||||
#define LVI_ENABLED 0xFE
|
||||
#define LVI_DISABLED 0xFF
|
||||
#define RESERVED_FF 0xFF
|
||||
#define OCD_DISABLED 0x04
|
||||
#define OCD_ENABLED 0x81
|
||||
#define OCD_ENABLED_ERASE 0x80
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue