/******************************************************************************* * * * 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. * * * *******************************************************************************/ /* Description: This is a template file for standard C header file. */ /* ************************************************************************** */ /* ¤Revision: 000 20100616 JFM, Original version. ### YYYYMMDD Initial, Bug Identification Change description. */ #ifndef DIGITAL_IO_H #define DIGITAL_IO_H /* ************************************************************************** */ /* Includes */ /* ************************************************************************** */ /* Defines */ //Output pins hardware definitions // #define HEARTBEAT_LED_1_PIN_DIR TRISEbits.TRISE5 #define HEARTBEAT_LED_1_PIN LATEbits.LATE5 #define HEARTBEAT_LED_2_PIN_DIR TRISEbits.TRISE6 #define HEARTBEAT_LED_2_PIN LATEbits.LATE6 #define SD_SPI_SDO_PIN_DIR TRISGbits.TRISG8 #define SD_SPI_CS_PIN_DIR TRISGbits.TRISG9 #define SD_SPI_CS_PIN LATGbits.LATG9 #define SD_SPI_SDI_PIN_DIR TRISGbits.TRISG7 #define SD_SPI_SCK_PIN_DIR TRISGbits.TRISG6 #define LED_ON 0 #define LED_OFF 1 #define PIN_INPUT 1 #define PIN_OUTPUT 0 #define SD_SPI_SDO_PIN_DIR TRISGbits.TRISG8 #define SD_SPI_CS_PIN_DIR TRISGbits.TRISG9 #define SD_SPI_CS_PIN LATGbits.LATG9 #define SD_SPI_SDI_PIN_DIR TRISGbits.TRISG7 #define SD_SPI_SCK_PIN_DIR TRISGbits.TRISG6 /* ************************************************************************** */ /* Prototypes */ void InitDigitalIO(void); #endif //EOF