]> git.sur5r.net Git - freertos/blob - FreeRTOS/Demo/T-HEAD_CB2201_CDK/csi/csi_core/csi_core_dummy.c
Introduce a port for T-HEAD CK802. A simple demo for T-HEAD CB2201 is also included.
[freertos] / FreeRTOS / Demo / T-HEAD_CB2201_CDK / csi / csi_core / csi_core_dummy.c
1 /*
2  * Copyright (C) 2017 C-SKY Microsystems Co., Ltd. All rights reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *   http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 /******************************************************************************
18  * @file     csi_core_dummy.c
19  * @brief    CSI Core Layer Source File
20  * @version  V1.0
21  * @date     02. June 2017
22  ******************************************************************************/
23
24 #include "csi_core.h"
25
26 #define _WEAK_ __attribute__((weak))
27
28 /* ##################################    NVIC function  ############################################ */
29
30
31 _WEAK_ void drv_nvic_init(uint32_t prio_bits)
32 {
33     return;
34 }
35 _WEAK_ void drv_nvic_enable_irq(int32_t irq_num)
36 {
37     return;
38 }
39 _WEAK_ void drv_nvic_disable_irq(int32_t irq_num)
40 {
41     return;
42 }
43
44 _WEAK_ uint32_t drv_nvic_get_pending_irq(int32_t irq_num)
45 {
46     return 0;
47 }
48 _WEAK_ void drv_nvic_set_pending_irq(int32_t irq_num)
49 {
50     return;
51 }
52 _WEAK_ void drv_nvic_clear_pending_irq(int32_t irq_num)
53 {
54     return;
55 }
56 _WEAK_ uint32_t drv_nvic_get_active(int32_t irq_num)
57 {
58     return 0;
59 }
60
61 _WEAK_ void drv_nvic_set_prio(int32_t irq_num, uint32_t priority)
62 {
63     return;
64 }
65 _WEAK_ uint32_t drv_nvic_get_prio(int32_t irq_num)
66 {
67     return 0;
68 }
69 /* ##########################  Cache functions  #################################### */
70
71 _WEAK_ void drv_icache_enable(void)
72 {
73     return;
74 }
75 _WEAK_ void drv_icache_disable(void)
76 {
77     return;
78 }
79 _WEAK_ void drv_icache_invalid(void)
80 {
81     return;
82 }
83 _WEAK_ void drv_dcache_enable(void)
84 {
85     return;
86 }
87 _WEAK_ void drv_dcache_disable(void)
88 {
89     return;
90 }
91 _WEAK_ void drv_dcache_invalid(void)
92 {
93     return;
94 }
95 _WEAK_ void drv_dcache_clean(void)
96 {
97     return;
98 }
99 _WEAK_ void drv_dcache_clean_invalid(void)
100 {
101     return;
102 }
103 _WEAK_ void drv_dcache_invalid_range(uint32_t *addr, int32_t dsize)
104 {
105     return;
106 }
107 _WEAK_ void drv_dcache_clean_range(uint32_t *addr, int32_t dsize)
108 {
109     return;
110 }
111 _WEAK_ void drv_dcache_clean_invalid_range(uint32_t *addr, int32_t dsize)
112 {
113     return;
114 }
115 _WEAK_ void drv_cache_set_range(uint32_t index, uint32_t baseAddr, uint32_t size, uint32_t enable)
116 {
117     return;
118 }
119 _WEAK_ void drv_cache_enable_profile(void)
120 {
121     return;
122 }
123 _WEAK_ void drv_cache_disable_profile(void)
124 {
125     return;
126 }
127 _WEAK_ void drv_cache_reset_profile(void)
128 {
129     return;
130 }
131 _WEAK_ uint32_t drv_cache_get_access_time(void)
132 {
133     return 0;
134 }
135 _WEAK_ uint32_t drv_cache_get_miss_time(void)
136 {
137     return 0;
138 }
139 /* ##################################    SysTick function  ############################################ */
140
141 _WEAK_ uint32_t drv_coret_config(uint32_t ticks, int32_t irq_num)
142 {
143     return 0;
144 }
145