Advertisement
Guest User

Untitled

a guest
Dec 21st, 2014
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. /*
  2. * File: Hardware_Pinouts.h
  3. * Author: Julito
  4. *
  5. * Created on 29 août 2014, 10:42
  6. */
  7.  
  8. #ifndef HARDWARE_PINOUTS_H
  9. #define HARDWARE_PINOUTS_H
  10.  
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14.  
  15.  
  16.  
  17.  
  18. #ifdef __cplusplus
  19. }
  20. #endif
  21.  
  22. #define SpiClock PORTAbits.RA1 // RC0 SRCLK-SH_CP
  23. #define SpiClockdir TRISAbits.TRISA1 // RC0
  24.  
  25. #define SpiData PORTAbits.RA2 // RA4 or RC2 DS
  26. #define SpiDatadir TRISAbits.TRISA2 // RA4 or RC2
  27.  
  28. #define RowPort PORTB
  29. #define RowPortdir TRISB
  30.  
  31. #define INPUT_PIN 1
  32. #define OUTPUT_PIN 0
  33. #define OUTPUT_PORT 0x00
  34.  
  35. #define MODULE_ON 1
  36. #define MODULE_OFF 0
  37.  
  38. #endif /* HARDWARE_PINOUTS_H */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement