Add C extern to support C++

pull/95/head
Connor Christie 2019-10-12 21:36:15 -05:00 committed by GitHub
parent c01c5a83f6
commit c236dc8508
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@
#include <stdint.h>
#include "dmac.h"
#ifdef __cplusplus
extern "C" {
#endif
#define kpu_matmul_begin kpu_conv2d_output
typedef int (*plic_irq_callback_t)(void *ctx);
@ -959,4 +963,8 @@ int kpu_get_output(kpu_model_context_t *ctx, uint32_t index, uint8_t **data, siz
*/
int kpu_run_kmodel(kpu_model_context_t *ctx, const uint8_t *src, dmac_channel_number_t dma_ch, kpu_done_callback_t done_callback, void *userdata);
#ifdef __cplusplus
}
#endif
#endif