Skip to content

Commit

Permalink
Merge pull request #34 from weston-embedded/release-v3.08.02
Browse files Browse the repository at this point in the history
Release v3.08.02
  • Loading branch information
forg0ne authored Dec 2, 2022
2 parents aeea809 + 4103bd6 commit 93d6e79
Show file tree
Hide file tree
Showing 218 changed files with 1,514 additions and 451 deletions.
4 changes: 2 additions & 2 deletions Cfg/Template/os_app_hooks.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* APPLICATION HOOKS
*
* Filename : os_app_hooks.c
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
*/

Expand Down
4 changes: 2 additions & 2 deletions Cfg/Template/os_app_hooks.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* APPLICATION HOOKS
*
* Filename : os_app_hooks.h
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
*/

Expand Down
4 changes: 2 additions & 2 deletions Cfg/Template/os_cfg.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* CONFIGURATION FILE
*
* Filename : os_cfg.h
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
*/

Expand Down
4 changes: 2 additions & 2 deletions Cfg/Template/os_cfg_app.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* OS CONFIGURATION (APPLICATION SPECIFICS)
*
* Filename : os_cfg_app.h
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
*/

Expand Down
4 changes: 2 additions & 2 deletions Ports/ARC/EM6/MetaWare/os_cpu.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* Synopsys ARC EM6 Port
*
* File : os_cpu.h
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
* For : Synopsys ARC EM6
* Mode : Little-Endian, 32 registers, FPU, Code Density, Loop Counter, Stack Check
Expand Down
4 changes: 2 additions & 2 deletions Ports/ARC/EM6/MetaWare/os_cpu_a.s
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
; uC/OS-III
; The Real-Time Kernel
;
; Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
; Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
;
; SPDX-License-Identifier: APACHE-2.0
;
Expand All @@ -17,7 +17,7 @@
; Synopsys ARC EM6 Port
;
; File : os_cpu_a.s
; Version : V3.08.01
; Version : V3.08.02
;********************************************************************************************************
; For : Synopsys ARC EM6
; Mode : Little-Endian, 32 registers, FPU, Code Density, Loop Counter, Stack Check
Expand Down
4 changes: 2 additions & 2 deletions Ports/ARC/EM6/MetaWare/os_cpu_c.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* uC/OS-III
* The Real-Time Kernel
*
* Copyright 2009-2021 Silicon Laboratories Inc. www.silabs.com
* Copyright 2009-2022 Silicon Laboratories Inc. www.silabs.com
*
* SPDX-License-Identifier: APACHE-2.0
*
Expand All @@ -20,7 +20,7 @@
* Synopsys ARC EM6 Port
*
* File : os_cpu_c.c
* Version : V3.08.01
* Version : V3.08.02
*********************************************************************************************************
* For : Synopsys ARC EM6
* Mode : Little-Endian, 32 registers, FPU, Code Density, Loop Counter, Stack Check
Expand Down
101 changes: 101 additions & 0 deletions Ports/ARC/embARC/MetaWare/os_cpu.h
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
Loading

0 comments on commit 93d6e79

Please sign in to comment.