⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 itcn_b.h

📁 摩托罗拉MMC2107在ucosII的移植代码
💻 H
📖 第 1 页 / 共 5 页
字号:
#define IPR_IP6_BITNO  6
#define IPR_IP6_MASK   (1 << IPR_IP6_BITNO)
#define IPR_IP5_BITNO  5
#define IPR_IP5_MASK   (1 << IPR_IP5_BITNO)
#define IPR_IP4_BITNO  4
#define IPR_IP4_MASK   (1 << IPR_IP4_BITNO)
#define IPR_IP3_BITNO  3
#define IPR_IP3_MASK   (1 << IPR_IP3_BITNO)
#define IPR_IP2_BITNO  2
#define IPR_IP2_MASK   (1 << IPR_IP2_BITNO)
#define IPR_IP1_BITNO  1
#define IPR_IP1_MASK   (1 << IPR_IP1_BITNO)
#define IPR_IP0_BITNO  0
#define IPR_IP0_MASK   (1 << IPR_IP0_BITNO)

#define IPR_IP_MASK    (0xFFFFFFFF)
#define IPR_RESET_MASK (0x00000000)

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* NIER Bits & Masks                                                    */
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#define NIER_NIE31_BITNO 31
#define NIER_NIE31_MASK  (1 << NIER_NIE31_BITNO)
#define NIER_NIE30_BITNO 30
#define NIER_NIE30_MASK  (1 << NIER_NIE30_BITNO)
#define NIER_NIE29_BITNO 29
#define NIER_NIE29_MASK  (1 << NIER_NIE29_BITNO)
#define NIER_NIE28_BITNO 28
#define NIER_NIE28_MASK  (1 << NIER_NIE28_BITNO)
#define NIER_NIE27_BITNO 27
#define NIER_NIE27_MASK  (1 << NIER_NIE27_BITNO)
#define NIER_NIE26_BITNO 26
#define NIER_NIE26_MASK  (1 << NIER_NIE26_BITNO)
#define NIER_NIE25_BITNO 25
#define NIER_NIE25_MASK  (1 << NIER_NIE25_BITNO)
#define NIER_NIE24_BITNO 24
#define NIER_NIE24_MASK  (1 << NIER_NIE24_BITNO)
#define NIER_NIE23_BITNO 23
#define NIER_NIE23_MASK  (1 << NIER_NIE23_BITNO)
#define NIER_NIE22_BITNO 22
#define NIER_NIE22_MASK  (1 << NIER_NIE22_BITNO)
#define NIER_NIE21_BITNO 21
#define NIER_NIE21_MASK  (1 << NIER_NIE21_BITNO)
#define NIER_NIE20_BITNO 20
#define NIER_NIE20_MASK  (1 << NIER_NIE20_BITNO)
#define NIER_NIE19_BITNO 19
#define NIER_NIE19_MASK  (1 << NIER_NIE19_BITNO)
#define NIER_NIE18_BITNO 18
#define NIER_NIE18_MASK  (1 << NIER_NIE18_BITNO)
#define NIER_NIE17_BITNO 17
#define NIER_NIE17_MASK  (1 << NIER_NIE17_BITNO)
#define NIER_NIE16_BITNO 16
#define NIER_NIE16_MASK  (1 << NIER_NIE16_BITNO)
#define NIER_NIE15_BITNO 15
#define NIER_NIE15_MASK  (1 << NIER_NIE15_BITNO)
#define NIER_NIE14_BITNO 14
#define NIER_NIE14_MASK  (1 << NIER_NIE14_BITNO)
#define NIER_NIE13_BITNO 13
#define NIER_NIE13_MASK  (1 << NIER_NIE13_BITNO)
#define NIER_NIE12_BITNO 12
#define NIER_NIE12_MASK  (1 << NIER_NIE12_BITNO)
#define NIER_NIE11_BITNO 11
#define NIER_NIE11_MASK  (1 << NIER_NIE11_BITNO)
#define NIER_NIE10_BITNO 10
#define NIER_NIE10_MASK  (1 << NIER_NIE10_BITNO)
#define NIER_NIE9_BITNO  9
#define NIER_NIE9_MASK   (1 << NIER_NIE9_BITNO)
#define NIER_NIE8_BITNO  8
#define NIER_NIE8_MASK   (1 << NIER_NIE8_BITNO)
#define NIER_NIE7_BITNO  7
#define NIER_NIE7_MASK   (1 << NIER_NIE7_BITNO)
#define NIER_NIE6_BITNO  6
#define NIER_NIE6_MASK   (1 << NIER_NIE6_BITNO)
#define NIER_NIE5_BITNO  5
#define NIER_NIE5_MASK   (1 << NIER_NIE5_BITNO)
#define NIER_NIE4_BITNO  4
#define NIER_NIE4_MASK   (1 << NIER_NIE4_BITNO)
#define NIER_NIE3_BITNO  3
#define NIER_NIE3_MASK   (1 << NIER_NIE3_BITNO)
#define NIER_NIE2_BITNO  2
#define NIER_NIE2_MASK   (1 << NIER_NIE2_BITNO)
#define NIER_NIE1_BITNO  1
#define NIER_NIE1_MASK   (1 << NIER_NIE1_BITNO)
#define NIER_NIE0_BITNO  0
#define NIER_NIE0_MASK   (1 << NIER_NIE0_BITNO)

#define NIER_NIE_MASK    (0xFFFFFFFF)
#define NIER_RESET_MASK  (0x00000000)

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* NIPR Bits & Masks                                                    */
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#define NIPR_NIP31_BITNO 31
#define NIPR_NIP31_MASK  (1 << NIPR_NIP31_BITNO)
#define NIPR_NIP30_BITNO 30
#define NIPR_NIP30_MASK  (1 << NIPR_NIP30_BITNO)
#define NIPR_NIP29_BITNO 29
#define NIPR_NIP29_MASK  (1 << NIPR_NIP29_BITNO)
#define NIPR_NIP28_BITNO 28
#define NIPR_NIP28_MASK  (1 << NIPR_NIP28_BITNO)
#define NIPR_NIP27_BITNO 27
#define NIPR_NIP27_MASK  (1 << NIPR_NIP27_BITNO)
#define NIPR_NIP26_BITNO 26
#define NIPR_NIP26_MASK  (1 << NIPR_NIP26_BITNO)
#define NIPR_NIP25_BITNO 25
#define NIPR_NIP25_MASK  (1 << NIPR_NIP25_BITNO)
#define NIPR_NIP24_BITNO 24
#define NIPR_NIP24_MASK  (1 << NIPR_NIP24_BITNO)
#define NIPR_NIP23_BITNO 23
#define NIPR_NIP23_MASK  (1 << NIPR_NIP23_BITNO)
#define NIPR_NIP22_BITNO 22
#define NIPR_NIP22_MASK  (1 << NIPR_NIP22_BITNO)
#define NIPR_NIP21_BITNO 21
#define NIPR_NIP21_MASK  (1 << NIPR_NIP21_BITNO)
#define NIPR_NIP20_BITNO 20
#define NIPR_NIP20_MASK  (1 << NIPR_NIP20_BITNO)
#define NIPR_NIP19_BITNO 19
#define NIPR_NIP19_MASK  (1 << NIPR_NIP19_BITNO)
#define NIPR_NIP18_BITNO 18
#define NIPR_NIP18_MASK  (1 << NIPR_NIP18_BITNO)
#define NIPR_NIP17_BITNO 17
#define NIPR_NIP17_MASK  (1 << NIPR_NIP17_BITNO)
#define NIPR_NIP16_BITNO 16
#define NIPR_NIP16_MASK  (1 << NIPR_NIP16_BITNO)
#define NIPR_NIP15_BITNO 15
#define NIPR_NIP15_MASK  (1 << NIPR_NIP15_BITNO)
#define NIPR_NIP14_BITNO 14
#define NIPR_NIP14_MASK  (1 << NIPR_NIP14_BITNO)
#define NIPR_NIP13_BITNO 13
#define NIPR_NIP13_MASK  (1 << NIPR_NIP13_BITNO)
#define NIPR_NIP12_BITNO 12
#define NIPR_NIP12_MASK  (1 << NIPR_NIP12_BITNO)
#define NIPR_NIP11_BITNO 11
#define NIPR_NIP11_MASK  (1 << NIPR_NIP11_BITNO)
#define NIPR_NIP10_BITNO 10
#define NIPR_NIP10_MASK  (1 << NIPR_NIP10_BITNO)
#define NIPR_NIP9_BITNO  9
#define NIPR_NIP9_MASK   (1 << NIPR_NIP9_BITNO)
#define NIPR_NIP8_BITNO  8
#define NIPR_NIP8_MASK   (1 << NIPR_NIP8_BITNO)
#define NIPR_NIP7_BITNO  7
#define NIPR_NIP7_MASK   (1 << NIPR_NIP7_BITNO)
#define NIPR_NIP6_BITNO  6
#define NIPR_NIP6_MASK   (1 << NIPR_NIP6_BITNO)
#define NIPR_NIP5_BITNO  5
#define NIPR_NIP5_MASK   (1 << NIPR_NIP5_BITNO)
#define NIPR_NIP4_BITNO  4
#define NIPR_NIP4_MASK   (1 << NIPR_NIP4_BITNO)
#define NIPR_NIP3_BITNO  3
#define NIPR_NIP3_MASK   (1 << NIPR_NIP3_BITNO)
#define NIPR_NIP2_BITNO  2
#define NIPR_NIP2_MASK   (1 << NIPR_NIP2_BITNO)
#define NIPR_NIP1_BITNO  1
#define NIPR_NIP1_MASK   (1 << NIPR_NIP1_BITNO)
#define NIPR_NIP0_BITNO  0
#define NIPR_NIP0_MASK   (1 << NIPR_NIP0_BITNO)

#define NIPR_NIP_MASK    (0xFFFFFFFF)
#define NIPR_RESET_MASK  (0x00000000)

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* FIER Bits & Masks                                                    */
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#define FIER_FIE31_BITNO 31
#define FIER_FIE31_MASK  (1 << FIER_FIE31_BITNO)
#define FIER_FIE30_BITNO 30
#define FIER_FIE30_MASK  (1 << FIER_FIE30_BITNO)
#define FIER_FIE29_BITNO 29
#define FIER_FIE29_MASK  (1 << FIER_FIE29_BITNO)
#define FIER_FIE28_BITNO 28
#define FIER_FIE28_MASK  (1 << FIER_FIE28_BITNO)
#define FIER_FIE27_BITNO 27
#define FIER_FIE27_MASK  (1 << FIER_FIE27_BITNO)
#define FIER_FIE26_BITNO 26
#define FIER_FIE26_MASK  (1 << FIER_FIE26_BITNO)
#define FIER_FIE25_BITNO 25
#define FIER_FIE25_MASK  (1 << FIER_FIE25_BITNO)
#define FIER_FIE24_BITNO 24
#define FIER_FIE24_MASK  (1 << FIER_FIE24_BITNO)
#define FIER_FIE23_BITNO 23
#define FIER_FIE23_MASK  (1 << FIER_FIE23_BITNO)
#define FIER_FIE22_BITNO 22
#define FIER_FIE22_MASK  (1 << FIER_FIE22_BITNO)
#define FIER_FIE21_BITNO 21
#define FIER_FIE21_MASK  (1 << FIER_FIE21_BITNO)
#define FIER_FIE20_BITNO 20
#define FIER_FIE20_MASK  (1 << FIER_FIE20_BITNO)
#define FIER_FIE19_BITNO 19
#define FIER_FIE19_MASK  (1 << FIER_FIE19_BITNO)
#define FIER_FIE18_BITNO 18
#define FIER_FIE18_MASK  (1 << FIER_FIE18_BITNO)
#define FIER_FIE17_BITNO 17
#define FIER_FIE17_MASK  (1 << FIER_FIE17_BITNO)
#define FIER_FIE16_BITNO 16
#define FIER_FIE16_MASK  (1 << FIER_FIE16_BITNO)
#define FIER_FIE15_BITNO 15
#define FIER_FIE15_MASK  (1 << FIER_FIE15_BITNO)
#define FIER_FIE14_BITNO 14
#define FIER_FIE14_MASK  (1 << FIER_FIE14_BITNO)
#define FIER_FIE13_BITNO 13
#define FIER_FIE13_MASK  (1 << FIER_FIE13_BITNO)
#define FIER_FIE12_BITNO 12
#define FIER_FIE12_MASK  (1 << FIER_FIE12_BITNO)
#define FIER_FIE11_BITNO 11
#define FIER_FIE11_MASK  (1 << FIER_FIE11_BITNO)
#define FIER_FIE10_BITNO 10
#define FIER_FIE10_MASK  (1 << FIER_FIE10_BITNO)
#define FIER_FIE9_BITNO  9
#define FIER_FIE9_MASK   (1 << FIER_FIE9_BITNO)
#define FIER_FIE8_BITNO  8
#define FIER_FIE8_MASK   (1 << FIER_FIE8_BITNO)
#define FIER_FIE7_BITNO  7
#define FIER_FIE7_MASK   (1 << FIER_FIE7_BITNO)
#define FIER_FIE6_BITNO  6
#define FIER_FIE6_MASK   (1 << FIER_FIE6_BITNO)
#define FIER_FIE5_BITNO  5
#define FIER_FIE5_MASK   (1 << FIER_FIE5_BITNO)
#define FIER_FIE4_BITNO  4
#define FIER_FIE4_MASK   (1 << FIER_FIE4_BITNO)
#define FIER_FIE3_BITNO  3
#define FIER_FIE3_MASK   (1 << FIER_FIE3_BITNO)
#define FIER_FIE2_BITNO  2
#define FIER_FIE2_MASK   (1 << FIER_FIE2_BITNO)
#define FIER_FIE1_BITNO  1
#define FIER_FIE1_MASK   (1 << FIER_FIE1_BITNO)
#define FIER_FIE0_BITNO  0
#define FIER_FIE0_MASK   (1 << FIER_FIE0_BITNO)

#define FIER_FIE_MASK    (0xFFFFFFFF)
#define FIER_RESET_MASK  (0x00000000)

/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
/* FIPR Bits & Masks                                                    */
/*- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

#define FIPR_FIP31_BITNO 31
#define FIPR_FIP31_MASK  (1 << FIPR_FIP31_BITNO)
#define FIPR_FIP30_BITNO 30
#define FIPR_FIP30_MASK  (1 << FIPR_FIP30_BITNO)
#define FIPR_FIP29_BITNO 29
#define FIPR_FIP29_MASK  (1 << FIPR_FIP29_BITNO)
#define FIPR_FIP28_BITNO 28
#define FIPR_FIP28_MASK  (1 << FIPR_FIP28_BITNO)
#define FIPR_FIP27_BITNO 27
#define FIPR_FIP27_MASK  (1 << FIPR_FIP27_BITNO)
#define FIPR_FIP26_BITNO 26
#define FIPR_FIP26_MASK  (1 << FIPR_FIP26_BITNO)
#define FIPR_FIP25_BITNO 25
#define FIPR_FIP25_MASK  (1 << FIPR_FIP25_BITNO)
#define FIPR_FIP24_BITNO 24
#define FIPR_FIP24_MASK  (1 << FIPR_FIP24_BITNO)
#define FIPR_FIP23_BITNO 23

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -