Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
card10
firmware
Commits
1a5d0a59
Commit
1a5d0a59
authored
May 18, 2019
by
schneider
Browse files
fix(display): Update pin definitions
parent
b5d301e6
Changes
3
Hide whitespace changes
Inline
Side-by-side
ips/GUI_DEV/DEV_Config.h
View file @
1a5d0a59
...
...
@@ -46,7 +46,7 @@
/**
* 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_CS_PIN;
//extern const gpio_cfg_t DEV_BL_PIN;
...
...
ips/LCD/LCD_Driver.c
View file @
1a5d0a59
...
...
@@ -37,9 +37,9 @@ static void LCD_Reset(void)
{
//DEV_Digital_Write(DEV_CS_PIN,0);
DEV_Delay_ms
(
20
);
DEV_Digital_Write
(
DEV_RST_PIN
,
0
);
//
DEV_Digital_Write(DEV_RST_PIN,0);
DEV_Delay_ms
(
20
);
DEV_Digital_Write
(
DEV_RST_PIN
,
1
);
//
DEV_Digital_Write(DEV_RST_PIN,1);
DEV_Delay_ms
(
20
);
}
...
...
ips/main.c
View file @
1a5d0a59
...
...
@@ -68,11 +68,11 @@
// Parameters for PWM output
#define PORT_PWM PORT_0 // port
#define PIN_PWM PIN_2
1
// pin
#define PIN_PWM PIN_2
8
// pin
#define FREQ 200 // (Hz)
//#define DUTY_CYCLE 75 // (%)
#define DUTY_CYCLE 20 // (%)
#define PWM_TIMER MXC_TMR
3
// must change PORT_PWM and PIN_PWM if changed
#define PWM_TIMER MXC_TMR
4
// must change PORT_PWM and PIN_PWM if changed
/***** Definitions *****/
...
...
@@ -84,8 +84,8 @@
/***** Globals *****/
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_DC_PIN
=
{
PORT_
0
,
PIN_
23
,
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_
1
,
PIN_
6
,
GPIO_FUNC_OUT
,
GPIO_PAD_NONE
};
/***** Functions *****/
void
PWM_Output
()
...
...
@@ -174,7 +174,7 @@ int main(void)
while
(
1
);
}
GPIO_Config
(
&
DEV_RST_PIN
);
//
GPIO_Config(&DEV_RST_PIN);
GPIO_Config
(
&
DEV_DC_PIN
);
PWM_Output
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment