aboutsummaryrefslogtreecommitdiffstats
path: root/test/hal
diff options
context:
space:
mode:
authorGiovanni Di Sirio <gdisirio@gmail.com>2016-04-03 10:58:22 +0000
committerGiovanni Di Sirio <gdisirio@gmail.com>2016-04-03 10:58:22 +0000
commite558e86d7401239a9ba369bfac298bdead236ecc (patch)
tree89b103e501add373ec4e430c508c3954384b8130 /test/hal
parent8b133b8c181b0a0a5ba9e1f255c36a3b546c750c (diff)
downloadChibiOS-e558e86d7401239a9ba369bfac298bdead236ecc.tar.gz
ChibiOS-e558e86d7401239a9ba369bfac298bdead236ecc.tar.bz2
ChibiOS-e558e86d7401239a9ba369bfac298bdead236ecc.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@9233 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/hal')
-rw-r--r--test/hal/testbuild/Makefile4
-rw-r--r--test/hal/testbuild/board.h40
-rw-r--r--test/hal/testbuild/main.c2
3 files changed, 4 insertions, 42 deletions
diff --git a/test/hal/testbuild/Makefile b/test/hal/testbuild/Makefile
index 6cb730058..165ff35cd 100644
--- a/test/hal/testbuild/Makefile
+++ b/test/hal/testbuild/Makefile
@@ -91,8 +91,8 @@ CHIBIOS = ../../..
include $(CHIBIOS)/os/common/startup/ARMCMx/compilers/GCC/mk/startup_stm32f4xx.mk
# HAL-OSAL files (optional).
include $(CHIBIOS)/os/hal/hal.mk
-include $(CHIBIOS)/os/hal/templates/platform.mk
-#include $(CHIBIOS)/os/hal/boards/xxxxxxx/board.mk
+include $(CHIBIOS)/os/hal/ports/common/platform.mk
+include $(CHIBIOS)/os/hal/templates/board/board.mk
include $(CHIBIOS)/os/hal/templates/osal/osal.mk
# RTOS files (optional).
#include $(CHIBIOS)/os/rt/rt.mk
diff --git a/test/hal/testbuild/board.h b/test/hal/testbuild/board.h
deleted file mode 100644
index 408cbb918..000000000
--- a/test/hal/testbuild/board.h
+++ /dev/null
@@ -1,40 +0,0 @@
-/*
- ChibiOS - Copyright (C) 2006..2016 Giovanni Di Sirio
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
-*/
-
-#ifndef BOARD_H
-#define BOARD_H
-
-/*
- * Setup for a generic board.
- */
-
-/*
- * Board identifier.
- */
-#define BOARD_GENERIC
-#define BOARD_NAME "Generic Board"
-
-#if !defined(_FROM_ASM_)
-#ifdef __cplusplus
-extern "C" {
-#endif
- void boardInit(void);
-#ifdef __cplusplus
-}
-#endif
-#endif /* _FROM_ASM_ */
-
-#endif /* BOARD_H */
diff --git a/test/hal/testbuild/main.c b/test/hal/testbuild/main.c
index 6d9c03d46..505ef03bd 100644
--- a/test/hal/testbuild/main.c
+++ b/test/hal/testbuild/main.c
@@ -24,5 +24,7 @@ int main(int argc, char *argv[]) {
(void)argc;
(void)argv;
+ halInit();
+
return 0;
}