summaryrefslogtreecommitdiff
path: root/lib_arm
diff options
context:
space:
mode:
authorJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-02-22 15:49:28 +0100
committerJean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>2009-02-22 15:49:28 +0100
commit4f5728987f4f9f7845688482aa2b7f2127768165 (patch)
treee5ddb625e83ddaa8101528de0838f593f3fae318 /lib_arm
parent0cd18fa982f9a8c1a90ce971379a7d6408976d48 (diff)
arm: add uart dcc support
Serial driver via the EmbeddedICE macrocell's DCC channel using co-processor 14. It does include a timeout to ensure that the system does not totally freeze when there is nothing connected to read. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'lib_arm')
-rw-r--r--lib_arm/board.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib_arm/board.c b/lib_arm/board.c
index f125d38b0b6..09eaaf25c41 100644
--- a/lib_arm/board.c
+++ b/lib_arm/board.c
@@ -145,6 +145,9 @@ void inline yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off")))
* but let's get it working (again) first...
*/
+#if defined(CONFIG_ARM_DCC) && !defined(CONFIG_BAUDRATE)
+#define CONFIG_BAUDRATE 115200
+#endif
static int init_baudrate (void)
{
char tmp[64]; /* long enough for environment variables */