1 /*
2 * File: SD_Datalogger5_private.h
3 *
4 * Real-Time Workshop code generated for Simulink model SD_Datalogger5.
5 *
6 * Model version : 1.22
7 * Real-Time Workshop file version : 8.0 (R2011a) 09-Mar-2011
8 * Real-Time Workshop file generated on : Tue Jan 17 11:54:59 2012
9 * TLC version : 8.0 (Feb 3 2011)
10 * C source code generated on : Tue Jan 17 11:54:59 2012
11 *--------------------------------------------------------------
12 * Embedded Coder for Microchip dsPIC family. |
13 * Generate .c and .h files from your Matlab/simulink model |
14 * and compile the diagram to .hex and .coff file that can be |
15 * downloaded directly into the microcontroller |
16 * |
17 * Licence Accorded to && Licence Name &&|
18 * && Companie &&|
19 * |
20 * Written by Lubin KERHUEL - http://www.kerhuel.eu |
21 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - |
22 * Version &&Version&& && Date &&|
23 * For Matlab && VerMatlab && && Release && |
24 *--------------------------------------------------------------
25 */
26
27 #ifndef RTW_HEADER_SD_Datalogger5_private_h_
28 #define RTW_HEADER_SD_Datalogger5_private_h_
29 #include "rtwtypes.h"
30
31 /* dsPIC library */
32 #include "p32xxxx.h"
33 #include "timer.h"
34 #define fcy 40000000
35 #ifndef __RTWTYPES_H__
36 #error This file requires rtwtypes.h to be included
37 #else
38 #ifdef TMWTYPES_PREVIOUSLY_INCLUDED
39 #error This file requires rtwtypes.h to be included before tmwtypes.h
40 #else
41
42 /* Check for inclusion of an incorrect version of rtwtypes.h */
43 #ifndef RTWTYPES_ID_C08S16I32L32N32F1
44 #error This code was generated with a different "rtwtypes.h" than the file included
45 #endif /* RTWTYPES_ID_C08S16I32L32N32F1 */
46 #endif /* TMWTYPES_PREVIOUSLY_INCLUDED */
47 #endif /* __RTWTYPES_H__ */
48
49 #define _T1IF (IFS0bits.T1IF)
50 #define _SPI1IF (IFS0bits.SPI1TXIF)
51 #define _SPI1IE (IEC0bits.SPI1TXIE)
52 #define _SPI1EN (SPI1CONbits.ON)
53 #define _SPI2EN (SPI2CONbits.ON)
54 #endif /* RTW_HEADER_SD_Datalogger5_private_h_ */
55
56 /* File trailer for Real-Time Workshop generated code.
57 *
58 * [EOF]
59 */
60
|