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

X  

OS21 数据表(PDF) 11 Page - STMicroelectronics

部件名 OS21
功能描述  The API defined in the OS21 User manual
PDF  16 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  STMICROELECTRONICS [STMicroelectronics]
网页  http://www.st.com
标志 STMICROELECTRONICS - STMicroelectronics

OS21 数据表(HTML) 11 Page - STMicroelectronics

Back Button OS21 Datasheet HTML 7Page - STMicroelectronics OS21 Datasheet HTML 8Page - STMicroelectronics OS21 Datasheet HTML 9Page - STMicroelectronics OS21 Datasheet HTML 10Page - STMicroelectronics OS21 Datasheet HTML 11Page - STMicroelectronics OS21 Datasheet HTML 12Page - STMicroelectronics OS21 Datasheet HTML 13Page - STMicroelectronics OS21 Datasheet HTML 14Page - STMicroelectronics OS21 Datasheet HTML 15Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 11 / 16 page
background image
OS21, ARM
Board support packages
8083358
9/14
4.2.2
Interrupt table
The interrupt table describes the interrupt system to the OS21 platform-specific interrupt
API implementation code. On ARM there is only one interrupt table. The format of the table
depends upon whether or not interrupt priority levels are supported.
Interrupt table - no interrupt priority level support
Some ARM platforms do not support interrupt levels (for example, STn8815). In this case
each entry in the interrupt table has four fields, as follows:
/* An entry in the interrupt table */
typedef struct interrupt_table_entry_s
{
interrupt_name_t * namep;
unsigned int
controller;
unsigned int
reg_set;
unsigned int
bit_set;
} interrupt_table_entry_t;
The table describes interrupts that are routed to specific interrupt controllers.
namep
is a pointer to the name of the interrupt. controller specifies the interrupt
controller where the interrupt arrives (only OS21_CTRL_INTC is supported on ARM
platforms). reg_set is the number of the register set to which the interrupt is routed.
Currently interrupts are routed to two registers on the interrupt controller; OS21 numbers
these 0 or 1. bit_set is the bit number within this register.
This table enables OS21 to locate an appropriate bit in the INTC that maps to the named
interrupt. For example:
interrupt_name_t OS21_MY_INTERRUPT = 21;
interrupt_table_entry_t my_interrupt =
{ &OS21_MY_INTERRUPT, OS21_CTRL_INTC, 1, 15 };
This describes an interrupt called OS21_MY_INTERRUPT, which is routed into bit 15 of
register set 1 on the interrupt controller OS21_CTRL_INTC.
interrupt_table_entry_t bsp_interrupt_table [];
This describes the set of interrupts that arrive on the INTC. It comprises a list of
interrupt_table_entry_t
types. For example:
interrupt_table_entry_t bsp_interrupt_table [] =
{
{ &OS21_INTERRUPT_TIMER_0, OS21_CTRL_INTC, 0, 0 },
{ &OS21_INTERRUPT_TIMER_1, OS21_CTRL_INTC, 0, 1 },
{ &OS21_INTERRUPT_TIMER_2, OS21_CTRL_INTC, 0, 2 },
{ &OS21_INTERRUPT_TIMER_3, OS21_CTRL_INTC, 0, 3 }
};
This describes a basic system with four timer interrupts. Real systems are likely to be
different to this.



Html Pages

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


数据表 下载

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