mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 14:47:46 +01:00
gpio.h: Add proper parenthesis to JZ_GPIO_PORTX macros
SVN-Revision: 19983
This commit is contained in:
parent
020df2b0dc
commit
d9e32f1932
@ -76,10 +76,10 @@ uint32_t jz_gpio_port_get_value(int port, uint32_t mask);
|
||||
|
||||
#include <asm/mach-generic/gpio.h>
|
||||
|
||||
#define JZ_GPIO_PORTA(x) (x + 32 * 0)
|
||||
#define JZ_GPIO_PORTB(x) (x + 32 * 1)
|
||||
#define JZ_GPIO_PORTC(x) (x + 32 * 2)
|
||||
#define JZ_GPIO_PORTD(x) (x + 32 * 3)
|
||||
#define JZ_GPIO_PORTA(x) ((x) + 32 * 0)
|
||||
#define JZ_GPIO_PORTB(x) ((x) + 32 * 1)
|
||||
#define JZ_GPIO_PORTC(x) ((x) + 32 * 2)
|
||||
#define JZ_GPIO_PORTD(x) ((x) + 32 * 3)
|
||||
|
||||
/* Port A function pins */
|
||||
#define JZ_GPIO_MEM_DATA0 JZ_GPIO_PORTA(0)
|
||||
|
Loading…
Reference in New Issue
Block a user