| Line No. | Rev | Author | Line |
|---|---|---|---|
| 1 | 32 | kaklik | /******************************************************************** |
| 2 | FileName: SCpic18.h |
||
| 3 | Dependencies: See INCLUDES section |
||
| 4 | Processor: PIC18 Microcontrollers |
||
| 5 | Hardware: This demo is natively intended to be used on LPC & HPC Exp board. |
||
| 6 | This demo can be modified for use on other hardware platforms. |
||
| 7 | Complier: Microchip C18 (for PIC18) |
||
| 8 | Company: Microchip Technology, Inc. |
||
| 9 | |||
| 10 | Software License Agreement: |
||
| 11 | |||
| 12 | The software supplied herewith by Microchip Technology Incorporated |
||
| 13 | (the Company) for its PIC® Microcontroller is intended and |
||
| 14 | supplied to you, the Companys customer, for use solely and |
||
| 15 | exclusively on Microchip PIC Microcontroller products. The |
||
| 16 | software is owned by the Company and/or its supplier, and is |
||
| 17 | protected under applicable copyright laws. All rights are reserved. |
||
| 18 | Any use in violation of the foregoing restrictions may subject the |
||
| 19 | user to criminal sanctions under applicable laws, as well as to |
||
| 20 | civil liability for the breach of the terms and conditions of this |
||
| 21 | license. |
||
| 22 | |||
| 23 | THIS SOFTWARE IS PROVIDED IN AN AS IS CONDITION. NO WARRANTIES, |
||
| 24 | WHETHER EXPRESS, IMPLIED OR STATUTORY, INCLUDING, BUT NOT LIMITED |
||
| 25 | TO, IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A |
||
| 26 | PARTICULAR PURPOSE APPLY TO THIS SOFTWARE. THE COMPANY SHALL NOT, |
||
| 27 | IN ANY CIRCUMSTANCES, BE LIABLE FOR SPECIAL, INCIDENTAL OR |
||
| 28 | CONSEQUENTIAL DAMAGES, FOR ANY REASON WHATSOEVER. |
||
| 29 | |||
| 30 | ******************************************************************** |
||
| 31 | File Description: |
||
| 32 | |||
| 33 | Change History: |
||
| 34 | Rev Description |
||
| 35 | ---- ----------------------------------------- |
||
| 36 | 1.0 Initial release |
||
| 37 | 1.01 Cleaned up unnecessary variables |
||
| 38 | ********************************************************************/ |
||
| 39 | |||
| 40 | #ifndef __SC_DRV18_LIB__ |
||
| 41 | #define __SC_DRV18_LIB__ |
||
| 42 | |||
| 43 | #include "GenericTypeDefs.h" |
||
| 44 | #include <p18cxxx.h> |
||
| 45 | |||
| 46 | extern unsigned long baudRate; // Baud Rate of Smart Card Transmission/Reception Data |
||
| 47 | extern unsigned long scReferenceClock; // Smart Card Reference Clock |
||
| 48 | |||
| 49 | extern void SCdrv_InitUART(void); |
||
| 50 | extern void SCdrv_CloseUART(void); |
||
| 51 | extern void SCdrv_SetBRG( BYTE speedCode ); |
||
| 52 | extern BOOL SCdrv_GetRxData( BYTE* pDat, unsigned long nTrys ); |
||
| 53 | extern void SCdrv_SendTxData( BYTE data ); |
||
| 54 | |||
| 55 | extern void WaitMicroSec( WORD microSec ); |
||
| 56 | extern void WaitMilliSec( WORD ms ); |
||
| 57 | |||
| 58 | #endif |
||
| 59 | |||
| 60 | |||
| 61 |
Powered by WebSVN v2.8.3