summaryrefslogtreecommitdiff
path: root/nuttx/configs/stm3240g-eval/include
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-19 23:06:41 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2011-12-19 23:06:41 +0000
commit5fb7939d769fb3f1f84721cb0056d0cc621f05e2 (patch)
treeeadad8142fada4d8cb57c09e438d6535bbd65d53 /nuttx/configs/stm3240g-eval/include
parentef92b45bc404a1aaf0ab43a1603712f9bfc72311 (diff)
downloadpx4-nuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.tar.gz
px4-nuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.tar.bz2
px4-nuttx-5fb7939d769fb3f1f84721cb0056d0cc621f05e2.zip
Add a test for PWM drivers
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@4202 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/configs/stm3240g-eval/include')
-rwxr-xr-xnuttx/configs/stm3240g-eval/include/board.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/nuttx/configs/stm3240g-eval/include/board.h b/nuttx/configs/stm3240g-eval/include/board.h
index 663ad7eda..ba1016910 100755
--- a/nuttx/configs/stm3240g-eval/include/board.h
+++ b/nuttx/configs/stm3240g-eval/include/board.h
@@ -263,6 +263,19 @@
#define GPIO_ETH_RMII_TXD0 GPIO_ETH_RMII_TXD0_2
#define GPIO_ETH_RMII_TXD1 GPIO_ETH_RMII_TXD1_2
+/* PWM
+ *
+ * The STM3240G-Eval has no real on-board PWM devices, but the board can be configured to output
+ * a pulse train using TIM4 CH2. This pin is used by FSMC is connect to CN5 just for this
+ * purpose:
+ *
+ * PD13 FSMC_A18 / MC_TIM4_CH2 pin 33 (EnB)
+ *
+ * FSMC must be disabled in this case!
+ */
+
+#define GPIO_TIM4_CH2 GPIO_TIM4_CH2_1
+
/************************************************************************************
* Public Data
************************************************************************************/