Repostiory containing DAPLink source code with Reset Pin workaround for HANI_IOT board.
Upstream: https://github.com/ARMmbed/DAPLink
source/rtos/RTX_Config.h@0:01f31e923fe2, 2020-04-07 (annotated)
- Committer:
- Pawel Zarembski
- Date:
- Tue Apr 07 12:55:42 2020 +0200
- Revision:
- 0:01f31e923fe2
hani: DAPLink with reset workaround
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
Pawel Zarembski |
0:01f31e923fe2 | 1 | /** |
Pawel Zarembski |
0:01f31e923fe2 | 2 | * @file RTX_Config.h |
Pawel Zarembski |
0:01f31e923fe2 | 3 | * @brief |
Pawel Zarembski |
0:01f31e923fe2 | 4 | * |
Pawel Zarembski |
0:01f31e923fe2 | 5 | * DAPLink Interface Firmware |
Pawel Zarembski |
0:01f31e923fe2 | 6 | * Copyright (c) 2009-2016, ARM Limited, All Rights Reserved |
Pawel Zarembski |
0:01f31e923fe2 | 7 | * SPDX-License-Identifier: Apache-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 8 | * |
Pawel Zarembski |
0:01f31e923fe2 | 9 | * Licensed under the Apache License, Version 2.0 (the "License"); you may |
Pawel Zarembski |
0:01f31e923fe2 | 10 | * not use this file except in compliance with the License. |
Pawel Zarembski |
0:01f31e923fe2 | 11 | * You may obtain a copy of the License at |
Pawel Zarembski |
0:01f31e923fe2 | 12 | * |
Pawel Zarembski |
0:01f31e923fe2 | 13 | * http://www.apache.org/licenses/LICENSE-2.0 |
Pawel Zarembski |
0:01f31e923fe2 | 14 | * |
Pawel Zarembski |
0:01f31e923fe2 | 15 | * Unless required by applicable law or agreed to in writing, software |
Pawel Zarembski |
0:01f31e923fe2 | 16 | * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
Pawel Zarembski |
0:01f31e923fe2 | 17 | * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
Pawel Zarembski |
0:01f31e923fe2 | 18 | * See the License for the specific language governing permissions and |
Pawel Zarembski |
0:01f31e923fe2 | 19 | * limitations under the License. |
Pawel Zarembski |
0:01f31e923fe2 | 20 | */ |
Pawel Zarembski |
0:01f31e923fe2 | 21 | |
Pawel Zarembski |
0:01f31e923fe2 | 22 | /* Error Codes */ |
Pawel Zarembski |
0:01f31e923fe2 | 23 | #define OS_ERR_STK_OVF 1 |
Pawel Zarembski |
0:01f31e923fe2 | 24 | #define OS_ERR_FIFO_OVF 2 |
Pawel Zarembski |
0:01f31e923fe2 | 25 | #define OS_ERR_MBX_OVF 3 |
Pawel Zarembski |
0:01f31e923fe2 | 26 | |
Pawel Zarembski |
0:01f31e923fe2 | 27 | /* Definitions */ |
Pawel Zarembski |
0:01f31e923fe2 | 28 | #define BOX_ALIGN_8 0x80000000 |
Pawel Zarembski |
0:01f31e923fe2 | 29 | #define _declare_box(pool,size,cnt) U32 pool[(((size)+3)/4)*(cnt) + 3] |
Pawel Zarembski |
0:01f31e923fe2 | 30 | #define _declare_box8(pool,size,cnt) U64 pool[(((size)+7)/8)*(cnt) + 2] |
Pawel Zarembski |
0:01f31e923fe2 | 31 | #define _init_box8(pool,size,bsize) _init_box (pool,size,(bsize) | BOX_ALIGN_8) |
Pawel Zarembski |
0:01f31e923fe2 | 32 | |
Pawel Zarembski |
0:01f31e923fe2 | 33 | /* Variables */ |
Pawel Zarembski |
0:01f31e923fe2 | 34 | extern U32 mp_tcb[]; |
Pawel Zarembski |
0:01f31e923fe2 | 35 | extern U64 mp_stk[]; |
Pawel Zarembski |
0:01f31e923fe2 | 36 | extern U32 os_fifo[]; |
Pawel Zarembski |
0:01f31e923fe2 | 37 | extern void *os_active_TCB[]; |
Pawel Zarembski |
0:01f31e923fe2 | 38 | |
Pawel Zarembski |
0:01f31e923fe2 | 39 | /* Constants */ |
Pawel Zarembski |
0:01f31e923fe2 | 40 | extern U16 const os_maxtaskrun; |
Pawel Zarembski |
0:01f31e923fe2 | 41 | extern U32 const os_trv; |
Pawel Zarembski |
0:01f31e923fe2 | 42 | extern U8 const os_flags; |
Pawel Zarembski |
0:01f31e923fe2 | 43 | extern U32 const os_stackinfo; |
Pawel Zarembski |
0:01f31e923fe2 | 44 | extern U32 const os_rrobin; |
Pawel Zarembski |
0:01f31e923fe2 | 45 | extern U32 const os_clockrate; |
Pawel Zarembski |
0:01f31e923fe2 | 46 | extern U32 const os_timernum; |
Pawel Zarembski |
0:01f31e923fe2 | 47 | extern U16 const mp_tcb_size; |
Pawel Zarembski |
0:01f31e923fe2 | 48 | extern U32 const mp_stk_size; |
Pawel Zarembski |
0:01f31e923fe2 | 49 | extern U32 const *m_tmr; |
Pawel Zarembski |
0:01f31e923fe2 | 50 | extern U16 const mp_tmr_size; |
Pawel Zarembski |
0:01f31e923fe2 | 51 | extern U8 const os_fifo_size; |
Pawel Zarembski |
0:01f31e923fe2 | 52 | |
Pawel Zarembski |
0:01f31e923fe2 | 53 | /* Functions */ |
Pawel Zarembski |
0:01f31e923fe2 | 54 | extern void os_idle_demon (void); |
Pawel Zarembski |
0:01f31e923fe2 | 55 | extern int os_tick_init (void); |
Pawel Zarembski |
0:01f31e923fe2 | 56 | extern void os_tick_irqack (void); |
Pawel Zarembski |
0:01f31e923fe2 | 57 | extern void os_tmr_call (U16 info); |
Pawel Zarembski |
0:01f31e923fe2 | 58 | extern void os_error (U32 err_code); |
Pawel Zarembski |
0:01f31e923fe2 | 59 | |
Pawel Zarembski |
0:01f31e923fe2 | 60 | /*---------------------------------------------------------------------------- |
Pawel Zarembski |
0:01f31e923fe2 | 61 | * end of file |
Pawel Zarembski |
0:01f31e923fe2 | 62 | *---------------------------------------------------------------------------*/ |