Difference Analysis Generated by HtmlDiff on 10/26/2004 1:35 PM  

Base file: C:\CY4632_RDK_1_21\Firmware\Source Code\RDK Mouse\ls_config.h

Modified file: C:\CY4632_RDK_1_3\Firmware\Source Code\RDK Mouse\ls_config.h

//--------------------------------------------------------------------------
//
// This file is a configuration file for the radio subsystem.
//
//--------------------------------------------------------------------------
// $Archive: /WirelessUSB/WUSB Kits/CY4632 LS KBM RDK/DocSrc/CD_Root/Firmware/Source Code/RDK Mouse/ls_config.h $
// $Modtime: 6/16/04 4:38p10/01/04 1:18p $
// $Revision: 1011 $
//--------------------------------------------------------------------------
//
// 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 _LS_CONFIG_H_
#define _LS_CONFIG_H_

#include "appconfig.h"
#include PLATFORM_H


// PROTOCOL DEFINES
#define PROTOCOL_1_1
#define DATA_RATE_64
#define TWO_WAY
#define COMBO_DEVICE
#define SLEEP_ENABLED
#define USE_DELAY_MSEC
#define BACK_CHANNEL_DATA
#define DEFAULT_PNCODE        1
#define DEFAULT_CHAN          5
#define TX_TIMEOUT            10
#define DATA_ACK_FILTER_VALUE 0x1E

#ifdef TWO_WAY
#define BIND_AUTO
#else  // ONE_WAY
#define BIND_BASIC
#define TX_NUM_TRANS 2
#endif

// RADIO DEFINES
#define DEFAULT_XTL           0
#define PA_BIAS               0x07
#define AGC_SUPPORTBIND_PA               0x04
#define DYNAMIC_PA_SUPPORT

// MOUSE SPECIFIC DEFINES
#define DEVICE_TYPE           3
#define APP_TX_PACKET_SIZE    4
#define APP_RX_PACKET_SIZE    1

// Checksum ALL packets
//#define CHECKSUM_ALL_PACKETS
#define QUICK_RADIO_OFF
//#define RADIO_DEFAULT_ON

// API Macro's
#ifdef SLEEP_ENABLED
#define RADIO_SLEEP()               radio_sleep()
#define RADIO_WAKEUP()              radio_wakeup()
#else
#define RADIO_SLEEP()
#define RADIO_WAKEUP()
#endif

#define LS_IRQ_ASSERTED             ( PRT1DR & R_IRQ_MASK )

#define RADIO_ISR_INIT()            isr_init()
#define RADIO_ISR_ENABLE()          isr_enable( INT_{GPIO_ISR_RADIO )_IE_PORT |= GPIO_ISR_RADIO_INT;}
#define RADIO_ISR_DISABLE()         isr_disable( INT_{GPIO_ISR_RADIO )_IE_PORT &= ~GPIO_ISR_RADIO_INT;}

#define SPI_RADIO_ON()              spi_radio_on()

#ifdef  RADIO_DEFAULT_ON
#define SPI_RADIO_OFF()
#else
#define SPI_RADIO_OFF()             spi_radio_off()
#endif

#define SPI_RADIO_PUT(addr, data)   spi_radio_put(addr, data)
#define SPI_RADIO_GET(data)         spi_radio_get(data)
#define SPI_RADIO_RESET()           spi_radio_reset()

#define SYS_PARAM_LOC               0xfa  // Flash block for radio params
#define NVRAM_READ(data, len)       nvram_readflash_read_lite(SYS_PARAM_LOC, data, len)
#define NVRAM_WRITE(data)           nvram_flash_write_lite(SYS_PARAM_LOC, data)

#define TIMER_DELAY_10_USEC()       timer_delay_10_usec()
#define TIMER_DELAY_50_USEC()       timer_delay_50_usec()
#define TIMER_DELAY_MSEC(cnt)       timer_delay_msec(cnt)

#define TIMER_DELAY_INCREMENTAL(base, incr)   \
                                    timer_delay_incremental(base, incr)

#define TIMER_IS_TIME_ELASPSED(base, curr)    \
                                    timer_time_elasped(base, incr)

#define TIMER_GET_TIME_STAMP()      timer_get_time_stamp()



#include "psocgpioint.h"
#include "cypdef.h"
#include "spi.h"
#include "debug.h"
#include "nvramflash.h"
#include "isr.h"
#include "timer.h"

#endif // _LS_CONFIG_H_