[164] | 1 | /*
|
---|
| 2 | * TOPPERS/ASP Kernel
|
---|
| 3 | * Toyohashi Open Platform for Embedded Real-Time Systems/
|
---|
| 4 | * Advanced Standard Profile Kernel
|
---|
| 5 | *
|
---|
| 6 | * Copyright (C) 2008-2010 by Witz Corporation, JAPAN
|
---|
| 7 | * Copyright (C) 2013 by Mitsuhiro Matsuura
|
---|
| 8 | *
|
---|
| 9 | * ãLì ÒÍCȺÌ(1)`(4)Ìðð½·êÉÀèC{\tgEF
|
---|
| 10 | * Ai{\tgEFAðüϵ½àÌðÜÞDȺ¯¶jðgpE¡»Eü
|
---|
| 11 | * ÏEÄzziȺCpÆÄÔj·é±Æð³Åø·éD
|
---|
| 12 | * (1) {\tgEFAð\[XR[hÌ`Åp·éêÉÍCãLÌì
|
---|
| 13 | * \¦C±Ìpð¨æѺL̳ÛØKèªC»ÌÜÜÌ`Å\[
|
---|
| 14 | * XR[hÉÜÜêÄ¢é±ÆD
|
---|
| 15 | * (2) {\tgEFAðCCu`®ÈÇC¼Ì\tgEFAJÉg
|
---|
| 16 | * pÅ«é`ÅÄzz·éêÉÍCÄzzɺ¤hL
|
---|
| 17 | gip
|
---|
| 18 | * Ò}j
|
---|
| 19 | AÈÇjÉCãLÌì \¦C±Ìpð¨æѺL
|
---|
| 20 | * ̳ÛØKèðfÚ·é±ÆD
|
---|
| 21 | * (3) {\tgEFAðC@íÉgÝÞÈÇC¼Ì\tgEFAJÉg
|
---|
| 22 | * pÅ«È¢`ÅÄzz·éêÉÍCÌ¢¸ê©Ìðð½·±
|
---|
| 23 | * ÆD
|
---|
| 24 | * (a) Äzzɺ¤hL
|
---|
| 25 | gipÒ}j
|
---|
| 26 | AÈÇjÉCãLÌ
|
---|
| 27 | * ì \¦C±Ìpð¨æѺL̳ÛØKèðfÚ·é±ÆD
|
---|
| 28 | * (b) ÄzzÌ`ÔðCÊÉèßéû@ÉæÁÄCTOPPERSvWFNgÉ
|
---|
| 29 | * ñ·é±ÆD
|
---|
| 30 | * (4) {\tgEFAÌpÉæè¼ÚIܽÍÔÚIɶ¶é¢©Èé¹
|
---|
| 31 | * Q©çàCãLì Ò¨æÑTOPPERSvWFNgðÆÓ·é±ÆD
|
---|
| 32 | * ܽC{\tgEFAÌ[UܽÍGh[U©çÌ¢©Èé
|
---|
| 33 | * RÉîÿ©çàCãLì Ò¨æÑTOPPERSvWFNgð
|
---|
| 34 | * ÆÓ·é±ÆD
|
---|
| 35 | *
|
---|
| 36 | * {\tgEFAÍC³ÛØÅñ³êÄ¢éàÌÅ éDãLì Ò¨
|
---|
| 37 | * æÑTOPPERSvWFNgÍC{\tgEFAÉÖµÄCÁèÌgpÚI
|
---|
| 38 | * ÉηéK«àÜßÄC¢©ÈéÛØàsíÈ¢DܽC{\tgEF
|
---|
| 39 | * AÌpÉæè¼ÚIܽÍÔÚIɶ¶½¢©Èé¹QÉÖµÄàC»
|
---|
| 40 | * ÌÓCðíÈ¢D
|
---|
| 41 | *
|
---|
| 42 | * @(#) $Id: rx630_config.h 164 2016-03-07 11:33:50Z coas-nagasima $
|
---|
| 43 | */
|
---|
| 44 |
|
---|
| 45 | /*
|
---|
| 46 | * vZbT˶W
|
---|
| 47 | [iRX630pj
|
---|
| 48 | *
|
---|
| 49 | * ±ÌCN[ht@CÍCtarget_config.hiܽÍC»±©çCN
|
---|
| 50 | * [h³êét@CjÌÝ©çCN[h³êéD¼Ìt@C©ç
|
---|
| 51 | * ¼ÚCN[hµÄÍÈçÈ¢D
|
---|
| 52 | */
|
---|
| 53 |
|
---|
| 54 |
|
---|
| 55 | #ifndef TOPPERS_RX630_CONFIG_H
|
---|
| 56 | #define TOPPERS_RX630_CONFIG_H
|
---|
| 57 |
|
---|
| 58 |
|
---|
| 59 | /*
|
---|
| 60 | * Ývö
|
---|
| 61 | */
|
---|
| 62 | #define INHNO_MAX UINT_C( 256 )
|
---|
| 63 |
|
---|
| 64 |
|
---|
| 65 | /*
|
---|
| 66 | * ݧäp^è`
|
---|
| 67 | */
|
---|
| 68 | typedef struct ier_info {
|
---|
| 69 | volatile uint8_t __evenaccess *addr;
|
---|
| 70 | uint8_t offset;
|
---|
| 71 | } IER_INFO;
|
---|
| 72 |
|
---|
| 73 |
|
---|
| 74 | /*
|
---|
| 75 | * ݧäpè`
|
---|
| 76 | */
|
---|
| 77 | #define INVALID_OFFSET ( 0xFFU )
|
---|
| 78 | #define INTNO_IRQ( intno ) ( ( 64U <= ( intno ) ) && ( ( intno ) <= 79U ) )
|
---|
| 79 | #define INTNO_IRQ_OFFSET( intno ) ( ( intno ) - 64U )
|
---|
| 80 | #define IRQ_MAX UINT_C( 16 )
|
---|
| 81 |
|
---|
| 82 | #define IR_TOP (0x00087010)
|
---|
| 83 | #define IR_REG( intno ) ((volatile uint8_t __evenaccess * )(IR_TOP + (intno)))
|
---|
| 84 |
|
---|
| 85 | /*
|
---|
| 86 | * ݧäpe[u
|
---|
| 87 | */
|
---|
| 88 |
|
---|
| 89 | /* ÝvövCIeBWX^AhX */
|
---|
| 90 | extern volatile uint8_t __evenaccess * const ipr_reg_addr[];
|
---|
| 91 | /* ÝvÂWX^AhX */
|
---|
| 92 | extern const IER_INFO ier_reg_addr[];
|
---|
| 93 | /* ÝvWX^AhX */
|
---|
| 94 | extern volatile uint8_t __evenaccess * const ir_reg_addr[];
|
---|
| 95 | /* IRQRg[WX^AhX */
|
---|
| 96 | extern volatile uint8_t __evenaccess * const irqcr_reg_addr[];
|
---|
| 97 |
|
---|
| 98 |
|
---|
| 99 | /*
|
---|
| 100 | * vZbT˶W
|
---|
| 101 | [iRX630pj
|
---|
| 102 | */
|
---|
| 103 | #include "rx630_msvc/prc_config.h"
|
---|
| 104 |
|
---|
| 105 | #endif /* TOPPERS_RX630_CONFIG_H */
|
---|
| 106 |
|
---|