Регистры Allwinner H616

Сокращения  |  Дерево шин  |  Карта памяти


PF_EINT_CFG0
9.6.4. PF External Interrupt Configure Register 0 - адрес: 0x300b2a0 (смещение: 0x02A0)

Контроллер портов ввода-вывода (GPIO): список регистров



31 ||||||||||||||||| 16
15 ||||||||||||||||| 00

  Unused

Bits 31 : 28

  EINT6_CFG

Bits 27 : 24
R/W
0x0

External INT6 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT5_CFG

Bits 23 : 20
R/W
0x0

External INT5 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT4_CFG

Bits 19 : 16
R/W
0x0

External INT4 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT3_CFG

Bits 15 : 12
R/W
0x0

External INT3 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT2_CFG

Bits 11 : 8
R/W
0x0

External INT2 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT1_CFG

Bits 7 : 4
R/W
0x0

External INT1 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved


  EINT0_CFG

Bits 3 : 0
R/W
0x0

External INT0 Mode
0x0: Positive Edge
0x1: Negative Edge
0x2: High Level
0x3: Low Level
0x4: Double Edge (Positive/ Negative)
Others: Reserved



Команда U-Boot для чтения регистра

md 300b2a0 1



Bit fields structure

typedef union  pf_eint_cfg0
{
  struct
  {
   unsigned eint0_cfg : 4;
   unsigned eint1_cfg : 4;
   unsigned eint2_cfg : 4;
   unsigned eint3_cfg : 4;
   unsigned eint4_cfg : 4;
   unsigned eint5_cfg : 4;
   unsigned eint6_cfg : 4;
   unsigned unused0 : 4;
  } b;
   unsigned long w;
} PF_EINT_CFG0
   

Allwinner H616 Manual