summaryrefslogtreecommitdiffstatshomepage
path: root/stmhal/can.h
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-05-27 16:51:04 +0100
committerDamien George <damien.p.george@gmail.com>2015-05-27 16:51:04 +0100
commit1775b65e07fae808dc50f9cee2005608cd3a26de (patch)
tree128a45e0be3e09165980c94bfe3614309123077b /stmhal/can.h
parent9ae3fc65235303322ef5282d3cdd4ca99a2c37cc (diff)
downloadmicropython-1775b65e07fae808dc50f9cee2005608cd3a26de.tar.gz
micropython-1775b65e07fae808dc50f9cee2005608cd3a26de.zip
stmhal: Remove PYBVxx defines and use config vars for UART/CAN names.
Now all stmhal-based boards can name their peripherals (if they want) to any string.
Diffstat (limited to 'stmhal/can.h')
-rw-r--r--stmhal/can.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/stmhal/can.h b/stmhal/can.h
index b9d431e79b..4d4b1bb833 100644
--- a/stmhal/can.h
+++ b/stmhal/can.h
@@ -27,12 +27,6 @@
#define PYB_CAN_1 (1)
#define PYB_CAN_2 (2)
-// aliases for pyboard
-#if defined(PYBV10)
-#define PYB_CAN_YA PYB_CAN_1 // CAN1 on RX,TX = Y3,Y4 = PB8,PB9
-#define PYB_CAN_YB PYB_CAN_2 // CAN2 on RX,TX = Y5,Y6 = PB12,PB13
-#endif
-
extern const mp_obj_type_t pyb_can_type;
void can_init0(void);