File tree Expand file tree Collapse file tree 6 files changed +21
-13
lines changed
targets/TARGET_Realtek/TARGET_AMEBA
sdk/soc/realtek/8195a/fwlib Expand file tree Collapse file tree 6 files changed +21
-13
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ void us_ticker_set_interrupt(timestamp_t timestamp)
97
97
98
98
HalTimerOp .HalTimerDis ((u32 )TimerAdapter .TimerId );
99
99
HalTimerOpExt .HalTimerReLoad ((u32 )TimerAdapter .TimerId , TimerAdapter .TimerLoadValueUs );
100
- // HalTimerOpExt.HalTimerSync(SYS_TIM_ID);
100
+ HalTimerOpExt .HalTimerSync (SYS_TIM_ID );
101
101
HalTimerOp .HalTimerEn ((u32 )TimerAdapter .TimerId );
102
102
}
103
103
@@ -107,7 +107,7 @@ void us_ticker_fire_interrupt(void)
107
107
108
108
HalTimerOp .HalTimerDis ((u32 )TimerAdapter .TimerId );
109
109
HalTimerOpExt .HalTimerReLoad ((u32 )TimerAdapter .TimerId , TimerAdapter .TimerLoadValueUs );
110
- // HalTimerOpExt.HalTimerSync(SYS_TIM_ID);
110
+ HalTimerOpExt .HalTimerSync (SYS_TIM_ID );
111
111
HalTimerOp .HalTimerEn ((u32 )TimerAdapter .TimerId );
112
112
}
113
113
Original file line number Diff line number Diff line change 1
- /*******************************************************************************
2
- *Copyright (c) 2013-2016 Realtek Semiconductor Corp, All Rights Reserved
3
- * SPDX-License-Identifier: LicenseRef-PBL
4
- *
5
- * Licensed under the Permissive Binary License, Version 1.0 (the "License");
6
- * you may not use this file except in compliance with the License.
7
- *
8
- * You may obtain a copy of the License at https://www.mbed.com/licenses/PBL-1.0
9
- *
10
- * See the License for the specific language governing permissions and limitations under the License.
11
- *******************************************************************************
1
+ /*
2
+ * Routines to access hardware
3
+ *
4
+ * Copyright (c) 2013 Realtek Semiconductor Corp.
5
+ *
6
+ * This module is a confidential and proprietary property of RealTek and
7
+ * possession or use of this module requires written permission of RealTek.
12
8
*/
13
9
14
10
#ifndef _HAL_TIMER_H_
@@ -54,6 +50,7 @@ typedef struct _HAL_TIMER_OP_EXT_ {
54
50
PHAL_TIMER_OP phal_timer_op_rom ;
55
51
VOID (* HalTimerIrqEn )(u32 TimerId );
56
52
VOID (* HalTimerReLoad )(u32 TimerId , u32 LoadUs );
53
+ VOID (* HalTimerSync )(u32 TimerId );
57
54
}HAL_TIMER_OP_EXT , * PHAL_TIMER_OP_EXT ;
58
55
59
56
#ifdef CONFIG_TIMER_MODULE
105
102
HalTimerDeInit (
106
103
void * Data
107
104
);
105
+
108
106
#endif // #ifdef CONFIG_RELEASE_BUILD_LIBRARIES
109
107
#endif
Original file line number Diff line number Diff line change @@ -89,6 +89,11 @@ HalTimerReLoadRtl8195a_Patch(
89
89
IN u32 LoadUs
90
90
);
91
91
92
+ VOID
93
+ HalTimerSyncRtl8195a (
94
+ IN u32 TimerId
95
+ );
96
+
92
97
u32
93
98
HalTimerReadCountRtl8195a_Patch (
94
99
IN u32 TimerId
@@ -119,6 +124,11 @@ HalTimerDisRtl8195a_Patch(
119
124
IN u32 TimerId
120
125
);
121
126
127
+ VOID
128
+ HalTimerSyncRtl8195a (
129
+ IN u32 TimerId
130
+ );
131
+
122
132
VOID
123
133
HalTimerDeInitRtl8195a_Patch (
124
134
IN VOID * Data
You can’t perform that action at this time.
0 commit comments