Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Suggestion Editor text replace
#3
Hai, that's where the ears grow. https://github.com/mirror/scintilla
There is no definition of properties of words ending with "_TypeDef", for this reason auto-substitution is not performed when working with structures with a fixed address. Notepad ++ can't do either. (check)
Code:
typedef struct
{
  __IO uint32_t MODER;    /*!< GPIO port mode register,               Address offset: 0x00      */
  __IO uint32_t OTYPER;   /*!< GPIO port output type register,        Address offset: 0x04      */
  __IO uint32_t OSPEEDR;  /*!< GPIO port output speed register,       Address offset: 0x08      */
  __IO uint32_t PUPDR;    /*!< GPIO port pull-up/pull-down register,  Address offset: 0x0C      */
  __IO uint32_t IDR;      /*!< GPIO port input data register,         Address offset: 0x10      */
  __IO uint32_t ODR;      /*!< GPIO port output data register,        Address offset: 0x14      */
  __IO uint32_t BSRR;     /*!< GPIO port bit set/reset register,      Address offset: 0x18      */
  __IO uint32_t LCKR;     /*!< GPIO port configuration lock register, Address offset: 0x1C      */
  __IO uint32_t AFR[2];   /*!< GPIO alternate function registers,     Address offset: 0x20-0x24 */
} GPIO_TypeDef;

#define PERIPH_BASE            0x40000000UL /*!< Base address of : AHB/ABP Peripherals 
#define AHB1PERIPH_BASE       (PERIPH_BASE + 0x00020000UL)
#define GPIOA_BASE            (AHB1PERIPH_BASE + 0x0000UL)
#define GPIOA               ((GPIO_TypeDef *) GPIOA_BASE)

GPIOA->
Reply


Messages In This Thread
Suggestion Editor text replace - by Aroyer - 29-10-2020, 05:17 PM
RE: Suggestion Editor text replace - by embitz - 02-11-2020, 10:31 AM
RE: Suggestion Editor text replace - by AVI-crak - 03-11-2020, 11:16 PM
RE: Suggestion Editor text replace - by embitz - 04-11-2020, 09:18 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)