Merge pull request #3125 from yygg/master

fix warning: #1296-D
This commit is contained in:
Bernard Xiong 2019-10-18 08:49:11 +08:00 committed by GitHub
commit 21d24d51b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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) \
{ \