-
Notifications
You must be signed in to change notification settings - Fork 319
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #34 from weston-embedded/release-v3.08.02
Release v3.08.02
- Loading branch information
Showing
218 changed files
with
1,514 additions
and
451 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
/* | ||
********************************************************************************************************* | ||
* uC/OS-III | ||
* The Real-Time Kernel | ||
* | ||
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com | ||
* | ||
* SPDX-License-Identifier: APACHE-2.0 | ||
* | ||
* This software is subject to an open source license and is distributed by | ||
* Silicon Laboratories Inc. pursuant to the terms of the Apache License, | ||
* Version 2.0 available at www.apache.org/licenses/LICENSE-2.0. | ||
* | ||
********************************************************************************************************* | ||
*/ | ||
|
||
/* | ||
********************************************************************************************************* | ||
* | ||
* ARC | ||
* MetaWare | ||
* | ||
* Filename : os_cpu.h | ||
* Version : V3.08.02 | ||
********************************************************************************************************* | ||
*/ | ||
|
||
#ifndef _OS_CPU_H | ||
#define _OS_CPU_H | ||
|
||
#ifdef OS_CPU_GLOBALS | ||
#define OS_CPU_EXT | ||
#else | ||
#define OS_CPU_EXT extern | ||
#endif | ||
|
||
#include "embARC.h" | ||
#ifdef __cplusplus | ||
extern "C" { | ||
#endif | ||
|
||
/* | ||
********************************************************************************************************* | ||
* MACROS | ||
* | ||
* Note(s): OS_TASK_SW() invokes the task level context switch. | ||
* | ||
* (1) On some processors, this corresponds to a call to OSCtxSw() which is an assemply language | ||
* function that performs the context switch. | ||
* | ||
* (2) On some processors, you need to simulate an interrupt using a 'sowfate interrupt' or a | ||
* TRAP instruction. Some compilers allow you to add in-line assembly language as shown. | ||
********************************************************************************************************* | ||
*/ | ||
|
||
#define OS_TASK_SW() OSCtxSw() /* Simulate interrupt */ | ||
|
||
/* | ||
********************************************************************************************************* | ||
* TIMESTAMP CONFIGURATION | ||
* | ||
* Note(s) : (1) OS_TS_GET() is generally defined as CPU_TS_Get32() to allow CPU timestamp timer to be of | ||
* any data type size. | ||
* | ||
* (2) For architectures that provide 32-bit or higher precision free running counters | ||
* (i.e. cycle count registers): | ||
* | ||
* (a) OS_TS_GET() may be defined as CPU_TS_TmrRd() to improve performance when retrieving | ||
* the timestamp. You would use CPU_TS_TmrRd() if this function returned the value of | ||
* a 32-bit free running timer 0x00000000 to 0xFFFFFFFF then roll over to 0x00000000. | ||
* | ||
* (b) CPU_TS_TmrRd() MUST be configured to be greater or equal to 32-bits to avoid | ||
* truncation of TS. | ||
* | ||
* (c) The Timer must be an up counter. | ||
********************************************************************************************************* | ||
*/ | ||
|
||
#if OS_CFG_TS_EN == 1u | ||
#define OS_TS_GET() (CPU_TS)CPU_TS_Get32() /* See Note #2a. CPU_TS_TmrRd() */ | ||
#else | ||
#define OS_TS_GET() (CPU_TS)0u | ||
#endif | ||
|
||
|
||
/* | ||
********************************************************************************************************* | ||
* FUNCTION PROTOTYPES | ||
********************************************************************************************************* | ||
*/ | ||
|
||
void OSCtxSw (void); | ||
void OSIntCtxSw (void); | ||
void OSStartHighRdy (void); | ||
int OS_SysTickInit (void); | ||
|
||
#ifdef __cplusplus | ||
} | ||
#endif | ||
|
||
#endif |
Oops, something went wrong.