forked from Imagelibrary/rtems
arm/gp32: Correct compilation error in BSP Idle Thread
Split BSP Idle Thread into separate file to follow convention used on other BSPs. Slight reformatting of file header comment block.
This commit is contained in:
@@ -30,7 +30,7 @@ libbsp_a_SOURCES =
|
||||
# startup
|
||||
libbsp_a_SOURCES += ../../shared/bsplibc.c ../../shared/bsppost.c \
|
||||
../../shared/bsppredriverhook.c ../../shared/bspgetworkarea.c \
|
||||
../../shared/bsppretaskinghook.c startup/bspstart.c \
|
||||
../../shared/bsppretaskinghook.c startup/bspstart.c startup/bspidle.c \
|
||||
../../shared/bspclean.c startup/bspreset.c \
|
||||
startup/memmap.c ../../shared/bootcard.c ../../shared/sbrk.c \
|
||||
../../shared/gnatinstallhandler.c
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* This include file contains definitions related to the GP32 BSP.
|
||||
* This include file contains definitions related to the GP32 BSP.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) Canon Research France SA.]
|
||||
* Emmanuel Raguet, mailto:raguet@crf.canon.fr
|
||||
* Copyright (c) Canon Research France SA.]
|
||||
* Emmanuel Raguet, mailto:raguet@crf.canon.fr
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
* found in the file LICENSE in this distribution or at
|
||||
@@ -59,13 +59,13 @@ void gp32_setPalette( unsigned char pos, uint16_t color);
|
||||
|
||||
|
||||
/*
|
||||
* This BSP provides its own IDLE task to override the RTEMS one.
|
||||
* This BSP provides its own IDLE thread to override the RTEMS one.
|
||||
* So we prototype it and define the constant confdefs.h expects
|
||||
* to configure a BSP specific one.
|
||||
*/
|
||||
Thread bsp_idle_task(uint32_t);
|
||||
void *bsp_idle_thread(uintptr_t ignored);
|
||||
|
||||
#define BSP_IDLE_TASK_BODY bsp_idle_task
|
||||
#define BSP_IDLE_TASK_BODY bsp_idle_thread
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
||||
23
c/src/lib/libbsp/arm/gp32/startup/bspidle.c
Normal file
23
c/src/lib/libbsp/arm/gp32/startup/bspidle.c
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* BSP specific Idle thread
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Canon Research Centre France SA.
|
||||
* Emmanuel Raguet, mailto:raguet@crf.canon.fr
|
||||
*
|
||||
* 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>
|
||||
|
||||
void *bsp_idle_thread(uintptr_t ignored)
|
||||
{
|
||||
while(1) {
|
||||
__asm__ volatile ("MCR p15,0,r0,c7,c0,4 \n");
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
* This file contains the ARM BSP startup package. It includes application,
|
||||
* board, and monitor specific initialization and configuration. The generic CPU
|
||||
* dependent initialization has been performed before this routine is invoked.
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (c) 2000 Canon Research Centre France SA.
|
||||
* Emmanuel Raguet, mailto:raguet@crf.canon.fr
|
||||
*
|
||||
*
|
||||
* Copyright (c) 2000 Canon Research Centre France SA.
|
||||
* Emmanuel Raguet, mailto:raguet@crf.canon.fr
|
||||
*
|
||||
* 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.
|
||||
* 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>
|
||||
@@ -22,16 +23,6 @@
|
||||
*/
|
||||
extern void rtems_exception_init_mngt(void);
|
||||
|
||||
/*
|
||||
* BSP specific Idle task
|
||||
*/
|
||||
Thread bsp_idle_task(uint32_t ignored)
|
||||
{
|
||||
while(1) {
|
||||
__asm__ volatile ("MCR p15,0,r0,c7,c0,4 \n");
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* BSP Specific Initialization in C
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user