Seed can implementation

Fork of SEEED_CAN by Sophie Dexter

Files at this revision

API Documentation at this revision

Comitter:
lightway
Date:
Fri Mar 10 06:26:20 2017 +0000
Parent:
3:5006c41abab5
Commit message:
Sample CAN message;

Changed in this revision

seeed_can.h Show annotated file Show diff for this revision Revisions of this file
diff -r 5006c41abab5 -r 5c9a071a4c07 seeed_can.h
--- a/seeed_can.h	Mon Jan 30 10:26:58 2017 +0000
+++ b/seeed_can.h	Fri Mar 10 06:26:20 2017 +0000
@@ -80,7 +80,7 @@
     SEEED_CAN(PinName ncs=SEEED_CAN_CS, PinName irq=SEEED_CAN_IRQ, PinName mosi=SEEED_CAN_MOSI, PinName miso=SEEED_CAN_MISO, PinName clk=SEEED_CAN_CLK, int spiBitrate=1000000);
 #elif defined __LPC17xx_H__                                             // defined in LPC17xx.h
     //SEEED_CAN(PinName ncs=p9, PinName irq=p10, PinName mosi=p11, PinName miso=p12, PinName clk=p13, int spiBitrate=1000000);
-    SEEED_CAN(PinName ncs=p9, PinName irq=p10, PinName mosi=p5, PinName miso=p6, PinName clk=p7, int spiBitrate=1000000);
+    SEEED_CAN(PinName ncs=p11, PinName irq=p12, PinName mosi=p5, PinName miso=p6, PinName clk=p7, int spiBitrate=1000000);
 #else                                                                   // No default constructor for other...
     SEEED_CAN(PinName ncs, PinName irq, PinName mosi, PinName miso, PinName clk, int spiBitrate=1000000);
 #endif