aboutsummaryrefslogtreecommitdiffstats
path: root/demos/ARMCM4-SAM4L/main.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-16 11:49:04 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2013-02-16 11:49:04 +0000
commitee50edb9bdf4ca22185a8cea753ea461d6529173 (patch)
treef4c9c842cd07439c864c8cb27fc78630074e115d /demos/ARMCM4-SAM4L/main.c
parentc34ac9fb5361d0edd8640442b4fc84a16b23595e (diff)
downloadChibiOS-ee50edb9bdf4ca22185a8cea753ea461d6529173.tar.gz
ChibiOS-ee50edb9bdf4ca22185a8cea753ea461d6529173.tar.bz2
ChibiOS-ee50edb9bdf4ca22185a8cea753ea461d6529173.zip
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@5192 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'demos/ARMCM4-SAM4L/main.c')
-rw-r--r--demos/ARMCM4-SAM4L/main.c76
1 files changed, 0 insertions, 76 deletions
diff --git a/demos/ARMCM4-SAM4L/main.c b/demos/ARMCM4-SAM4L/main.c
deleted file mode 100644
index 5a30400f8..000000000
--- a/demos/ARMCM4-SAM4L/main.c
+++ /dev/null
@@ -1,76 +0,0 @@
-/*
- ChibiOS/RT - Copyright (C) 2006,2007,2008,2009,2010,
- 2011,2012,2013 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/>.
-*/
-
-#include "ch.h"
-#include "hal.h"
-//#include "test.h"
-
-/*
- * This is a periodic thread that does absolutely nothing except flashing
- * a LED.
- */
-static WORKING_AREA(waThread1, 128);
-static msg_t Thread1(void *arg) {
-
- (void)arg;
- chRegSetThreadName("blinker");
- while (TRUE) {
- /* TODO */
-// palSetPad(GPIOD, GPIOD_LED3); /* Orange. */
- chThdSleepMilliseconds(500);
-// palClearPad(GPIOD, GPIOD_LED3); /* Orange. */
- chThdSleepMilliseconds(500);
- }
-}
-
-/*
- * Application entry point.
- */
-int main(void) {
-
- /*
- * 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();
- chSysInit();
-
- /* TODO: inialize serial driver 1 or 2 */
-
- /*
- * Creates the example thread.
- */
- chThdCreateStatic(waThread1, sizeof(waThread1), NORMALPRIO, Thread1, NULL);
-
- /*
- * Normal main() thread activity, in this demo it does nothing except
- * sleeping in a loop and check the button state, when the button is
- * pressed the test procedure is launched.
- */
- while (TRUE) {
- /* TODO */
-// if (palReadPad(GPIOA, GPIOA_BUTTON))
-// TestThread(&SD2);
- chThdSleepMilliseconds(500);
- }
-}