Skip to content
Snippets Groups Projects
Commit 1a5d0a59 authored by schneider's avatar schneider
Browse files

fix(display): Update pin definitions

parent b5d301e6
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ ...@@ -46,7 +46,7 @@
/** /**
* GPIO config * GPIO config
**/ **/
extern const gpio_cfg_t DEV_RST_PIN; //extern const gpio_cfg_t DEV_RST_PIN;
extern const gpio_cfg_t DEV_DC_PIN; extern const gpio_cfg_t DEV_DC_PIN;
//extern const gpio_cfg_t DEV_CS_PIN; //extern const gpio_cfg_t DEV_CS_PIN;
//extern const gpio_cfg_t DEV_BL_PIN; //extern const gpio_cfg_t DEV_BL_PIN;
......
...@@ -37,9 +37,9 @@ static void LCD_Reset(void) ...@@ -37,9 +37,9 @@ static void LCD_Reset(void)
{ {
//DEV_Digital_Write(DEV_CS_PIN,0); //DEV_Digital_Write(DEV_CS_PIN,0);
DEV_Delay_ms(20); DEV_Delay_ms(20);
DEV_Digital_Write(DEV_RST_PIN,0); //DEV_Digital_Write(DEV_RST_PIN,0);
DEV_Delay_ms(20); DEV_Delay_ms(20);
DEV_Digital_Write(DEV_RST_PIN,1); //DEV_Digital_Write(DEV_RST_PIN,1);
DEV_Delay_ms(20); DEV_Delay_ms(20);
} }
......
...@@ -68,11 +68,11 @@ ...@@ -68,11 +68,11 @@
// Parameters for PWM output // Parameters for PWM output
#define PORT_PWM PORT_0 // port #define PORT_PWM PORT_0 // port
#define PIN_PWM PIN_21 // pin #define PIN_PWM PIN_28 // pin
#define FREQ 200 // (Hz) #define FREQ 200 // (Hz)
//#define DUTY_CYCLE 75 // (%) //#define DUTY_CYCLE 75 // (%)
#define DUTY_CYCLE 20 // (%) #define DUTY_CYCLE 20 // (%)
#define PWM_TIMER MXC_TMR3 // must change PORT_PWM and PIN_PWM if changed #define PWM_TIMER MXC_TMR4 // must change PORT_PWM and PIN_PWM if changed
/***** Definitions *****/ /***** Definitions *****/
...@@ -84,8 +84,8 @@ ...@@ -84,8 +84,8 @@
/***** Globals *****/ /***** Globals *****/
static const gpio_cfg_t motor_pin = {PORT_0, PIN_8, GPIO_FUNC_OUT, GPIO_PAD_NONE}; static const gpio_cfg_t motor_pin = {PORT_0, PIN_8, GPIO_FUNC_OUT, GPIO_PAD_NONE};
const gpio_cfg_t DEV_RST_PIN = {PORT_0, PIN_28, GPIO_FUNC_OUT, GPIO_PAD_NONE}; //const gpio_cfg_t DEV_RST_PIN = {PORT_0, PIN_28, GPIO_FUNC_OUT, GPIO_PAD_NONE};
const gpio_cfg_t DEV_DC_PIN = {PORT_0, PIN_23, GPIO_FUNC_OUT, GPIO_PAD_NONE}; const gpio_cfg_t DEV_DC_PIN = {PORT_1, PIN_6, GPIO_FUNC_OUT, GPIO_PAD_NONE};
/***** Functions *****/ /***** Functions *****/
void PWM_Output() void PWM_Output()
...@@ -174,7 +174,7 @@ int main(void) ...@@ -174,7 +174,7 @@ int main(void)
while (1); while (1);
} }
GPIO_Config(&DEV_RST_PIN); //GPIO_Config(&DEV_RST_PIN);
GPIO_Config(&DEV_DC_PIN); GPIO_Config(&DEV_DC_PIN);
PWM_Output(); PWM_Output();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment