Регистры Allwinner H616

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


PI_EINT_CFG0
9.6.4. PI External Interrupt Configure Register 0 - адрес: 0x300b300 (смещение: 0x0300)

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



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

  EINT7_CFG

Bits 31 : 28
R/W
0x0

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


  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 300b300 1



Bit fields structure

typedef union  pi_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 eint7_cfg : 4;
  } b;
   unsigned long w;
} PI_EINT_CFG0
   

Allwinner H616 Manual