Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
multipass
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
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
derf
multipass
Compare revisions
4684f2ad7c934a8ee468eee7b0b27605fc074bb4 to a9ba02fc3f46b404be5a76486b392529d4b80827
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
derf/multipass
Select target project
No results found
a9ba02fc3f46b404be5a76486b392529d4b80827
Select Git revision
Branches
main
Swap
Target
derf/multipass
Select target project
derf/multipass
1 result
4684f2ad7c934a8ee468eee7b0b27605fc074bb4
Select Git revision
Branches
main
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (2)
rm46l8lp: overflow is 2^32, not 2^32-1
· 936de62c
Birte Kristina Friesel
authored
1 year ago
Unverified
936de62c
stm32f746zg: gpio: Add ports D through H
· a9ba02fc
Birte Kristina Friesel
authored
1 year ago
Unverified
a9ba02fc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/arch/stm32f746zg-nucleo/driver/gpio.h
+65
-4
65 additions, 4 deletions
include/arch/stm32f746zg-nucleo/driver/gpio.h
src/arch/rm46l8lp/Makefile.inc
+1
-1
1 addition, 1 deletion
src/arch/rm46l8lp/Makefile.inc
with
66 additions
and
5 deletions
include/arch/stm32f746zg-nucleo/driver/gpio.h
View file @
a9ba02fc
...
@@ -79,8 +79,18 @@ class GPIO {
...
@@ -79,8 +79,18 @@ class GPIO {
gpio_mode_setup
(
GPIOA
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
pin
);
gpio_mode_setup
(
GPIOA
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
pin
);
}
else
if
(
pin
<
pc0
)
{
}
else
if
(
pin
<
pc0
)
{
gpio_mode_setup
(
GPIOB
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pb0
));
gpio_mode_setup
(
GPIOB
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pb0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
}
else
if
(
pin
<
pd0
)
{
gpio_mode_setup
(
GPIOC
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pc0
));
gpio_mode_setup
(
GPIOC
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pc0
));
}
else
if
(
pin
<
pe0
)
{
gpio_mode_setup
(
GPIOD
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pd0
));
}
else
if
(
pin
<
pf0
)
{
gpio_mode_setup
(
GPIOE
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pe0
));
}
else
if
(
pin
<
pg0
)
{
gpio_mode_setup
(
GPIOF
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pf0
));
}
else
if
(
pin
<
ph0
)
{
gpio_mode_setup
(
GPIOG
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pg0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
gpio_mode_setup
(
GPIOH
,
GPIO_MODE_INPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
ph0
));
}
}
}
}
inline
void
input
(
unsigned
char
const
pin
,
unsigned
char
const
pull
)
{
inline
void
input
(
unsigned
char
const
pin
,
unsigned
char
const
pull
)
{
...
@@ -90,8 +100,18 @@ class GPIO {
...
@@ -90,8 +100,18 @@ class GPIO {
gpio_mode_setup
(
GPIOA
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
pin
);
gpio_mode_setup
(
GPIOA
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
pin
);
}
else
if
(
pin
<
pc0
)
{
}
else
if
(
pin
<
pc0
)
{
gpio_mode_setup
(
GPIOB
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pb0
));
gpio_mode_setup
(
GPIOB
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pb0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
}
else
if
(
pin
<
pd0
)
{
gpio_mode_setup
(
GPIOC
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pc0
));
gpio_mode_setup
(
GPIOC
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pc0
));
}
else
if
(
pin
<
pe0
)
{
gpio_mode_setup
(
GPIOD
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pd0
));
}
else
if
(
pin
<
pf0
)
{
gpio_mode_setup
(
GPIOE
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pe0
));
}
else
if
(
pin
<
pg0
)
{
gpio_mode_setup
(
GPIOF
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pf0
));
}
else
if
(
pin
<
ph0
)
{
gpio_mode_setup
(
GPIOG
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
pg0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
gpio_mode_setup
(
GPIOH
,
GPIO_MODE_OUTPUT
,
GPIO_PUPD_NONE
,
1
<<
(
pin
-
ph0
));
}
}
}
}
/*
/*
...
@@ -102,9 +122,20 @@ class GPIO {
...
@@ -102,9 +122,20 @@ class GPIO {
return
gpio_get
(
GPIOA
,
1
<<
pin
);
return
gpio_get
(
GPIOA
,
1
<<
pin
);
}
else
if
(
pin
<
pc0
)
{
}
else
if
(
pin
<
pc0
)
{
return
gpio_get
(
GPIOB
,
1
<<
(
pin
-
pb0
));
return
gpio_get
(
GPIOB
,
1
<<
(
pin
-
pb0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
}
else
if
(
pin
<
pd0
)
{
return
gpio_get
(
GPIOC
,
1
<<
(
pin
-
pc0
));
return
gpio_get
(
GPIOC
,
1
<<
(
pin
-
pc0
));
}
else
if
(
pin
<
pe0
)
{
return
gpio_get
(
GPIOD
,
1
<<
(
pin
-
pd0
));
}
else
if
(
pin
<
pf0
)
{
return
gpio_get
(
GPIOE
,
1
<<
(
pin
-
pe0
));
}
else
if
(
pin
<
pg0
)
{
return
gpio_get
(
GPIOF
,
1
<<
(
pin
-
pf0
));
}
else
if
(
pin
<
ph0
)
{
return
gpio_get
(
GPIOG
,
1
<<
(
pin
-
pg0
));
}
else
if
(
pin
<
PIN_INVALID
)
{
return
gpio_get
(
GPIOH
,
1
<<
(
pin
-
ph0
));
}
}
return
0
;
}
}
inline
void
write
(
unsigned
char
const
pin
,
unsigned
char
value
)
{
inline
void
write
(
unsigned
char
const
pin
,
unsigned
char
value
)
{
if
(
pin
<
pb0
)
{
if
(
pin
<
pb0
)
{
...
@@ -119,12 +150,42 @@ class GPIO {
...
@@ -119,12 +150,42 @@ class GPIO {
}
else
{
}
else
{
gpio_port_write
(
GPIOB
,
gpio_port_read
(
GPIOB
)
&
~
(
1
<<
(
pin
-
pb0
)));
gpio_port_write
(
GPIOB
,
gpio_port_read
(
GPIOB
)
&
~
(
1
<<
(
pin
-
pb0
)));
}
}
}
else
if
(
pin
<
PIN_INVALID
)
{
}
else
if
(
pin
<
pd0
)
{
if
(
value
)
{
if
(
value
)
{
gpio_port_write
(
GPIOC
,
gpio_port_read
(
GPIOC
)
|
(
1
<<
(
pin
-
pc0
)));
gpio_port_write
(
GPIOC
,
gpio_port_read
(
GPIOC
)
|
(
1
<<
(
pin
-
pc0
)));
}
else
{
}
else
{
gpio_port_write
(
GPIOC
,
gpio_port_read
(
GPIOC
)
&
~
(
1
<<
(
pin
-
pc0
)));
gpio_port_write
(
GPIOC
,
gpio_port_read
(
GPIOC
)
&
~
(
1
<<
(
pin
-
pc0
)));
}
}
}
else
if
(
pin
<
pe0
)
{
if
(
value
)
{
gpio_port_write
(
GPIOD
,
gpio_port_read
(
GPIOD
)
|
(
1
<<
(
pin
-
pd0
)));
}
else
{
gpio_port_write
(
GPIOD
,
gpio_port_read
(
GPIOD
)
&
~
(
1
<<
(
pin
-
pd0
)));
}
}
else
if
(
pin
<
pf0
)
{
if
(
value
)
{
gpio_port_write
(
GPIOE
,
gpio_port_read
(
GPIOE
)
|
(
1
<<
(
pin
-
pe0
)));
}
else
{
gpio_port_write
(
GPIOE
,
gpio_port_read
(
GPIOE
)
&
~
(
1
<<
(
pin
-
pe0
)));
}
}
else
if
(
pin
<
pg0
)
{
if
(
value
)
{
gpio_port_write
(
GPIOF
,
gpio_port_read
(
GPIOF
)
|
(
1
<<
(
pin
-
pf0
)));
}
else
{
gpio_port_write
(
GPIOF
,
gpio_port_read
(
GPIOF
)
&
~
(
1
<<
(
pin
-
pf0
)));
}
}
else
if
(
pin
<
ph0
)
{
if
(
value
)
{
gpio_port_write
(
GPIOG
,
gpio_port_read
(
GPIOG
)
|
(
1
<<
(
pin
-
pg0
)));
}
else
{
gpio_port_write
(
GPIOG
,
gpio_port_read
(
GPIOG
)
&
~
(
1
<<
(
pin
-
pg0
)));
}
}
else
if
(
pin
<
PIN_INVALID
)
{
if
(
value
)
{
gpio_port_write
(
GPIOH
,
gpio_port_read
(
GPIOH
)
|
(
1
<<
(
pin
-
ph0
)));
}
else
{
gpio_port_write
(
GPIOH
,
gpio_port_read
(
GPIOH
)
&
~
(
1
<<
(
pin
-
ph0
)));
}
}
}
}
}
};
};
...
...
This diff is collapsed.
Click to expand it.
src/arch/rm46l8lp/Makefile.inc
View file @
a9ba02fc
...
@@ -106,7 +106,7 @@ arch_clean:
...
@@ -106,7 +106,7 @@ arch_clean:
${
QUIET
}
rm
-f
${
OBJECTS
}
${
QUIET
}
rm
-f
${
OBJECTS
}
cat
:
cat
:
${
QUIET
}
script/cat.py /dev/
${
SERIAL_PORT
}
115200
${
counter_freq
}
429496729
5
${
QUIET
}
script/cat.py /dev/
${
SERIAL_PORT
}
115200
${
counter_freq
}
429496729
6
monitor
:
monitor
:
${
QUIET
}
screen /dev/
${
SERIAL_PORT
}
19200
${
QUIET
}
screen /dev/
${
SERIAL_PORT
}
19200
...
...
This diff is collapsed.
Click to expand it.