Регистры Allwinner H616

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


PI_EINT_CFG1
9.6.4. PI External Interrupt Configure Register 1 - адрес: 0x300b304 (смещение: 0x0304)

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



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

  EINT15_CFG

Bits 31 : 28
R/W
0x0

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


  EINT14_CFG

Bits 27 : 24
R/W
0x0

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


  EINT13_CFG

Bits 23 : 20
R/W
0x0

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


  EINT12_CFG

Bits 19 : 16
R/W
0x0

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


  EINT11_CFG

Bits 15 : 12
R/W
0x0

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


  EINT10_CFG

Bits 11 : 8
R/W
0x0

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


  EINT9_CFG

Bits 7 : 4
R/W
0x0

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


  EINT8_CFG

Bits 3 : 0
R/W
0x0

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



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

md 300b304 1



Bit fields structure

typedef union  pi_eint_cfg1
{
  struct
  {
   unsigned eint8_cfg : 4;
   unsigned eint9_cfg : 4;
   unsigned eint10_cfg : 4;
   unsigned eint11_cfg : 4;
   unsigned eint12_cfg : 4;
   unsigned eint13_cfg : 4;
   unsigned eint14_cfg : 4;
   unsigned eint15_cfg : 4;
  } b;
   unsigned long w;
} PI_EINT_CFG1
   

Allwinner H616 Manual