Регистры Allwinner H616

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


PG_EINT_CFG2
9.6.4. PG External Interrupt Configure Register 2 - адрес: 0x300b2c8 (смещение: 0x02C8)

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



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

  Unused

Bits 31 : 16

  EINT19_CFG

Bits 15 : 12
R/W
0x0

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


  EINT18_CFG

Bits 11 : 8
R/W
0x0

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


  EINT17_CFG

Bits 7 : 4
R/W
0x0

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


  EINT16_CFG

Bits 3 : 0
R/W
0x0

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



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

md 300b2c8 1



Bit fields structure

typedef union  pg_eint_cfg2
{
  struct
  {
   unsigned eint16_cfg : 4;
   unsigned eint17_cfg : 4;
   unsigned eint18_cfg : 4;
   unsigned eint19_cfg : 4;
   unsigned unused0 : 16;
  } b;
   unsigned long w;
} PG_EINT_CFG2
   

Allwinner H616 Manual