Ignore:
Timestamp:
May 22, 2001, 11:07:09 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
2e7ed911
Parents:
e2040ba
Message:

2001-05-22 Greg Menke <gregory.menke@…>

  • Assisted in design and debug by Joel Sherrill <joel@…>.
  • clock/clockdrv.c, console/conscfg.c: Corrected.
  • include/bsp.h: Support for tm27 and addition of CPU_CLOCK_RATE.
  • startup/bspstart.c: Properly set initial status register and pending interrupts.
  • timer/timer.c: Works now.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/mips/genmongoosev/include/bsp.h

    re2040ba ra355e3ea  
    2727#include <libcpu/mongoose-v.h>
    2828
     29
     30#ifndef CPU_CLOCK_RATE
     31#define CLOCK_RATE      12000000
     32#endif
     33
     34#define CPU_CLOCK_RATE_HZ       CLOCK_RATE
     35#define CPU_CLOCK_RATE_MHZ      (CLOCK_RATE/1000000)
     36
     37
     38/*
     39 * Useful defines set here so we can avoid duplicating them all over
     40 * creation.
     41 *
     42 */
     43
     44
     45
     46/*
     47 * assertSoftwareInt defined in vectorisrs.c the prototype is here so
     48 * userspace code can get to it directly.
     49 *  */
     50
     51extern void assertSoftwareInterrupt(unsigned32);
     52
     53
     54
     55
     56
    2957/*
    3058 *  Define the time limits for RTEMS Test Suite test durations.
     
    4573 */
    4674
     75
     76#define CLOCK_VECTOR    MONGOOSEV_IRQ_TIMER1
     77
     78
    4779#define MUST_WAIT_FOR_INTERRUPT 1
    4880
    49 #if 0
     81#if 1
     82
    5083#define Install_tm27_vector( handler ) \
    51     (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 ); \
     84    (void) set_vector( handler, MONGOOSEV_IRQ_SOFTWARE_1, 1 );
    5285
    53 #define Cause_tm27_intr() \
    54     asm volatile ( "syscall 0x01" : : );
    5586
    56 #define CLOCK_VECTOR MONGOOSEV_IRQ_TMR0
     87
     88#define Cause_tm27_intr()   assertSoftwareInterrupt(0);
    5789
    5890#define Clear_tm27_intr() 
     91#define Lower_tm27_intr()
    5992
    60 #define Lower_tm27_intr()
    6193#else
     94
    6295#define Install_tm27_vector( handler ) \
    63     (void) set_vector( handler, MONGOOSEV_IRQ_TMR0, 1 ); \
     96    (void) set_vector( handler, MONGOOSEV_IRQ_TIMER1, 1 );
    6497
    6598#define Cause_tm27_intr() \
     
    69102
    70103#define Clear_tm27_intr()
    71 
    72104#define Lower_tm27_intr()
    73105
Note: See TracChangeset for help on using the changeset viewer.