24 #define ISF_SYSTEM_READY_EVENT (1<<1)
36 #define ISF_TASK_PRIORITY (9)
46 #define ISF_TASK_LOWEST_PRIORITY (20)
52 #define ISF_TASK_INDEX_START (50)
128 #define ISF_TASK_INIT_INDEX (ISF_TASK_INDEX_START + 0)
129 #define ISF_TASK_INIT_STACK_SIZE (384)
130 #define ISF_TASK_INIT_PRIORITY (ISF_TASK_PRIORITY-1)
131 #define ISF_TASK_INIT_NAME ("ii")
132 #define ISF_TASK_INIT_PARAM (0)
133 #define ISF_TASK_INIT_TIMESLICE (0)
139 #define ISF_TASK_ATTRIBUTE_INIT { ISF_TASK_INIT_INDEX, \
141 ISF_TASK_INIT_STACK_SIZE, \
142 ISF_TASK_INIT_PRIORITY, \
143 ISF_TASK_INIT_NAME, \
144 MQX_AUTO_START_TASK, \
145 ISF_TASK_INIT_PARAM, \
146 ISF_TASK_INIT_TIMESLICE },
159 extern void sensor_mgr_task(
uint32);
174 #define ISF_TASK_SM_INDEX (ISF_TASK_INDEX_START + 1)
175 #define ISF_TASK_SM_STACK_SIZE (640)
176 #define ISF_TASK_SM_PRIORITY (ISF_TASK_PRIORITY + 0)
177 #define ISF_TASK_SM_NAME ("sm")
178 #define ISF_TASK_SM_PARAM (0)
179 #define ISF_TASK_SM_TIMESLICE (0)
186 #define ISF_TASK_ATTRIBUTE_SM { ISF_TASK_SM_INDEX, \
188 ISF_TASK_SM_STACK_SIZE, \
189 ISF_TASK_SM_PRIORITY, \
191 MQX_AUTO_START_TASK, \
193 ISF_TASK_SM_TIMESLICE },
196 #define ISF_TASK_ATTRIBUTE_SM
198 #endif // ISF_COMPONENT_SM
211 #define ISF_APP_CALLBACK_DEV_INFO (isf_app_callback_dev_info)
212 #define ISF_APP_CALLBACK_MBOX (isf_app_callback_mbox),
219 #define ISF_TASK_CI_INDEX (ISF_TASK_INDEX_START + 2)
220 #define ISF_TASK_CI_STACK_SIZE (1024)
221 #define ISF_TASK_CI_PRIORITY (ISF_TASK_PRIORITY + 2)
222 #define ISF_TASK_CI_NAME ("ci")
223 #define ISF_TASK_CI_PARAM (0)
224 #define ISF_TASK_CI_TIMESLICE (0)
230 #define ISF_TASK_ATTRIBUTE_CI { ISF_TASK_CI_INDEX, \
232 ISF_TASK_CI_STACK_SIZE, \
233 ISF_TASK_CI_PRIORITY, \
235 MQX_AUTO_START_TASK, \
237 ISF_TASK_CI_TIMESLICE },
241 #define ISF_TASK_ATTRIBUTE_CI
242 #define ISF_APP_CALLBACK_DEV_INFO
243 #define ISF_APP_CALLBACK_MBOX
245 #endif // ISF_COMPONENT_CI
262 #define ISF_TASK_BM_INDEX (ISF_TASK_INDEX_START + 3)
263 #define ISF_TASK_BM_STACK_SIZE (512)
264 #define ISF_TASK_BM_PRIORITY (ISF_TASK_PRIORITY + 1)
265 #define ISF_TASK_BM_NAME ("bm")
266 #define ISF_TASK_BM_PARAM (0)
267 #define ISF_TASK_BM_TIMESLICE (0)
274 #define ISF_TASK_ATTRIBUTE_BM { ISF_TASK_BM_INDEX, \
276 ISF_TASK_BM_STACK_SIZE, \
277 ISF_TASK_BM_PRIORITY, \
279 MQX_AUTO_START_TASK, \
281 ISF_TASK_BM_TIMESLICE },
285 #define ISF_TASK_ATTRIBUTE_BM
287 #endif // ISF_COMPONENT_BM
304 #define ISF_TASK_PM_INDEX (ISF_TASK_INDEX_START + 4)
305 #define ISF_TASK_PM_STACK_SIZE (128)
306 #define ISF_TASK_PM_PRIORITY (ISF_TASK_LOWEST_PRIORITY)
307 #define ISF_TASK_PM_NAME ("pm")
308 #define ISF_TASK_PM_PARAM (0)
309 #define ISF_TASK_PM_TIMESLICE (0)
311 #define ISF_TASK_ATTRIBUTE_PM { ISF_TASK_PM_INDEX, \
313 ISF_TASK_PM_STACK_SIZE, \
314 ISF_TASK_PM_PRIORITY, \
316 MQX_AUTO_START_TASK, \
318 ISF_TASK_PM_TIMESLICE },
321 #define ISF_TASK_ATTRIBUTE_PM
323 #endif // ISF_COMPONENT_PM
332 #define ISF_TASKS_ATTRIBUTES ISF_TASK_ATTRIBUTE_INIT \
333 ISF_TASK_ATTRIBUTE_SM \
334 ISF_TASK_ATTRIBUTE_CI \
335 ISF_TASK_ATTRIBUTE_BM \
336 ISF_TASK_ATTRIBUTE_PM
343 #define ISF_APP_CALLBACKS \
344 ISF_APP_CALLBACK_DEV_INFO, \
345 ISF_APP_CALLBACK_MBOX
347 #endif // ISF_INIT_H_
void isf_init_task(uint32 initial_data)
This function initializes the ISF components for operation.
isf_status_t pm_init(void)
void isf_system_sync(void)
This function synchronizes the user tasks and the system initialization.
The isf_user_config.h file contains the user configurable settings to either include or exclude an IS...
unsigned long uint32
This defines uint32 as unsigned long.
isf_status_t isf_lib_init(void *pOptions)
This function initializes the ISF library.
isf_status_t bm_init(void)
Bus management initialization .
void task_ci(uint32)
Command Interpreter Task - main task to handle communication via mailboxes with the host...
Main ISF header file. Contains code common to all ISF components.
int32 isf_status_t
ISF return status type.
LWEVENT_STRUCT isfSysEventHandler
Definition of the event handle to the system ready event.
isf_status_t ci_init(void)
This API initializes the Command Interpreter.
void task_bm(uint32)
Bus Manager Task - main task to handle communication via mailboxes with the host.
void task_idle(uint32 initial_data)