//-------------------------------------------------------------------------- // // Platform specific definitions for a keyboard implemented on a pdc9174 // board. // //-------------------------------------------------------------------------- // $Archive: /WirelessUSB/WUSB Kits/CY4632 LS KBM RDK/DocSrc/CD_Root/Firmware/Source Code/RDK Keyboard/pdc9174.h $ // $Modtime: 3/24/04 5:27p9/28/04 2:43p $ // $Revision: 67 $ //-------------------------------------------------------------------------- // // Copyright 2003-2004, Cypress Semiconductor Corporation. // // This software is owned by Cypress Semiconductor Corporation (Cypress) // and is protected by and subject to worldwide patent protection (United // States and foreign), United States copyright laws and international // treaty provisions. Cypress hereby grants to licensee a personal, // non-exclusive, non-transferable license to copy, use, modify, create // derivative works of, and compile the Cypress Source Code and derivative // works for the sole purpose of creating custom software in support of // licensee product to be used only in conjunction with a Cypress integrated // circuit as specified in the applicable agreement. Any reproduction, // modification, translation, compilation, or representation of this // software except as specified above is prohibited without the express // written permission of Cypress. // // Disclaimer: CYPRESS MAKES NO WARRANTY OF ANY KIND,EXPRESS OR IMPLIED, // WITH REGARD TO THIS MATERIAL, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED // WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. // Cypress reserves the right to make changes without further notice to the // materials described herein. Cypress does not assume any liability arising // out of the application or use of any product or circuit described herein. // Cypress does not authorize its products for use as critical components in // life-support systems where a malfunction or failure may reasonably be // expected to result in significant injury to the user. The inclusion of // Cypress’ product in a life-support systems application implies that the // manufacturer assumes all risk of such use and in doing so indemnifies // Cypress against all charges. // // Use may be limited by and subject to the applicable Cypress software // license agreement. // //-------------------------------------------------------------------------- #ifndef PDC9174_H #define PDC9174_H #include "m8c.h" #include "globalparams.h" //----------------------------------------------- GPIO Interrupt definitions // // GPIO ISR definitions (see PSoCGPIO.H) #define GPIO_ISR_RADIO_IE_PORT PRT1IE #define GPIO_ISR_RADIO_INT IRQ_MASK #define GPIO_ISR_BIND_IE_PORT PRT1IE #define GPIO_ISR_BIND_INT SW1_MASK #define GPIO_ISR_KEYS_IE_PORT PRT3IE #define GPIO_ISR_KEYS_INT ( ROW1_MASK | ROW2_MASK | ROW3_MASK | ROW4_MASK |\ ROW5_MASK | ROW6_MASK | ROW7_MASK | ROW8_MASK ) //--------------------------------------------- Rotary Switch and Debug Port // // Port 0 #define SW_DBG_PORT PRT0DR //-------------------------------------------------------------------- Radio // // Port 1 #define RADIO_PORT PRT1DR #define RADIO_PORT_IE PRT1IE #define nPD nPD_MASK #define nSS nSS_MASK #define DIO SW1_MASK #define nRESET nRESET_MASK #define nIRQ IRQ_MASK #define MISO MISO_MASK #define SCK SCK_MASK #define MOSI MOSI_MASK //----------------------------------------------------------------- Keyboard // // Port 2 #define KB_LOW_COL_PORT PRT2DR #define KB_LOW_COL_PORT_DM0 PRT2DM0 #define KB_LOW_COL_PORT_DM1 PRT2DM1 #define KB_LOW_COL_PORT_DRV0 PORT_2_DRIVE_0 #define KB_LOW_COL_PORT_DRV1 PORT_2_DRIVE_1 // Port 3 #define KB_ROW_PORT PRT3DR #define KB_ROW_PORT_IE PRT3IE // Port 4 #define KB_MID_COL_PORT PRT4DR #define KB_MID_COL_PORT_DM0 PRT4DM0 #define KB_MID_COL_PORT_DM1 PRT4DM1 #define KB_MID_COL_PORT_DRV0 PORT_4_DRIVE_0 #define KB_MID_COL_PORT_DRV1 PORT_4_DRIVE_1 // Port 5 #define KB_HI_COL_PORT PRT5DR #define KB_HI_COL_PORT_DM0 PRT5DM0 #define KB_HI_COL_PORT_DM1 PRT5DM1 #define KB_HI_COL_PORT_DRV0 PORT_5_DRIVE_0 #define KB_HI_COL_PORT_DRV1 PORT_5_DRIVE_1 //------------------------------------------------------------ Battery Level // #define BATT_LEV_PORT PRT0DR #define BATT_LEV_PORT_IE PRT0IE #define BATT_LEV_DM0 PRT0DM0 #define BATT_LEV_DM1 PRT0DM1 #define BATT_LEV_PRT_DRV0 PORT_0_DRIVE_0 #define BATT_LEV_PRT_DRV1 PORT_0_DRIVE_1 #endif //PDC9174_H