AnsweredAssumed Answered

How to define the GPIO mode ?

Question asked by lee.tom.003 on Aug 13, 2012
Latest reply on Jun 15, 2013 by longo.ricardo
typedef enum
{ GPIO_Mode_AIN = 0x0,
  GPIO_Mode_IN_FLOATING = 0x04,
  GPIO_Mode_IPD = 0x28,
  GPIO_Mode_IPU = 0x48,
  GPIO_Mode_Out_OD = 0x14,
  GPIO_Mode_Out_PP = 0x10,
  GPIO_Mode_AF_OD = 0x1C,
  GPIO_Mode_AF_PP = 0x18
}GPIOMode_TypeDef;

How come 0x0, 0x28, 0x48? Which register are they based on?

Outcomes