From 073df6d28c6528f6ed1e3e1d083c626e725d6a39 Mon Sep 17 00:00:00 2001 From: patacongo Date: Wed, 21 Dec 2011 15:50:06 +0000 Subject: [PATCH] Add the beginning of an STM32 CAN driver git-svn-id: https://nuttx.svn.sourceforge.net/svnroot/nuttx/trunk@4209 7fd9a85b-ad96-42d3-883c-3090e2eb8679 --- nuttx/ChangeLog | 2 + nuttx/Documentation/NuttxPortingGuide.html | 60 +- nuttx/arch/arm/src/lpc17xx/Make.defs | 13 +- nuttx/arch/arm/src/stm32/Make.defs | 6 +- nuttx/arch/arm/src/stm32/stm32_can.c | 761 ++++++++++++++++++ nuttx/arch/arm/src/stm32/stm32_pwm.c | 2 +- nuttx/configs/README.txt | 9 + nuttx/configs/hymini-stm32v/README.txt | 14 +- nuttx/configs/stm3210e-eval/README.txt | 11 + nuttx/configs/stm3240g-eval/README.txt | 11 + nuttx/configs/stm3240g-eval/dhcpd/defconfig | 18 + nuttx/configs/stm3240g-eval/nettest/defconfig | 18 + nuttx/configs/stm3240g-eval/nsh/defconfig | 18 + nuttx/configs/stm3240g-eval/ostest/defconfig | 18 + nuttx/drivers/Makefile | 7 +- nuttx/drivers/can.c | 29 +- nuttx/include/nuttx/can.h | 23 +- 17 files changed, 986 insertions(+), 34 deletions(-) create mode 100755 nuttx/arch/arm/src/stm32/stm32_can.c diff --git a/nuttx/ChangeLog b/nuttx/ChangeLog index 061be118e3..288bf20291 100644 --- a/nuttx/ChangeLog +++ b/nuttx/ChangeLog @@ -2286,5 +2286,7 @@ * drivers/mtd/mp25x.c: Add ability to use different SPI modes and different manufacturers codes. Fix a error in the wait for not busy (submitted by Mohammad Elwakeel. + * arch/arm/src/stm32/stm32_can.c. Add a low-level STM32 CAN driver. (Initial + check is incomplete). diff --git a/nuttx/Documentation/NuttxPortingGuide.html b/nuttx/Documentation/NuttxPortingGuide.html index 293b7d683c..f68dc3d796 100644 --- a/nuttx/Documentation/NuttxPortingGuide.html +++ b/nuttx/Documentation/NuttxPortingGuide.html @@ -12,7 +12,7 @@

NuttX RTOS Porting Guide

-

Last Updated: December 19, 2011

+

Last Updated: December 21, 2011

@@ -127,7 +127,8 @@ 6.3.9 USB Host-Side Drivers
6.3.10 USB Device-Side Drivers
6.3.11 Analog (ADC/DAC) Drivers
- 6.3.12 PWM Drivers + 6.3.12 PWM Drivers
+ 6.3.13 CAN Drivers 6.4 Power Management +

CAN driver

+ +

SPI driver