MCP2515 CAN library
Fork of mcp2515 by
Diff: mcp2515.cpp
- Revision:
- 9:d50f103848e0
- Parent:
- 6:36e854e627f6
- Child:
- 10:6d6fd99da044
diff -r 872137b3a8a8 -r d50f103848e0 mcp2515.cpp --- a/mcp2515.cpp Mon Oct 18 13:40:02 2010 +0000 +++ b/mcp2515.cpp Thu Dec 29 22:11:30 2016 +0000 @@ -27,7 +27,7 @@ * Version : 0.1 * * All credits to the nerds above, this source has been adapted for the - * LPC1768 platform by J.Engelman. And does'nt require and of the copyrighted + * LPC1768 platform by J.Engelman. And doesn't require and of the copyrighted * SPI or AVR controller code that Martin or co have excluded copyright. * This module remains free. * @@ -130,7 +130,7 @@ //struct mcp251x_platform_data *pdata = spi->dev.platform_data; printf("\n\rcanspeed=%d",bit_rate); - int f_osc = 16000000; //4000000; //4Mhz + int f_osc = 20000000; //4000000; //4Mhz int tqs; /* tbit/TQ */ int brp; int ps1, ps2, propseg, sjw;