I've got ctags with my vim working. But now I get an error:
Code: Select all
cast to 'GPIO_TypeDef *' from smaller integer type 'unsigned int'
In hall_pal_lld.h (in my case for STM32F103) I found
Code: Select all
/**
* @brief Decodes a port identifier from a line identifier.
*/
#define PAL_PORT(line) \
((GPIO_TypeDef *)(((uint32_t)(line)) & 0xFFFFFFF0U))
a simple
Code: Select all
#define PAL_PORT(line) \
((GPIO_TypeDef *)((size_t)((uint32_t)(line)) & 0xFFFFFFF0U))
will hide this.
Would this be the right way?