bsp/lpc32xx: Add idle thread body

This commit is contained in:
Sebastian Huber
2012-12-17 16:40:23 +01:00
parent 1edaa5fe7b
commit f25d31f52b
3 changed files with 39 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ libbsp_a_SOURCES += misc/restart.c
libbsp_a_SOURCES += misc/system-clocks.c
libbsp_a_SOURCES += misc/timer.c
libbsp_a_SOURCES += misc/nand-select.c
libbsp_a_SOURCES += misc/idle-thread.c
# SSP

View File

@@ -149,6 +149,10 @@ void lpc32xx_select_nand_controller(lpc32xx_nand_controller nand_controller);
void bsp_restart(void *addr);
void *bsp_idle_thread(uintptr_t arg);
#define BSP_IDLE_TASK_BODY bsp_idle_thread
#define BSP_CONSOLE_UART_BASE LPC32XX_BASE_UART_5
/**

View File

@@ -0,0 +1,34 @@
/**
* @file
*
* @ingroup lpc32xx
*
* @brief bsp_idle_thread() implementation.
*/
/*
* Copyright (c) 2012 embedded brains GmbH. All rights reserved.
*
* embedded brains GmbH
* Obere Lagerstr. 30
* 82178 Puchheim
* Germany
* <rtems@embedded-brains.de>
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*/
#include <bsp.h>
#include <libcpu/arm-cp15.h>
void *bsp_idle_thread(uintptr_t arg)
{
while (true) {
arm_cp15_wait_for_interrupt();
}
return NULL;
}