From 8b9797269053faa03118bc0656dfd03d558e3136 Mon Sep 17 00:00:00 2001 From: gdisirio Date: Mon, 19 Nov 2012 12:12:16 +0000 Subject: git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4831 35acf78f-673a-0410-8e92-d51de3d6d3f4 --- boards/GENERIC_SPC560B/board.c | 5 +++++ boards/GENERIC_SPC560P/board.c | 5 +++++ demos/PPC-SPC560P-GCC/main.c | 5 +++++ 3 files changed, 15 insertions(+) diff --git a/boards/GENERIC_SPC560B/board.c b/boards/GENERIC_SPC560B/board.c index 85c938005..7b0af53aa 100644 --- a/boards/GENERIC_SPC560B/board.c +++ b/boards/GENERIC_SPC560B/board.c @@ -63,6 +63,11 @@ const PALConfig pal_default_config = void __early_init(void) { spc_clock_init(); + + /* SWT disabled.*/ + SWT.SR.R = 0xC520; + SWT.SR.R = 0xD928; + SWT.CR.R = 0xFF00000A; } /* diff --git a/boards/GENERIC_SPC560P/board.c b/boards/GENERIC_SPC560P/board.c index 85c938005..7b0af53aa 100644 --- a/boards/GENERIC_SPC560P/board.c +++ b/boards/GENERIC_SPC560P/board.c @@ -63,6 +63,11 @@ const PALConfig pal_default_config = void __early_init(void) { spc_clock_init(); + + /* SWT disabled.*/ + SWT.SR.R = 0xC520; + SWT.SR.R = 0xD928; + SWT.CR.R = 0xFF00000A; } /* diff --git a/demos/PPC-SPC560P-GCC/main.c b/demos/PPC-SPC560P-GCC/main.c index b296da222..e3c18471d 100644 --- a/demos/PPC-SPC560P-GCC/main.c +++ b/demos/PPC-SPC560P-GCC/main.c @@ -176,6 +176,11 @@ int main(void) { halInit(); chSysInit(); + /* + * Shell manager initialization. + */ + shellInit(); + /* * Activates the serial driver 1 using the driver default configuration. */ -- cgit v1.2.3