Changeset f7428b1 in buchla-68k for include/midas.h


Ignore:
Timestamp:
07/10/2017 01:26:59 AM (7 years ago)
Author:
Thomas Lopatic <thomas@…>
Branches:
master
Children:
5fa506d
Parents:
c3aee8a
Message:

Started to rework include files.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • include/midas.h

    rc3aee8a rf7428b1  
    33        midas.h -- MIDAS 700 global definitions
    44        Version 38 -- 1989-12-19 -- D.N. Lynx Crowe
    5 
    6         Uses definitions from:  "graphdef.h", "vsdd.h"
    75   =============================================================================
    86*/
    97
    10 typedef void    (*LPF)(int16_t _1, int16_t _2); /* pointer to a LCD panel function */
     8#pragma once
     9#include "stdint.h"
    1110
    12 #define SM_SCALE(x)     (((x) * 252) & 0x7FE0)
    13 #define ART_VAL(x)      (((((x)-5) > 100) ? 100 : (((x)-5) < 0 ? 0 : ((x)-5)))*320)
     11typedef void (*LPF)(int16_t _1, int16_t _2);    /* pointer to a LCD panel function */
    1412
    15 #define CWORD(x)        ((short)((x)|((x)<<4)|((x)<<8)|((x)<<12)))
     13#define SM_SCALE(x)     (((x) * 252) & 0x7fe0)
     14#define ART_VAL(x)      (((((x) - 5) > 100) ? 100 : (((x) - 5) < 0 ? 0 : ((x) - 5))) * 320)
     15
     16#define CWORD(x)        ((int16_t)((x) | ((x) << 4) | ((x) << 8) | ((x) << 12)))
    1617
    1718#define CTOX(C)         ((C) << 3)      /* column to x pixel value */
     
    2526#define GCURS   0                       /* graphic cursor object number */
    2627
    27 #define BIT2    (V_RES2)                /* graphics - 2 bit pixels */
    28 #define BIT3    (V_RES3)                /* graphics - 4 bit pixels */
    29 #define CHR2    (0)                     /* characters - no attributes */
     28#define BIT2    V_RES2                  /* graphics - 2 bit pixels */
     29#define BIT3    V_RES3                  /* graphics - 4 bit pixels */
     30#define CHR2    0                       /* characters - no attributes */
    3031#define CHR3    (V_FAD | V_HCR)         /* characters - full attributes */
    3132
    3233#define OBFL_00 (BIT3 | V_TDE)          /* cursor - arrow */
    3334
    34 #define LIBRFL          (V_RES3)        /* librarian display object flags */
     35#define LIBRFL          V_RES3          /* librarian display object flags */
    3536
    3637#define TTCURS          2               /* typewriter cursor object */
     
    102103#define M_LCLHLD        0x40    /* MIDI local hold status */
    103104#define M_CHNHLD        0x80    /* MIDI channel hold status */
    104 #define MKEYHELD        (M_CHNHLD | M_LCLHLD)   /* key held */
     105#define MKEYHELD        (M_CHNHLD | M_LCLHLD)
     106                                /* key held */
    105107
    106 #define PITCHMIN        320             /* C0 in 1/2 cents (160 cents) */
    107 #define PITCHMAX        21920           /* C9 in 1/2 cents (10960 cents) */
     108#define PITCHMIN        320     /* C0 in 1/2 cents (160 cents) */
     109#define PITCHMAX        21920   /* C9 in 1/2 cents (10960 cents) */
    108110
    109111#define GTAG1           0x0100
Note: See TracChangeset for help on using the changeset viewer.