forked from Imagelibrary/rtems
bsp/lpc32xx: Add idle thread body
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
/**
|
||||
|
||||
34
c/src/lib/libbsp/arm/lpc32xx/misc/idle-thread.c
Normal file
34
c/src/lib/libbsp/arm/lpc32xx/misc/idle-thread.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user