Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
firmware
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
adisbladis
firmware
Commits
1a5d0a59
Commit
1a5d0a59
authored
5 years ago
by
schneider
Browse files
Options
Downloads
Patches
Plain Diff
fix(display): Update pin definitions
parent
b5d301e6
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ips/GUI_DEV/DEV_Config.h
+1
-1
1 addition, 1 deletion
ips/GUI_DEV/DEV_Config.h
ips/LCD/LCD_Driver.c
+2
-2
2 additions, 2 deletions
ips/LCD/LCD_Driver.c
ips/main.c
+5
-5
5 additions, 5 deletions
ips/main.c
with
8 additions
and
8 deletions
ips/GUI_DEV/DEV_Config.h
+
1
−
1
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;
...
...
This diff is collapsed.
Click to expand it.
ips/LCD/LCD_Driver.c
+
2
−
2
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
);
}
...
...
This diff is collapsed.
Click to expand it.
ips/main.c
+
5
−
5
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
();
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment