[an error occurred while processing this directive]
вдобавок есть все же различия по использованию SEM/LCK_pend
(«Телесистемы»: Конференция «Цифровые сигнальные процессоры (DSP) и их применение»)

миниатюрный аудио-видеорекордер mAVR

Отправлено reddragon 16 мая 2006 г. 11:55
В ответ на: В контексте BIOS - никаких. + отправлено andy_P 15 мая 2006 г. 15:51

spru403g.pdf
LCK_pend
188:
Note: RTS Functions Callable from TSK Threads Only
Many runtime support (RTS) functions use lock and unlock functions to
prevent reentrancy. However, DSP/BIOS SWI and HWI threads cannot
call LCK_pend and LCK_post. As a result, RTS functions that call
LCK_pend or LCK_post must not be called in the context of a SWI or
HWI thread.
+
189:
❏ The lock must be a handle for a resource lock object created through
a prior call to LCK_create.
❏ LCK_pend should NOT be called from a SWI or HWI thread.

but for SEM_pend:
305:
SEM_pend can only be called from an HWI or SWI if timeout is 0.
❏ SEM_pend cannot be called from the program’s main function.
❏ If you need to call SEM_pend within a TSK_disable/TSK_enable
block, you must use a timeout of 0.
❏ SEM_pend should not be called from within an IDL function. Doing
so prevents analysis tools from gathering run-time information.

Составить ответ  |||  Конференция  |||  Архив

Ответы


Отправка ответа

Имя (обязательно): 
Пароль: 
E-mail: 
NoIX ключ Запомнить

Тема (обязательно):
Сообщение:

Ссылка на URL: 
Название ссылки: 

URL изображения: 


Rambler's Top100 Рейтинг@Mail.ru
Перейти к списку ответов  |||  Конференция  |||  Архив  |||  Главная страница  |||  Содержание

E-mail: info@telesys.ru