Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
stm32:peripherals:gpio_input [2016/11/08 08:08] – [Programming Instruction] feurstm32:peripherals:gpio_input [2022/12/28 08:15] (current) ruan
Line 21: Line 21:
   * Write ''0x00'' to the corresponding fields in ''GPIOx->MODE''.   * Write ''0x00'' to the corresponding fields in ''GPIOx->MODE''.
   * Configure pull-up / -down in ''GPIOx->PUPDR''.   * Configure pull-up / -down in ''GPIOx->PUPDR''.
-\\ 
- 
-> {{logo_hal.svg?72px |}} **Hardware Abstraction Layer** 
-> [[https://ennis.zhaw.ch/hal/structreg__gpio__t.html | Registry Types]] 
-> [[https://ennis.zhaw.ch/hal/hal__gpio_8h.html | InES GPIO HAL Interface]] 
 \\ \\
  
 ===== Configuration Registers ===== ===== Configuration Registers =====
  
-==== MODER ==== +==== GPIOx_MODER - GPIO port mode register ====
- +
-Mode register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 39: Line 32:
 |Pin x|00|Input mode (reset state)| |Pin x|00|Input mode (reset state)|
  
-==== PUPDR ==== +==== GPIOx_PUPDR - GPIO port pull-up / pull-down register ====
- +
-Push-up / pull-down register+
  
 \\ {{gpio_reg_common.svg}} \\ \\ \\ {{gpio_reg_common.svg}} \\ \\
Line 52: Line 43:
 ===== Data Registers ===== ===== Data Registers =====
  
-==== IDR ==== +==== GPIOx_IDR - Port input data register ====
- +
-Input data register+
  
 \\ {{gpio_reg_idr.svg}} \\ \\ \\ {{gpio_reg_idr.svg}} \\ \\
Line 60: Line 49:
 * Register is read only \\ \\ * Register is read only \\ \\
  
-===== Legend ===== 
- 
-\\ {{legende.svg}} \\ \\ 
  • stm32/peripherals/gpio_input.1478592490.txt.gz
  • Last modified: 2016/11/08 08:08
  • by feur