diff options
Diffstat (limited to 'test/hal/testbuild')
-rw-r--r-- | test/hal/testbuild/Makefile | 4 | ||||
-rw-r--r-- | test/hal/testbuild/board.h | 40 | ||||
-rw-r--r-- | test/hal/testbuild/main.c | 2 |
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;
}
|