未验证 提交 21d24d51 编写于 作者: B Bernard Xiong 提交者: GitHub

Merge pull request #3125 from yygg/master

fix warning: #1296-D
......@@ -14,9 +14,9 @@
#include <drv_common.h>
#include <board.h>
#define __STM32_PORT(port) GPIO##port
#define __STM32_PORT(port) GPIO##port##_BASE
#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_PORT(PORTx) - (rt_base_t)GPIOA)/(0x0400UL) )) + PIN)
#define GET_PIN(PORTx,PIN) (rt_base_t)((16 * ( ((rt_base_t)__STM32_PORT(PORTx) - (rt_base_t)GPIOA_BASE)/(0x0400UL) )) + PIN)
#define __STM32_PIN(index, gpio, gpio_index) \
{ \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册