数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

AN3423 数据表(PDF) 7 Page - STMicroelectronics

部件名 AN3423
功能描述  This application note describes the operations
PDF  13 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

AN3423 数据表(HTML) 7 Page - STMicroelectronics

Back Button AN3423 Datasheet HTML 3Page - STMicroelectronics AN3423 Datasheet HTML 4Page - STMicroelectronics AN3423 Datasheet HTML 5Page - STMicroelectronics AN3423 Datasheet HTML 6Page - STMicroelectronics AN3423 Datasheet HTML 7Page - STMicroelectronics AN3423 Datasheet HTML 8Page - STMicroelectronics AN3423 Datasheet HTML 9Page - STMicroelectronics AN3423 Datasheet HTML 10Page - STMicroelectronics AN3423 Datasheet HTML 11Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 7 / 13 page
background image
AN3423
Optimization
Doc ID 018987 Rev 2
7/13
To remove the macro not used, the OS_USE_API_REMOVAL should be defined. This can
be achieved by defining it on the compiler command line using -DOS_USE_API_REMOVAL.
Defining this macro causes the kernel to include the file Os_api_removal.h (was: os-
remove-api.h). This file must be provided by the user, and contains a set of macro definitions
of the form OS_EXCLUDE_<api-name>, where <api-name> is the name of the API function
to exclude, all capitalised. For example, to exclude the ChainTask API you would define the
macro OS_EXCLUDE_CHAINTASK:
#define OS_EXCLUDE_CHAINTASK 1
2.4.1
What happens if a removed API is called?
In kernel without system calls, the API would work normally. In a kernel with system calls,
the API call is routed to the error handler with the internal code
OS_ERROR_UnknownSystemCall. This results in an E_OS_VALUE error. The error hook is
called if configured, and the API returns E_OS_VALUE. In STANDARD status the caller is
likely to be terminated.
2.5
Interrupt locking API
The six interrupt locking APIs are by default implemented using direct function calls. This
means that they can only be used by trusted applications, because non-trusted applications
typically run in a restricted processor mode where access to the registers and instructions
for manipulating interrupt locks is restricted. The system-call versions of these APIs are still
present, however, and can used by non-trusted code.
If it is known that the interrupt locking system calls are not being used, the six system calls
can be omitted by defining these macros:
#define OS_EXCLUDE_DISABLEALLINTERRUPTS 1
#define OS_EXCLUDE_ENABLEALLINTERRUPTS 1
#define OS_EXCLUDE_SUSPENDALLINTERRUPTS 1
#define OS_EXCLUDE_RESUMEALLINTERRUPTS 1
#define OS_EXCLUDE_SUSPENDOSINTERRUPTS 1
#define OS_EXCLUDE_RESUMEOSINTERRUPTS 1
2.6
Optimization options
All the optimization recognized by the kernel are obtained directly from the AUTOSAR OS
configuration by the generator and should under no circumstances be defined by hand.
These optimizations are recorded in the following list:
●
OS_EXCLUDE_APPLICATIONS
It is defined if the configuration contains no OS-Applications. Many application related
functions can be omitted.
●
OS_EXCLUDE_CALLINGCONTEXTCHECK
Removes the explicit calling-context check from kernel API functions.
●
OS_EXCLUDE_CAT2ISR



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com