no-OS
parameters.h
Go to the documentation of this file.
1 /***************************************************************************/
34 #ifndef PARAMETERS_H
35 #define PARAMETERS_H
36 
37 /******************************************************************************/
38 /********************** Macros and Constants Definitions **********************/
39 /******************************************************************************/
40 #define SPI_DEVICE_ID 0U
41 #define GPIO_OFFSET 54U
42 
43 /* SSD 1306 display controller specific pins */
44 #define DC_PIN GPIO_OFFSET + 5U
45 #define RST_PIN GPIO_OFFSET + 6U
46 #define VBAT_PIN GPIO_OFFSET + 9U
47 #define VDD_PIN GPIO_OFFSET + 10U
48 
49 /* Defines for ZedBoard specific pin level output */
50 #define VDD_ON 0U //p-channel MOSFET
51 #define VDD_OFF 1U
52 #define VBAT_ON 0U //p-channel MOSFET
53 #define VBAT_OFF 1U
54 
55 #endif