Changeset 7258c6a in buchla-68k for include/patch.h


Ignore:
Timestamp:
07/09/2017 04:45:34 PM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
8618599
Parents:
0292fbb
Message:

Use standard integer types.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/patch.h

    r0292fbb r7258c6a  
    3737struct  patch   {       /* patch table entry (16 bytes per entry) */
    3838
    39         unsigned short  nextstm;        /* index of next entry in stm chain */
    40         unsigned short  prevstm;        /* index of previous entry in stm chain */
    41         unsigned short  defnum;         /* definer */
    42         unsigned short  stmnum;         /* stimulus */
    43         unsigned short  paspec;         /* destination type and flags */
    44         unsigned short  pasuba;         /* sub-address */
    45         unsigned short  padat1;         /* data word 1 */
    46         unsigned short  padat2;         /* data word 2 */
     39        uint16_t        nextstm;        /* index of next entry in stm chain */
     40        uint16_t        prevstm;        /* index of previous entry in stm chain */
     41        uint16_t        defnum;         /* definer */
     42        uint16_t        stmnum;         /* stimulus */
     43        uint16_t        paspec;         /* destination type and flags */
     44        uint16_t        pasuba;         /* sub-address */
     45        uint16_t        padat1;         /* data word 1 */
     46        uint16_t        padat2;         /* data word 2 */
    4747};
    4848
    4949struct  defent  {       /* definition table entry -- 10 bytes per entry */
    5050
    51         unsigned short  nextdef;        /* index of next in def chain */
    52         unsigned short  stm;            /* stimulus */
    53         unsigned short  adspec;         /* destination type */
    54         unsigned short  adsuba;         /* sub-address */
    55         unsigned short  addat1;         /* data word 1 */
     51        uint16_t        nextdef;        /* index of next in def chain */
     52        uint16_t        stm;            /* stimulus */
     53        uint16_t        adspec;         /* destination type */
     54        uint16_t        adsuba;         /* sub-address */
     55        uint16_t        addat1;         /* data word 1 */
    5656};
    5757
     
    6161struct  seqent  {       /* sequence table entry -- 14 bytes per entry */
    6262
    63         unsigned short  seqtime;        /* time */
    64         unsigned short  seqact1;        /* action 1 */
    65         unsigned short  seqdat1;        /* action 1 data */
    66         unsigned short  seqact2;        /* action 2 */
    67         unsigned short  seqdat2;        /* action 2 data */
    68         unsigned short  seqact3;        /* action 3 */
    69         unsigned short  seqdat3;        /* action 3 data */
     63        uint16_t        seqtime;        /* time */
     64        uint16_t        seqact1;        /* action 1 */
     65        uint16_t        seqdat1;        /* action 1 data */
     66        uint16_t        seqact2;        /* action 2 */
     67        uint16_t        seqdat2;        /* action 2 data */
     68        uint16_t        seqact3;        /* action 3 */
     69        uint16_t        seqdat3;        /* action 3 data */
    7070};
    7171
     
    7777
    7878#ifndef PATCHDEF
    79 extern  char            stmptr[];       /* stimulus pointer table */
    80 extern  char            defptr[];       /* definition pointer table */
     79extern  int8_t          stmptr[];       /* stimulus pointer table */
     80extern  int8_t          defptr[];       /* definition pointer table */
    8181
    8282extern  struct patch    patches[];      /* patch table */
     
    9191extern  struct seqent   seqtab[];               /* sequence table */
    9292
    93 extern  unsigned short  seqflag[16];            /* sequence flags */
    94 extern  unsigned short  seqline[16];            /* sequence line */
    95 extern  unsigned short  seqstim[16];            /* sequence stimulus */
    96 extern  unsigned short  seqtime[16];            /* sequence timers */
    97 extern  unsigned short  sregval[16];            /* register values */
    98 extern  unsigned short  trstate[16];            /* trigger states */
     93extern  uint16_t        seqflag[16];            /* sequence flags */
     94extern  uint16_t        seqline[16];            /* sequence line */
     95extern  uint16_t        seqstim[16];            /* sequence stimulus */
     96extern  uint16_t        seqtime[16];            /* sequence timers */
     97extern  uint16_t        sregval[16];            /* register values */
     98extern  uint16_t        trstate[16];            /* trigger states */
    9999
    100100#endif
Note: See TracChangeset for help on using the changeset viewer.