Changeset 8b61cb4 in multiio


Ignore:
Timestamp:
Dec 11, 2009, 3:32:28 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
master
Children:
5ebe1e8
Parents:
65bf116
Message:

2009-12-11 Joel Sherrill <joel.sherrill@…>

  • README: Add list of new methods.
  • mio_io.h, mio_io_rtems.c: Add dio_get_missed_interrupts() with no tracking of missed interrupts since will switch to message queues.
Location:
pcmmio/original
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pcmmio/original/ChangeLog

    r65bf116 r8b61cb4  
     12009-12-11      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * README: Add list of new methods.
     4        * mio_io.h, mio_io_rtems.c: Add dio_get_missed_interrupts() with
     5        no tracking of missed interrupts since will switch to message queues.
     6
    172009-10-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    28
  • pcmmio/original/README

    r65bf116 r8b61cb4  
    2121+ We want to timestamp samples and the initial code did not do that.  I
    2222  added this.
     23
     24New Methods
     25===========
     26  void pcmmio_initialize(
     27    unsigned short _base_port,
     28    unsigned short _irq
     29  );
     30
     31  void flush_buffered_ints(void);
     32
     33  int wait_adc_int_with_timeout(int adc_num, int milliseconds);
     34
     35  int wait_dac_int_with_timeout(int dac_num, int milliseconds);
     36
     37  int wait_dio_int_with_timeout(int milliseconds);
     38
     39  int wait_dio_int_with_timestamp(
     40    int                 milliseconds,
     41    unsigned long long *timestamp
     42  );
     43  int dio_get_missed_interrupts(void);
    2344
    2445RTEMS Shell Commands
  • pcmmio/original/mio_io.h

    r65bf116 r8b61cb4  
    206206    unsigned long long *timestamp
    207207  );
    208 #endif
    209 
     208  int dio_get_missed_interrupts(void);
     209#endif
     210
  • pcmmio/original/mio_io_rtems.c

    r65bf116 r8b61cb4  
    4444rtems_id wq_dac_2;
    4545rtems_id wq_dio;
     46
     47unsigned int pcmmio_dio_missed_interrupts;
    4648
    4749int interruptible_sleep_on(
     
    560562
    561563  /* hardware configuration information */
    562   base_port = _base_port;
    563   irq       = _irq;
     564  base_port                    = _base_port;
     565  irq                          = _irq;
     566  pcmmio_dio_missed_interrupts = 0;
    564567
    565568  /* Create RTEMS Objects */
     
    839842  return line;
    840843}
     844
     845int dio_get_missed_interrupts(void)
     846{
     847  int isrs;
     848
     849  isrs = pcmmio_dio_missed_interrupts;
     850
     851  pcmmio_dio_missed_interrupts = 0;
     852
     853  return isrs;
     854}
Note: See TracChangeset for help on using the changeset viewer.