60 lines
1.9 KiB
C

/*******************************************************************************
* *
* Copyright 2010 Rheinmetall Canada Inc. *
* *
* No part of this document may be reproduced, stored in *
* a retrieval system, or transmitted, in any form or by any means, *
* electronic, mechanical, photocopying, recording, or otherwise, *
* without the prior written permission of Rheinmetall Canada Inc. *
* *
*******************************************************************************/
/* ¤Revision:
000 20100616 HCAM,
Original version.
### YYYYMMDD Initial, Bug Identification
Change description.
*/
#ifndef DEFINE_H
#define DEFINE_H
/* ************************************************************************** */
/* Includes */
#include <plib.h>
//#include "CUHelperFcns.h"
/* ************************************************************************** */
/* Defines */
//#define SYS_FREQ (77824000L)
//#define PERIPHERAL_FREQ (77824000L)
#define PIN_INPUT 1
#define PIN_OUTPUT 0
#define false 0
#define true 1
#define MSB8(x) ((x >> 8) & 0xFF)
#define LSB8(x) (x & 0xFF)
#define USE_BLOCKING_PRINTF
#define NO_EXTERNAL_UART
#define LED_ON 0
#define LED_OFF 1
//#define USE_675F512_CPU //For prototype board, 795F512 CPUs were backordered.
/* ************************************************************************** */
/* Type definitions */
//typedef int bool;
typedef int Bool;
#define RET_OK 1
#define RET_ERROR 0
//Only uncomment 1 serial port !!! (otherwise you will have a bad day :)
//#define USE_SERIAL_PORT_1
#define USE_SERIAL_PORT_2
#endif
//EOF