diff options
author | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:38:07 +0000 |
---|---|---|
committer | gdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4> | 2010-12-19 11:38:07 +0000 |
commit | 7c1828c96c3b05cba909d6051d112725f2310d66 (patch) | |
tree | 4641b3bf1e27b13137d7e68c194fd4884f9a3cec /demos | |
parent | c574cd3f8b97c0800b20ea7af9d6a6a4be9378fd (diff) | |
download | ChibiOS-7c1828c96c3b05cba909d6051d112725f2310d66.tar.gz ChibiOS-7c1828c96c3b05cba909d6051d112725f2310d66.tar.bz2 ChibiOS-7c1828c96c3b05cba909d6051d112725f2310d66.zip |
Updated Posix simulator.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2508 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos')
-rw-r--r-- | demos/Posix-GCC/Makefile | 5 | ||||
-rw-r--r-- | demos/Posix-GCC/board.h | 23 | ||||
-rw-r--r-- | demos/Posix-GCC/main.c | 10 |
3 files changed, 9 insertions, 29 deletions
diff --git a/demos/Posix-GCC/Makefile b/demos/Posix-GCC/Makefile index 37caaf9bd..3a8b43c90 100644 --- a/demos/Posix-GCC/Makefile +++ b/demos/Posix-GCC/Makefile @@ -57,6 +57,7 @@ UADEFS = # Imported source files
CHIBIOS = ../..
+include $(CHIBIOS)/boards/simulator/board.mk
include ${CHIBIOS}/os/hal/hal.mk
include ${CHIBIOS}/os/hal/platforms/Posix/platform.mk
include ${CHIBIOS}/os/ports/GCC/SIMIA32/port.mk
@@ -69,6 +70,7 @@ SRC = ${PORTSRC} \ ${TESTSRC} \
${HALSRC} \
${PLATFORMSRC} \
+ $(BOARDSRC) \
${CHIBIOS}/os/various/shell.c \
main.c
@@ -76,7 +78,8 @@ SRC = ${PORTSRC} \ ASRC =
# List all user directories here
-UINCDIR = $(PORTINC) $(KERNINC) $(TESTINC) $(HALINC) $(PLATFORMINC) \
+UINCDIR = $(PORTINC) $(KERNINC) $(TESTINC) \
+ $(HALINC) $(PLATFORMINC) $(BOARDINC) \
${CHIBIOS}/os/various
# List the user directory to look for the libraries here
diff --git a/demos/Posix-GCC/board.h b/demos/Posix-GCC/board.h deleted file mode 100644 index 7b89d92d0..000000000 --- a/demos/Posix-GCC/board.h +++ /dev/null @@ -1,23 +0,0 @@ -/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010 Giovanni Di Sirio.
-
- This file is part of ChibiOS/RT.
-
- ChibiOS/RT is free software; you can redistribute it and/or modify
- it under the terms of the GNU General Public License as published by
- the Free Software Foundation; either version 3 of the License, or
- (at your option) any later version.
-
- ChibiOS/RT is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General Public License for more details.
-
- You should have received a copy of the GNU General Public License
- along with this program. If not, see <http://www.gnu.org/licenses/>.
-*/
-
-#ifndef _BOARD_H_
-#define _BOARD_H_
-
-#endif /* _BOARD_H_ */
diff --git a/demos/Posix-GCC/main.c b/demos/Posix-GCC/main.c index 28e136bc8..fdce30ffd 100644 --- a/demos/Posix-GCC/main.c +++ b/demos/Posix-GCC/main.c @@ -169,13 +169,13 @@ int main(void) { EventListener sd1fel, sd2fel, tel;
/*
- * HAL initialization.
+ * System initializations.
+ * - HAL initialization, this also initializes the configured device drivers
+ * and performs the board-specific initializations.
+ * - Kernel initialization, the main() function becomes a thread and the
+ * RTOS is active.
*/
halInit();
-
- /*
- * ChibiOS/RT initialization.
- */
chSysInit();
/*
|