bouffalolab / bouffalo_sdk

BouffaloSDK is the IOT and MCU software development kit provided by the Bouffalo Lab Team, supports all the series of Bouffalo chips. Also it is the combination of bl_mcu_sdk and bl_iot_sdk
Apache License 2.0
362 stars 128 forks source link

IPC Souce Missing #48

Open Fishwaldo opened 1 year ago

Fishwaldo commented 1 year ago

Hi, we have the header bl808_ipc.h present, but the source for IPC is missing. I found a copy in the bl_linux repo, but wondering if it could be added to this repo?

https://github.com/bouffalolab/bl808_linux/blob/main/bl_mcu_sdk_bl808/drivers/bl808_driver/std_drv/src/bl808_ipc.c

sakumisu commented 1 year ago

It is in refactoring not used now, so removed.

Fishwaldo commented 1 year ago

any ETA?

sakumisu commented 1 year ago

Do you prepare to port with rpmsg or openmap? Maybe uncertain time.

Fishwaldo commented 1 year ago

Using rpmsg-lite.

Fishwaldo commented 1 year ago

if you API is not completed yet, can I make a suggestion. In the old implementation, you divided the 32 interupt Sources equally between the 2 other CPU's (so we had 16 "sources" per CPU). In the new implementation, why dont you reserve IPC_INT_SRC_BIT31 as a flag to indicate which CPU sent the IPC, and that gives applications 31 sources to use for signalling instead of 16.

sakumisu commented 1 year ago

If both cpu trigger int, one bit cannot work.