1 /* 2 * Copyright (C) 2015-2020 Alibaba Group Holding Limited 3 */ 4 #ifndef __CP_ACCEL_H__ 5 #define __CP_ACCEL_H__ 6 7 #include "plat_types.h" 8 #include "hal_location.h" 9 10 #ifdef __cplusplus 11 extern "C" { 12 #endif 13 14 typedef unsigned int (*CP_ACCEL_CP_MAIN)(void); 15 16 typedef unsigned int (*CP_ACCEL_EVT_HDLR)(uint32_t event); 17 18 int cp_accel_open(CP_ACCEL_CP_MAIN cp_main, CP_ACCEL_EVT_HDLR cp_hdlr, CP_ACCEL_EVT_HDLR mcu_hdlr, CP_ACCEL_EVT_HDLR mcu_sys_hdlr); 19 20 int cp_accel_close(void); 21 22 int cp_accel_init_done(void); 23 24 int cp_accel_send_event_mcu2cp(uint32_t event); 25 26 int cp_accel_send_event_cp2mcu(uint32_t event); 27 28 #ifdef __cplusplus 29 } 30 #endif 31 32 #endif 33 34