aboutsummaryrefslogtreecommitdiff
path: root/stmhal
diff options
context:
space:
mode:
authorDamien George2016-04-22 09:56:02 +0100
committerDamien George2016-04-22 09:56:02 +0100
commit624738ca64c71c8f2cccced3fb5d2380bb4ae56b (patch)
treedbbc9761f856ce801620e97c01da304995453553 /stmhal
parent109990fc322ebf102b6752a47d908cc82a4d3ff7 (diff)
extmod/machine_i2c: Allow mp_hal_pin_obj_t to be any type, not a ptr.
Diffstat (limited to 'stmhal')
-rw-r--r--stmhal/mphalport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stmhal/mphalport.h b/stmhal/mphalport.h
index 65de2ab86..7b29f9c9c 100644
--- a/stmhal/mphalport.h
+++ b/stmhal/mphalport.h
@@ -43,7 +43,7 @@ void mp_hal_set_interrupt_char(int c); // -1 to disable
// C-level pin HAL
#include "stmhal/pin.h"
-#define mp_hal_pin_obj_t pin_obj_t
+#define mp_hal_pin_obj_t pin_obj_t*
#define mp_hal_get_pin_obj(o) (pin_obj_t*)pin_find(o)
#define mp_hal_pin_config_od(p) mp_hal_gpio_config((p)->gpio, (p)->pin, 5, 0, 0)
#define mp_hal_pin_low(p) GPIO_clear_pin((p)->gpio, (p)->pin_mask)