aboutsummaryrefslogtreecommitdiffstats
path: root/boards
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-19 12:12:16 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2012-11-19 12:12:16 +0000
commit8b9797269053faa03118bc0656dfd03d558e3136 (patch)
treea2eb6a678309e6ebf502519de17f488e985a0c9e /boards
parent59bb7ed0c624a773630c20cb3cfc85f4d65d5e78 (diff)
downloadChibiOS-8b9797269053faa03118bc0656dfd03d558e3136.tar.gz
ChibiOS-8b9797269053faa03118bc0656dfd03d558e3136.tar.bz2
ChibiOS-8b9797269053faa03118bc0656dfd03d558e3136.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@4831 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'boards')
-rw-r--r--boards/GENERIC_SPC560B/board.c5
-rw-r--r--boards/GENERIC_SPC560P/board.c5
2 files changed, 10 insertions, 0 deletions
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;
}
/*