hi,all.
i was sdudying the code of "DSPS".
in function "main_func()", "rwip_init(error)" was called.
i founded function "rwip_init(uint32_t error)" was placed in "rwip.c",
for example:
#if (!BLE_HOST_PRESENT)
void rwip_init(uint32_t error)
{
........
........
}
#endif // (!BLE_HOST_PRESENT)
but "BLE_HOST_PRESENT" was defined to "1",so "rwip_init(uint32_t error)" would not be compiled.
my question is which "rwip_init(error)" is called?
Keywords:
Device:
Hi jetliang,
The rwip_init() function located in ROM and that is the function that is called when rwip_init() is invoked.
Thanks MT_dialog
thank you for your help!
it means that rwip_init() function can not be modified by user?
and the rwip_init() function that was found in "rwip.c" ,when it will be used?
if it is used by user,it will cause conflict with the function rwip_init() located in ROM?
Hi jetliang,
The rwip_init() function can not be modified by the user, as i ve mentioned in the previous post the one used in the project is located in ROM code. The source code that you found in the project is used when you want to use the da as a controller over HCI. If you define the function, yes there will be a confilct.
Thanks MT_dialog
Thanks MT_dialog,i appreciate for your help!