mbed library sources for GR-PEACH rev.B.
Fork of mbed-src by
Diff: targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h
- Revision:
- 500:04797f1feae2
- Parent:
- 460:3bcf9be0332c
--- a/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h Sat Mar 28 08:15:07 2015 +0000 +++ b/targets/hal/TARGET_RENESAS/TARGET_RZ_A1H/gpio_object.h Tue Mar 31 16:15:13 2015 +0100 @@ -33,10 +33,7 @@ } gpio_t; static inline void gpio_write(gpio_t *obj, int value) { - if (value) - *obj->reg_set |= obj->mask; - else - *obj->reg_set &= ~obj->mask; + *obj->reg_set = (obj->mask << 16) | ((value != 0) ? obj->mask : 0); } static inline int gpio_read(gpio_t *obj) {