summaryrefslogtreecommitdiff
path: root/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-22 17:53:47 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2013-02-22 17:53:47 +0000
commit8acb89e0800041b91f88c01e241d60d2c19ae852 (patch)
tree09fe1cbceab5d872590a81d43e81cf8e9c4e3f08 /nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h
parent0c1146c6ec030baaba0060e5121071d7f43fdccc (diff)
downloadpx4-nuttx-8acb89e0800041b91f88c01e241d60d2c19ae852.tar.gz
px4-nuttx-8acb89e0800041b91f88c01e241d60d2c19ae852.tar.bz2
px4-nuttx-8acb89e0800041b91f88c01e241d60d2c19ae852.zip
Finishes basic UART and serial console code for NUC120
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@5661 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h')
-rw-r--r--nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h21
1 files changed, 21 insertions, 0 deletions
diff --git a/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h b/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h
index 7561895c5..92232b395 100644
--- a/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h
+++ b/nuttx/arch/arm/src/nuc1xx/nuc_lowputc.h
@@ -79,6 +79,27 @@ extern "C"
void nuc_lowsetup(void);
+/****************************************************************************
+ * Name: nuc_setbaud
+ *
+ * Description:
+ * Set the BAUD divxisor for the selected UART
+ *
+ * Mode DIV_X_EN DIV_X_ONE Divider X BRD (Baud rate equation)
+ * -------------------------------------------------------------
+ * 0 Disable 0 B A UART_CLK / [16 * (A+2)]
+ * 1 Enable 0 B A UART_CLK / [(B+1) * (A+2)] , B must >= 8
+ * 2 Enable 1 Don't care A UART_CLK / (A+2), A must >=3
+ *
+ * Here we assume that the default clock source for the UART modules is
+ * the external high speed crystal.
+ *
+ *****************************************************************************/
+
+#ifdef HAVE_UART
+void nuc_setbaud(uintptr_t base, uint32_t baud)
+#endif
+
#undef EXTERN
#if defined(__cplusplus)
}