aboutsummaryrefslogtreecommitdiffstats
path: root/demos
diff options
context:
space:
mode:
authorRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2017-09-17 21:14:55 +0000
committerRocco Marco Guglielmi <roccomarco.guglielmi@gmail.com>2017-09-17 21:14:55 +0000
commit5d68a9bbf0ede82f82e099e2cb9c782cb523a49d (patch)
tree8aa61dddfdc0b28fb4e675027e0e3d78fbd36c55 /demos
parent908373b487072d551d98059af63ce362dcc652fa (diff)
downloadChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.tar.gz
ChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.tar.bz2
ChibiOS-5d68a9bbf0ede82f82e099e2cb9c782cb523a49d.zip
Minor fix on default demo and PAL driver
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10631 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rwxr-xr-xdemos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
index e06c3471d..75977385c 100755
--- a/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
+++ b/demos/ATSAMA5D2/RT-SAMA5D2-XPLAINED/main.c
@@ -52,6 +52,9 @@ int main(void) {
*/
sdStart(&SD0, NULL);
+ /* Redirecting UART0 RX on PB26 and UART0 TX on PB 27. */
+ palSetGroupMode(PIOB, PAL_PORT_BIT(26) | PAL_PORT_BIT(27), 0U,
+ PAL_SAMA_FUNC_PERIPH_C);
/*
* Creates the blinker thread.
*/