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
software:c:registries [2016/08/31 07:40] – [CT Board Registers] kesrsoftware:c:registries [2018/01/31 14:39] (current) – [CT Board Registers] ruan
Line 24: Line 24:
 ===== STM32F429ZI Registers ===== ===== STM32F429ZI Registers =====
  
-Bellow is the definition of the [[stm32:peripherals:gpio|GPIO]] register to demonstrate the concept. \\+Below is the definition of the [[stm32:peripherals:gpio|GPIO]] registers to illustrate the concept. \\
  
 <code c>typedef struct { <code c>typedef struct {
Line 36: Line 36:
                                      [1]: Bit reset register. */                                      [1]: Bit reset register. */
     volatile uint32_t LCKR;     /**< Port lock register. */     volatile uint32_t LCKR;     /**< Port lock register. */
-    volatile uint32_t AFR[2];   /**< [0]: AF register pin 0..7,  +    volatile uint32_t AFR[2];   /**< [0]: Alternate Function register pin 0..7,  
-                                     [1]: AF register pin 8..15. */+                                     [1]: Alternate Function register pin 8..15. */
 } reg_gpio_t; } reg_gpio_t;
  
Line 55: Line 55:
  
 The GPIO register is mapped to the data type ''reg_gpio_t''. \\ The GPIO register is mapped to the data type ''reg_gpio_t''. \\
-For every GPIO port exists a macro, which is simply a pointer of the type ''reg_gpio_t'' pointing to the registries address. \\+For every GPIO port exists a macro, which is simply a pointer of the type ''reg_gpio_t'' pointing to the registers address. \\
 For convenience there is a special operator ''<nowiki>-></nowiki>'' to dereference a struct (or union) pointer: For convenience there is a special operator ''<nowiki>-></nowiki>'' to dereference a struct (or union) pointer:
 <code c> <code c>
Line 64: Line 64:
 ===== CT Board Registers ===== ===== CT Board Registers =====
  
-The registers of the STM32F429ZI are mostly for configuration purposes, while the registers of the CT Board are mostly holding some kind of data. The data in the CT Board registries can be accessed using different widths, eg. ''uint32_t'' for all DIP switches or ''uint8_t'' for only S7..0. \\+The registers of the STM32F429ZI are mostly for configuration purposes, while the registers of the CT Board are mostly holding some kind of data. The data in the CT Board registers can be accessed using different widths, eg. ''uint32_t'' for all DIP switches or ''uint8_t'' for only S7..0. \\
  
 \\ {{type_combined.svg}} \\ \\ \\ {{type_combined.svg}} \\ \\
  
-Bellow is the definition of the [[ctboard:peripherals:dipsw|DIPSW]] register to demonstrate the concept. \\+Below is the definition of the [[ctboard:peripherals:dipsw|DIPSW]] register to illustrate the concept. \\
  
 <code c>typedef union { <code c>typedef union {
  • software/c/registries.1472629206.txt.gz
  • Last modified: 2016/08/31 07:40
  • by kesr