TFT

Dependencies:   mbed

Fork of Ovation_Controller_1 by Andrew R

system_defines.h

Committer:
bf1891
Date:
2014-08-28
Revision:
3:92845c139aca
Parent:
1:ecf8078bf531

File content as of revision 3:92845c139aca:

/************** All the major system definitions are done here ******************/

// control pins for I/O
DigitalOut CS(p28);     /* chip select the SSD1963 active LOW */
DigitalOut RS(p8);     /* reset  to SSD1963  - not used in this implementation*/
DigitalOut nWR(p7);    /* write out to SSD1963 active LOW */
DigitalOut nRD(p6);    /* read data from SSD1963 active LOW - but not used */
DigitalOut DC(p5);     /* Data/Command Select: 1=Command,  0=Data); */
DigitalOut myled(LED1); /* for test purposes only - on the mbed module */

/**************************** data bus I/O pins *********************************/
BusOut DB(p10,p11,p12,p13,p14,p15,p16,p17);  //removed
/******************************************************************************/
/* System Definitions */
/* the  following are the pin assignments on the mbed controller */
DigitalOut pga2320(p30);/* normally LOW; take HIGH  to select PGA2320 */
DigitalOut phono(p29);
DigitalIn IRx(p27);     /* p28 is the Tx outputand is not used */
DigitalIn IPSELPB(p26);
DigitalIn IPSELB(p25);
DigitalIn IPSELA(p24);
DigitalIn VOLPB(p23);
DigitalIn VOLB(p22);
DigitalIn VOLA(p21);
AnalogIn ALS(p20);
DigitalOut SBUSON(p19);
DigitalOut NAOE(p18);       /* A6821 output enable.  Active LOW */
//DigitalOut DC(p17);
DigitalOut RD(LED2);         /* also ASTROBE */
DigitalOut WR(LED3);         /* MDATA */
//DigitalOut RS(p14);         /* ACLK */
//DigitalOut CS(p13);
//DigitalOut myled(LED1);
//BusInOut DB(p12, p11, p10, p9, p8, p7, p6, p5); /* for the LCD display */

Serial pc(USBTX, USBRX);    /* for debugging and in final version for test mode */
Serial remote(NC, p27);     /* remote control serial input; 1200bd 8 data, 1 stop and no parity */
AnalogIn light(p20);        /* for auto display brightness */