• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2020 HiSilicon (Shanghai) Technologies CO., LIMITED.
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  *     http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  * Description:  calculate mips
15  *
16  * Create:  2018-10-15
17  */
18 #ifndef HAL_MIPS_H
19 #define HAL_MIPS_H
20 
21 /** @defgroup connectivity_drivers_hal_mips MIPS
22   * @ingroup  connectivity_drivers_hal
23   * @{
24   */
25 typedef void (*hal_exception_dump_mips_callback)(void);
26 
27 /* register mips callback function */
28 void hal_register_mips_start_callback(hal_exception_dump_mips_callback callback);
29 void hal_register_mips_stop_callback(hal_exception_dump_mips_callback callback);
30 
31 /* start calculating ticks  */
32 void hal_calculate_mips_start(void);
33 
34 /* start calculating ticks  */
35 void hal_calculate_mips_stop(void);
36 
37 /**
38   * @}
39   */
40 #endif
41