Hi Dialog,
I am using the template from the SDK to implement a custom profile.
The first thing I did is add the following to user_profiles_config.h:
#define CFG_PRF_CUST1
But it fails during compilation. I get errors pertaining to cust1 files:
编译custs1_task.c……
..\..\..\..\..\sdk\ble_stack\profiles\custom\custs\src\custs1_task.c(20): error: #5: cannot open source input file "custs1_task.h": No such file or directory
#include "custs1_task.h"
..\..\..\..\..\sdk\ble_stack\profiles\custom\custs\src\custs1_task.c: 0 warnings, 1 error
compiling lans_task.c...
Device:
Hi jlabuac,
The error that you get is because the you have not included in the header files directory where keil searches the header's diretory that are neseccary for the cust1 profile, in order for this compile you will have to go to the "options for target" in Keil and hit the "C/C++" file and go the"Include Paths" field, in that field click the button in order to add the following directories \sdk\ble_stack\profiles\custom\custs\api and \sdk\ble_stack\profiles\custom. After you done with that, you will have to do some extra mods in order for this to compile, in keil from the sdk_profiles folder remove the cust2.c and cust2_task.c files from the project and also in the cust_prf_funcs[], replace the custs1_init() function with the app_custs1_init() and also replace the app_custs1_enable() function with NULL in order for the project to compile.
Thanks MT_dialog