git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9203 35acf78f-673a-0410-8e92-d51de3d6d3f4

This commit is contained in:
Giovanni Di Sirio 2016-04-02 07:36:02 +00:00
parent aed82faf72
commit 32868225ce
31 changed files with 25 additions and 35 deletions

View File

@ -93,7 +93,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F072xB.ld LDSCRIPT= $(STARTUPLD)/STM32F072xB.ld

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -171,29 +171,29 @@ CH_FAST_IRQ_HANDLER(Vector184) {
static void print(char *p) { static void print(char *p) {
while (*p) { while (*p) {
chSequentialStreamPut(&SD2, *p++); streamPut(&SD2, *p++);
} }
} }
static void println(char *p) { static void println(char *p) {
while (*p) { while (*p) {
chSequentialStreamPut(&SD2, *p++); streamPut(&SD2, *p++);
} }
chSequentialStreamWrite(&SD2, (uint8_t *)"\r\n", 2); streamWrite(&SD2, (uint8_t *)"\r\n", 2);
} }
static void printn(uint32_t n) { static void printn(uint32_t n) {
char buf[16], *p; char buf[16], *p;
if (!n) if (!n)
chSequentialStreamPut(&SD2, '0'); streamPut(&SD2, '0');
else { else {
p = buf; p = buf;
while (n) while (n)
*p++ = (n % 10) + '0', n /= 10; *p++ = (n % 10) + '0', n /= 10;
while (p > buf) while (p > buf)
chSequentialStreamPut(&SD2, *--p); streamPut(&SD2, *--p);
} }
} }

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "shell.h" #include "shell.h"
#include "chprintf.h" #include "chprintf.h"

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld LDSCRIPT= $(STARTUPLD)/STM32F746xG.ld

View File

@ -19,7 +19,6 @@
#include "ch.h" #include "ch.h"
#include "hal.h" #include "hal.h"
#include "test.h"
#include "usbcfg.h" #include "usbcfg.h"

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v6m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld LDSCRIPT= $(STARTUPLD)/STM32L053x8.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld LDSCRIPT= $(STARTUPLD)/STM32L152xB.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld

View File

@ -98,7 +98,7 @@ include $(CHIBIOS)/os/hal/osal/rt/osal.mk
include $(CHIBIOS)/os/rt/rt.mk include $(CHIBIOS)/os/rt/rt.mk
include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk include $(CHIBIOS)/os/common/ports/ARMCMx/compilers/GCC/mk/port_v7m.mk
# Other files (optional). # Other files (optional).
include $(CHIBIOS)/test/rt/test.mk #include $(CHIBIOS)/test/rt/test.mk
# Define linker script file here # Define linker script file here
LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld LDSCRIPT= $(STARTUPLD)/STM32L476xG.ld