Changeset 0fed29a in rtems for c/src/lib


Ignore:
Timestamp:
Aug 19, 2009, 4:05:38 PM (11 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 5, master
Children:
b181c30
Parents:
a1f0ca28
Message:

2009-08-19 Joel Sherrill <joel.sherrill@…>

  • Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into its own file. Properly note to confdefs.h that this BSP has its own idle thread.
  • startup/bspidle.c: New file.
Location:
c/src/lib/libbsp/sparc/erc32
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/sparc/erc32/ChangeLog

    ra1f0ca28 r0fed29a  
     12009-08-19      Joel Sherrill <joel.sherrill@OARcorp.com>
     2
     3        * Makefile.am, include/bsp.h, startup/setvec.c: Split idle method into
     4        its own file. Properly note to confdefs.h that this BSP has its own
     5        idle thread.
     6        * startup/bspidle.c: New file.
     7
    182009-07-16      Joel Sherrill <joel.sherrill@oarcorp.com>
    29
  • c/src/lib/libbsp/sparc/erc32/Makefile.am

    ra1f0ca28 r0fed29a  
    3939    ../../shared/bsppost.c ../../sparc/shared/bspstart.c \
    4040    ../../shared/bootcard.c ../../shared/sbrk.c startup/setvec.c \
    41     startup/spurious.c startup/erc32mec.c startup/boardinit.S
     41    startup/spurious.c startup/erc32mec.c startup/boardinit.S \
     42    startup/bspidle.c
    4243# gnatsupp
    4344libbsp_a_SOURCES += gnatsupp/gnatsupp.c ../../sparc/shared/gnatcommon.c
  • c/src/lib/libbsp/sparc/erc32/include/bsp.h

    ra1f0ca28 r0fed29a  
    3737
    3838/*
    39  *  confdefs.h overrides for this BSP:
    40  *   - two termios serial ports
    41  *   - Interrupt stack space is not minimum if defined.
     39 *  BSP provides its own Idle thread body
    4240 */
    43 
    44 #define CONFIGURE_NUMBER_OF_TERMIOS_PORTS 2
     41void *bsp_idle_thread( uintptr_t ignored );
     42#define BSP_IDLE_TASK_BODY bsp_idle_thread
    4543
    4644/*
    4745 * Network driver configuration
    4846 */
    49 
    5047struct rtems_bsdnet_ifconfig;
    51 extern int rtems_erc32_sonic_driver_attach (struct rtems_bsdnet_ifconfig *config);
     48extern int rtems_erc32_sonic_driver_attach(
     49  struct rtems_bsdnet_ifconfig *config
     50);
    5251#define RTEMS_BSP_NETWORK_DRIVER_NAME   "sonic1"
    5352#define RTEMS_BSP_NETWORK_DRIVER_ATTACH rtems_erc32_sonic_driver_attach
     
    5756 *  This is very dependent on the clock speed of the target.
    5857 */
    59 
    60 extern void Clock_delay(uint32_t         microseconds);
     58extern void Clock_delay(uint32_t microseconds);
    6159
    6260#define delay( microseconds ) Clock_delay(microseconds)
  • c/src/lib/libbsp/sparc/erc32/startup/setvec.c

    ra1f0ca28 r0fed29a  
    6060  return previous_isr;
    6161}
    62 
    63 /* ERC32 power-down function */
    64 
    65 void *_CPU_Thread_Idle_body( uintptr_t ignored )
    66 {
    67   while (1) {
    68     ERC32_MEC.Power_Down = 0;   /* value is irrelevant */
    69   }
    70 }
Note: See TracChangeset for help on using the changeset viewer.