summaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-05-14 12:54:29 +0700
committerhathach <[email protected]>2019-05-14 12:54:29 +0700
commit3e6d911ce9c01729af3b5d3093ccba250dfdfe2e (patch)
tree6693d4080df0cf8b0027e95c42af829d2a942979 /hw
parent81fc7b7e2b035ae1dd72c2e6167ac6d56393de22 (diff)
more clean up use inline bit funciton instead of macros
Diffstat (limited to 'hw')
-rw-r--r--hw/bsp/ea4088qs/board_ea4088qs.c2
-rw-r--r--hw/bsp/ea4357/board_ea4357.c2
-rw-r--r--hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c2
-rw-r--r--hw/bsp/mcb1800/board_mcb1800.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/hw/bsp/ea4088qs/board_ea4088qs.c b/hw/bsp/ea4088qs/board_ea4088qs.c
index 5c89937ec..35baa1a03 100644
--- a/hw/bsp/ea4088qs/board_ea4088qs.c
+++ b/hw/bsp/ea4088qs/board_ea4088qs.c
@@ -123,7 +123,7 @@ void board_led_write(bool state)
#if 0
static bool button_read(uint8_t id)
{
-// return !TU_BIT_TEST( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
+// return !tu_bit_test( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
}
#endif
diff --git a/hw/bsp/ea4357/board_ea4357.c b/hw/bsp/ea4357/board_ea4357.c
index f9ff4d1ca..d02a58b47 100644
--- a/hw/bsp/ea4357/board_ea4357.c
+++ b/hw/bsp/ea4357/board_ea4357.c
@@ -265,7 +265,7 @@ void board_led_write(bool state)
#if 0
static bool button_read(uint8_t id)
{
-// return !TU_BIT_TEST( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
+// return !tu_bit_test( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
}
#endif
diff --git a/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c b/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c
index c91461e80..d0c59e089 100644
--- a/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c
+++ b/hw/bsp/lpcxpresso1769/board_lpcxpresso1769.c
@@ -175,7 +175,7 @@ void board_led_write(bool state)
#if 0
static bool button_read(uint8_t id)
{
-// return !TU_BIT_TEST( GPIO_ReadValue(buttons[id].port), buttons[id].pin ); // button is active low
+// return !tu_bit_test( GPIO_ReadValue(buttons[id].port), buttons[id].pin ); // button is active low
return false;
}
#endif
diff --git a/hw/bsp/mcb1800/board_mcb1800.c b/hw/bsp/mcb1800/board_mcb1800.c
index 6b7655cbc..85fcc2bfb 100644
--- a/hw/bsp/mcb1800/board_mcb1800.c
+++ b/hw/bsp/mcb1800/board_mcb1800.c
@@ -188,7 +188,7 @@ void board_led_write(bool state)
static bool button_read(uint8_t id)
{
(void) id;
-// return !TU_BIT_TEST( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
+// return !tu_bit_test( GPIO_ReadValue(buttons[id].gpio_port), buttons[id].gpio_pin ); // button is active low
return false;
}
*/