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

X  

OS21 数据表(PDF) 12 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) 12 Page - STMicroelectronics

Back Button 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 OS21 Datasheet HTML 16Page - STMicroelectronics  
Zoom Inzoom in Zoom Outzoom out
 12 / 16 page
background image
Board support packages
OS21, ARM
10/14
8083358
Interrupt table - with interrupt priority level support
For those ARM platforms that do support interrupt levels (for example STn8820) each entry
in the interrupt table has five entries:
/* 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;
unsigned int
priority;
} interrupt_table_entry_t;
This table describes interrupts that are routed to the interrupt controllers.
namep
is a pointer to the name of the interrupt. controller specifies the interrupt
controller where the interrupt is directed (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. priority is the priority or level
of the given interrupt.
OS21 implements 16 interrupt levels on ARM platforms with level support. Level 1 is
assigned to the lowest priority level, level 16 to the highest. This is not necessarily the same
as implemented in hardware.
This table allows OS21 to locate an appropriate bit in the INTC which 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, 4 };
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. The interrupt has a level of 4.
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, 1 },
{ &OS21_INTERRUPT_TIMER_1, OS21_CTRL_INTC, 0, 1, 2 },
{ &OS21_INTERRUPT_TIMER_2, OS21_CTRL_INTC, 0, 2, 3 },
{ &OS21_INTERRUPT_TIMER_3, OS21_CTRL_INTC, 0, 3, 4 }
};
This describes a basic system with four timer interrupts. The four interrupts have different
priorities, with TIMER 3 being the highest priority. 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