23 #define ISF_SYSTEM_READY_EVENT (1<<1)
34 #define ISF_TASK_PRIORITY (9)
44 #define ISF_TASK_LOWEST_PRIORITY (20)
50 #define ISF_TASK_INDEX_START (50)
126 #define ISF_TASK_INIT_INDEX (ISF_TASK_INDEX_START + 0)
127 #define ISF_TASK_INIT_STACK_SIZE (384)
128 #define ISF_TASK_INIT_PRIORITY (ISF_TASK_PRIORITY-1)
129 #define ISF_TASK_INIT_NAME ("ii")
130 #define ISF_TASK_INIT_PARAM (0)
131 #define ISF_TASK_INIT_TIMESLICE (0)
137 #define ISF_TASK_ATTRIBUTE_INIT { ISF_TASK_INIT_INDEX, \
139 ISF_TASK_INIT_STACK_SIZE, \
140 ISF_TASK_INIT_PRIORITY, \
141 ISF_TASK_INIT_NAME, \
142 MQX_AUTO_START_TASK, \
143 ISF_TASK_INIT_PARAM, \
144 ISF_TASK_INIT_TIMESLICE },
157 extern void sensor_mgr_task(
uint32);
172 #define ISF_TASK_SM_INDEX (ISF_TASK_INDEX_START + 1)
173 #define ISF_TASK_SM_STACK_SIZE (640)
174 #define ISF_TASK_SM_PRIORITY (ISF_TASK_PRIORITY + 0)
175 #define ISF_TASK_SM_NAME ("sm")
176 #define ISF_TASK_SM_PARAM (0)
177 #define ISF_TASK_SM_TIMESLICE (0)
184 #define ISF_TASK_ATTRIBUTE_SM { ISF_TASK_SM_INDEX, \
186 ISF_TASK_SM_STACK_SIZE, \
187 ISF_TASK_SM_PRIORITY, \
189 MQX_AUTO_START_TASK, \
191 ISF_TASK_SM_TIMESLICE },
194 #define ISF_TASK_ATTRIBUTE_SM
196 #endif // ISF_COMPONENT_SM
209 #define ISF_APP_CALLBACK_DEV_INFO (isf_app_callback_dev_info)
210 #define ISF_APP_CALLBACK_MBOX (isf_app_callback_mbox),
217 #define ISF_TASK_CI_INDEX (ISF_TASK_INDEX_START + 2)
218 #define ISF_TASK_CI_STACK_SIZE 1200
219 #define ISF_TASK_CI_PRIORITY 8
220 #define ISF_TASK_CI_NAME ("ci")
221 #define ISF_TASK_CI_PARAM (0)
222 #define ISF_TASK_CI_TIMESLICE (0)
228 #define ISF_TASK_ATTRIBUTE_CI { ISF_TASK_CI_INDEX, \
230 ISF_TASK_CI_STACK_SIZE, \
231 ISF_TASK_CI_PRIORITY, \
233 MQX_AUTO_START_TASK, \
235 ISF_TASK_CI_TIMESLICE },
239 #define ISF_TASK_ATTRIBUTE_CI
240 #define ISF_APP_CALLBACK_DEV_INFO
241 #define ISF_APP_CALLBACK_MBOX
243 #endif // ISF_COMPONENT_CI
260 #define ISF_TASK_BM_INDEX (ISF_TASK_INDEX_START + 3)
261 #define ISF_TASK_BM_STACK_SIZE 1024
262 #define ISF_TASK_BM_PRIORITY 9
263 #define ISF_TASK_BM_NAME ("BusManager")
264 #define ISF_TASK_BM_PARAM (0)
265 #define ISF_TASK_BM_TIMESLICE (0)
272 #define ISF_TASK_ATTRIBUTE_BM { ISF_TASK_BM_INDEX, \
274 ISF_TASK_BM_STACK_SIZE, \
275 ISF_TASK_BM_PRIORITY, \
277 MQX_AUTO_START_TASK, \
279 ISF_TASK_BM_TIMESLICE },
283 #define ISF_TASK_ATTRIBUTE_BM
285 #endif // ISF_COMPONENT_BM
294 void task_idle(
uint32 initial_data);
302 #define ISF_TASK_PM_INDEX (ISF_TASK_INDEX_START + 4)
303 #define ISF_TASK_PM_STACK_SIZE (128)
304 #define ISF_TASK_PM_PRIORITY (ISF_TASK_LOWEST_PRIORITY)
305 #define ISF_TASK_PM_NAME ("pm")
306 #define ISF_TASK_PM_PARAM (0)
307 #define ISF_TASK_PM_TIMESLICE (0)
309 #define ISF_TASK_ATTRIBUTE_PM { ISF_TASK_PM_INDEX, \
311 ISF_TASK_PM_STACK_SIZE, \
312 ISF_TASK_PM_PRIORITY, \
314 MQX_AUTO_START_TASK, \
316 ISF_TASK_PM_TIMESLICE },
319 #define ISF_TASK_ATTRIBUTE_PM
321 #endif // ISF_COMPONENT_PM
330 #define ISF_TASKS_ATTRIBUTES ISF_TASK_ATTRIBUTE_INIT \
331 ISF_TASK_ATTRIBUTE_SM \
332 ISF_TASK_ATTRIBUTE_CI \
333 ISF_TASK_ATTRIBUTE_BM \
334 ISF_TASK_ATTRIBUTE_PM
341 #define ISF_APP_CALLBACKS \
342 ISF_APP_CALLBACK_DEV_INFO, \
343 ISF_APP_CALLBACK_MBOX
345 #endif // ISF_INIT_H_
void isf_init_task(uint32 initial_data)
This function initializes the ISF components for operation.
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...
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.
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.
isf_status_t pm_init(void)
This API initializes the Power Manager.