aboutsummaryrefslogtreecommitdiff
path: root/extmod/machine_spi.h
diff options
context:
space:
mode:
authorDamien George2018-03-02 19:12:52 +1100
committerDamien George2018-03-02 23:55:08 +1100
commit21d5527edf37ba550316ea0dbac87253c7791bd1 (patch)
tree3b5ca1e92236af2100ea782bb321bdcc705093b6 /extmod/machine_spi.h
parent4e48700f9a284ab73fc199610314f2f6484adbfc (diff)
extmod/machine_spi: Make SPI protocol structure public.
So it can be referenced directly without the need for the uPy object.
Diffstat (limited to 'extmod/machine_spi.h')
-rw-r--r--extmod/machine_spi.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/extmod/machine_spi.h b/extmod/machine_spi.h
index e24e41eb3..3ee1b241f 100644
--- a/extmod/machine_spi.h
+++ b/extmod/machine_spi.h
@@ -46,6 +46,7 @@ typedef struct _mp_machine_soft_spi_obj_t {
mp_hal_pin_obj_t miso;
} mp_machine_soft_spi_obj_t;
+extern const mp_machine_spi_p_t mp_machine_soft_spi_p;
extern const mp_obj_type_t mp_machine_soft_spi_type;
extern const mp_obj_dict_t mp_machine_spi_locals_dict;