question about rwip_init()

5 posts / 0 new
Last post
jetliang
Offline
Last seen:2 years 8 months ago
加入:2014-12-02 06:50
question about rwip_init()

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:
MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi jetliang,

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

jetliang
Offline
Last seen:2 years 8 months ago
加入:2014-12-02 06:50
thank you for your help!

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?

MT_dialog
Offline
Last seen:2 months 1 week ago
工作人员
加入:2015-06-08 11:34
Hi jetliang,

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

jetliang
Offline
Last seen:2 years 8 months ago
加入:2014-12-02 06:50
Thanks MT_dialog,i appreciate

Thanks MT_dialog,i appreciate for your help!

Topic locked