This patch converts all files imported from ST to Unix line endings
using dos2unix.
---
rtemslwip/stm32f4/lwipopts.h | 294 ++---
stm32/driver/dp83848.c | 1328 +++
stm32/driver/dp83848.h | 872 +++
stm32/ethernetif.c | 1972 +
---
lwip.py | 21 +
1 file changed, 21 insertions(+)
diff --git a/lwip.py b/lwip.py
index 2d93d3e..63e1f1d 100644
--- a/lwip.py
+++ b/lwip.py
@@ -92,6 +92,20 @@ common_source_files = [
'rtemslwip/bsd_compat/rtems-kernel-program.c'
]
+stm32_drv_incl = [
+'stm32',
+
This patch adds ST's Ethernet and lwIP port and DP83848 driver. The
files are generated using STM32CubeIDE with STM32F4 Cube FW v1.27.1,
under RTOS mode.
---
COPYING.stm32 | 28 ++
ORIGIN.stm32 | 2 +
stm32/driver/dp83848.c | 664 +++
stm32/driver/
/stm32f4_lwip.c
create mode 100644 rtemslwip/stm32f4/stm32f4_lwip.h
diff --git a/rtemslwip/stm32f4/stm32f4_lwip.c b/rtemslwip/stm32f4/stm32f4_lwip.c
new file mode 100644
index 000..4aee9fd
--- /dev/null
+++ b/rtemslwip/stm32f4/stm32f4_lwip.c
@@ -0,0 +1,39 @@
+/*
+ * Copyright (C) 2022 Duc Doan
tstart.c b/rtemslwip/stm32f4/netstart.c
new file mode 100644
index 000..fed7aae
--- /dev/null
+++ b/rtemslwip/stm32f4/netstart.c
@@ -0,0 +1,73 @@
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification,
Updates #4714
---
lwip.py | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/lwip.py b/lwip.py
index 2b0c205..2d93d3e 100644
--- a/lwip.py
+++ b/lwip.py
@@ -110,15 +110,7 @@ def build(bld):
source_files.extend(common_source_files)
def walk_sources(path):
-
---
lwip.py | 34 +-
1 file changed, 21 insertions(+), 13 deletions(-)
diff --git a/lwip.py b/lwip.py
index 84eef2c..2b0c205 100644
--- a/lwip.py
+++ b/lwip.py
@@ -99,6 +99,8 @@ def build(bld):
drv_incl = []
arch_lib_path = rtems.arch_bsp_lib_path(bld.env
- Remove unused lwip.c
v4:
- Fix improper code addition
- Fix aarch64 BSP list in lwip.py
- Remove unused lwip.h
Duc Doan (7):
lwip.py: Change arch and bsp check method
lwip.py: Use ant_glob instead of os.walk()
Add STM32 Ethernet source
rtemslwip: Add STM32F4 lwipopts.h and netstart.c
: Re: [PATCH rtems-lwip v3 1/7] lwip.py: Change arch and bsp check method
On 9/8/2022 11:34, Duc Doan wrote:
> ---
> lwip.py | 31 ++-
> 1 file changed, 18 insertions(+), 13 deletions(-)
>
> diff --git a/lwip.py b/lwip.py
> index 84eef2c..1f0b8e2 1006
This patch converts all files imported from ST to Unix line endings
---
rtemslwip/stm32f4/lwipopts.h | 294 ++---
stm32/driver/dp83848.c | 1328 +++
stm32/driver/dp83848.h | 872 +++
stm32/ethernetif.c | 1970 +
---
lwip.py | 21 +
1 file changed, 21 insertions(+)
diff --git a/lwip.py b/lwip.py
index 593f0e0..2d8769d 100644
--- a/lwip.py
+++ b/lwip.py
@@ -92,6 +92,20 @@ common_source_files = [
'rtemslwip/bsd_compat/rtems-kernel-program.c'
]
+stm32_drv_incl = [
+'stm32',
+
---
rtemslwip/stm32f4/stm32f4_lwip.c | 14
rtemslwip/stm32f4/stm32f4_lwip.h | 9 +++
stm32/ethernetif.c | 110 ++-
stm32/ethernetif.h | 8 ++-
stm32/lwip.h | 2 +
5 files changed, 140 insertions(+), 3 deletions
This patch adds ST's Ethernet and lwIP port and DP83848 driver. The
files are generated using STM32CubeIDE with STM32F4 Cube FW v1.27.1,
under RTOS mode.
---
COPYING.stm32 | 28 ++
ORIGIN.stm32 | 2 +
stm32/driver/dp83848.c | 664 +++
stm32/driver/
tstart.c b/rtemslwip/stm32f4/netstart.c
new file mode 100644
index 000..74edac6
--- /dev/null
+++ b/rtemslwip/stm32f4/netstart.c
@@ -0,0 +1,74 @@
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modifica
Updates #4714
---
lwip.py | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/lwip.py b/lwip.py
index 1f0b8e2..593f0e0 100644
--- a/lwip.py
+++ b/lwip.py
@@ -110,15 +110,7 @@ def build(bld):
source_files.extend(common_source_files)
def walk_sources(path):
-
- Remove unused lwip.c
Duc Doan (7):
lwip.py: Change arch and bsp check method
lwip.py: Use ant_glob instead of os.walk()
Add STM32 Ethernet source
rtemslwip: Add STM32F4 lwipopts.h and netstart.c
RTEMS port of lwIP for STM32 and STM32F4 BSP
lwip.py: Add STM32 lwIP port to build
stm32
---
lwip.py | 31 ++-
1 file changed, 18 insertions(+), 13 deletions(-)
diff --git a/lwip.py b/lwip.py
index 84eef2c..1f0b8e2 100644
--- a/lwip.py
+++ b/lwip.py
@@ -99,6 +99,8 @@ def build(bld):
drv_incl = []
arch_lib_path = rtems.arch_bsp_lib_path(bld.env.RT
---
lwip.py | 22 ++
1 file changed, 22 insertions(+)
diff --git a/lwip.py b/lwip.py
index 9425dc8..bb382cd 100644
--- a/lwip.py
+++ b/lwip.py
@@ -92,6 +92,21 @@ common_source_files = [
'rtemslwip/bsd_compat/rtems-kernel-program.c'
]
+stm32_drv_incl = [
+'stm32',
+
---
rtemslwip/stm32f4/lwipopts.h | 141 +++
rtemslwip/stm32f4/netstart.c | 52 +
2 files changed, 193 insertions(+)
create mode 100644 rtemslwip/stm32f4/lwipopts.h
create mode 100644 rtemslwip/stm32f4/netstart.c
diff --git a/rtemslwip/stm32f4/lwipopt
---
rtemslwip/stm32f4/lwipopts.h | 24 ++-
rtemslwip/stm32f4/netstart.c | 29 +++-
rtemslwip/stm32f4/stm32f4_lwip.c | 14 ++
rtemslwip/stm32f4/stm32f4_lwip.h | 9 +
stm32/ethernetif.c | 288 +--
stm32/ethernetif.h | 14 +-
stm32
This patch adds ST's Ethernet and lwIP port and DP83848 driver. The
files are generated using STM32CubeIDE with STM32F4 Cube FW v1.27.1,
under no RTOS mode.
---
stm32/driver/dp83848.c | 664 +
stm32/driver/dp83848.h | 436
stm32/ethernet
Updates #4714
---
lwip.py | 10 +-
1 file changed, 1 insertion(+), 9 deletions(-)
diff --git a/lwip.py b/lwip.py
index 9db5348..9425dc8 100644
--- a/lwip.py
+++ b/lwip.py
@@ -110,15 +110,7 @@ def build(bld):
source_files.extend(common_source_files)
def walk_sources(path):
-
---
lwip.py | 30 +-
1 file changed, 17 insertions(+), 13 deletions(-)
diff --git a/lwip.py b/lwip.py
index 84eef2c..9db5348 100644
--- a/lwip.py
+++ b/lwip.py
@@ -99,6 +99,8 @@ def build(bld):
drv_incl = []
arch_lib_path = rtems.arch_bsp_lib_path(bld.env.RTE
:
- Changes the arch and BSP check to use rtems.arch and rtems.bsp
- Updates #4714: replace os.walk by ant_glob
- Group STM32F4 BSP-specific files together
Duc Doan (7):
lwip.py: Change arch and bsp check method
lwip.py: Use ant_glob instead of os.walk()
Add STM32 Ethernet source
rtemslwip
Hello Chris,
Thank you for pointing them out. I'll fix them in the next patch set.
Best,
Duc
On Mon, 2022-09-05 at 09:05 +1000, Chris Johns wrote:
> On 4/9/2022 11:25 am, Duc Doan wrote:
> > ---
> > lwip.py | 20 +++-
> > 1 file changed, 19
---
lwip.py | 20 +++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/lwip.py b/lwip.py
index 84eef2c..d806b64 100644
--- a/lwip.py
+++ b/lwip.py
@@ -92,6 +92,17 @@ common_source_files = [
'rtemslwip/bsd_compat/rtems-kernel-program.c'
]
+stm32f4_drv_incl = [
This patch adds ST's Ethernet and lwIP port and DP83848 driver. The
files are generated using STM32CubeIDE with STM32F4 Cube FW v1.27.1,
under no RTOS mode.
---
stm32/driver/dp83848.c | 664 +
stm32/driver/dp83848.h | 436
stm32/ethernet
---
rtemslwip/stm32f4/lwipopts.h | 24 ++-
rtemslwip/stm32f4/netstart.c | 29 +++-
rtemslwip/stm32f4/stm32f4_lwip.c | 14 ++
rtemslwip/stm32f4/stm32f4_lwip.h | 9 +
stm32/ethernetif.c | 288 +--
stm32/ethernetif.h | 14 +-
stm32
.
Duc Doan (5):
Add STM32 Ethernet source
rtemslwip: Add STM32F4 lwipopts.h and netstart.c
RTEMS port of lwIP for STM32 and STM32F4 BSP
lwip.py: Add STM32 lwIP port to build
stm32: Convert to Unix line endings
lwip.py | 20 +-
rtemslwip/stm32f4/lwipopts.h | 151
---
rtemslwip/stm32f4/lwipopts.h | 141 +++
rtemslwip/stm32f4/netstart.c | 52 +
2 files changed, 193 insertions(+)
create mode 100644 rtemslwip/stm32f4/lwipopts.h
create mode 100644 rtemslwip/stm32f4/netstart.c
diff --git a/rtemslwip/stm32f4/lwipopt
The signature for _Thread_Close() was different in rtems-score-thread.ini
and in cpukit/include/rtems/score/threadimpl.h. This changes
_Thread_Close() in the .ini file to comply with the new function
prototype in threadimpl.h.
---
linkers/rtems-score-thread.ini | 2 +-
1 file changed, 1 insertion(
Updates #4691
---
spec/build/cpukit/librtemscpu.yml | 1 +
1 file changed, 1 insertion(+)
diff --git a/spec/build/cpukit/librtemscpu.yml
b/spec/build/cpukit/librtemscpu.yml
index 2b12507bff..1270ca131b 100644
--- a/spec/build/cpukit/librtemscpu.yml
+++ b/spec/build/cpukit/librtemscpu.yml
@@ -191
Duc Doan (1):
build/cpukit: Add confdefs/face.h to install rule
spec/build/cpukit/librtemscpu.yml | 1 +
1 file changed, 1 insertion(+)
--
2.37.1
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
RTEMS, or is there anything I need to
do to include these sources?
Thank you,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
100644
index 00..61ced0f4c9
--- /dev/null
+++ b/bsps/arm/stm32f4/adc/adc.c
@@ -0,0 +1,495 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ * @file
+ *
+ * @ingroup stm32f4_adc
+ */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in
be required.
+ *
+ * The general process to use ADC API:
+ * - Get an ADC object using @ref rtems_adc_get()
+ * - Configure ADC object with rtems_adc_set_* functions
+ * - Call @ref rtems_adc_init()
+ * - The ADC object should be ready by now
+ */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at
/gpio/gpio.c
new file mode 100644
index 00..34b1d62cc0
--- /dev/null
+++ b/bsps/arm/stm32f4/gpio/gpio.c
@@ -0,0 +1,557 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/**
+ * @file
+ *
+ * @ingroup stm32f4_gpio
+ */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com
refer to a physical GPIO controller,
+ * an ADC, a DAC, or just a group of pins that contains one or more pins.
+ *
+ */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provide
0ec5ac27b5..2297430844 100644
--- a/bsps/arm/stm32f4/start/bspstart.c
+++ b/bsps/arm/stm32f4/start/bspstart.c
@@ -1,5 +1,6 @@
/*
* Copyright (c) 2012 Sebastian Huber. All rights reserved.
+ * Copyright (c) 2022 Duc Doan (dtbpkmte at gmail.com).
*
* The license and distribution terms for this
m/stm32f4/hal/stm32f4xx_ll_tim.c
+- bsps/arm/stm32f4/hal/stm32f4xx_ll_usart.c
+- bsps/arm/stm32f4/hal/stm32f4xx_ll_usb.c
+- bsps/arm/stm32f4/hal/stm32f4xx_ll_utils.c
+- bsps/arm/stm32f4/hal/system_stm32f4xx.c
- bsps/arm/shared/irq/irq-armv7m.c
- bsps/arm/shared/irq/irq-dispatch-armv7m.c
- bsps/arm/shar
This patch adds STM32F4 HAL files taken from ST's repository
at: https://github.com/STMicroelectronics/STM32CubeF4, Release
v1.27.1, commit 52757b5e33259a088509a777a9e3a5b971194c7d.
The device headers are copied from
Drivers/CMSIS/Device/ST/STM32F4xx/Include.
The HAL and LL files are copied from
Dr
---
spec/build/bsps/arm/grp.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/spec/build/bsps/arm/grp.yml b/spec/build/bsps/arm/grp.yml
index 37229fddc2..52c2a9f4f3 100644
--- a/spec/build/bsps/arm/grp.yml
+++ b/spec/build/bsps/arm/grp.yml
@@ -13,6 +13,9 @@ install:
- bsps/arm/include/
GPIO API to comply with the peripherals API
- Changed ADC API to comply with the peripherals API
- Changed STM32F4 implementation
v6:
- Split commits that add CMSIS and HAL
- Removed peripheral API
- Changed ADC API: this is now separate from GPIO API
Duc Doan (10):
bsps/arm: Convert CMSIS
Hello Christian,
On Sat, 2022-07-30 at 22:19 +0200, o...@c-mauderer.de wrote:
>
>
>
> Am 30.07.22 um 21:41 schrieb Karel Gardas:
> > On 7/30/22 16:32, o...@c-mauderer.de wrote:
> > > > bsps/arm/include/cmsis_compiler.h | 266 +
> > > > bsps/arm/include/cmsis_gcc.h
Hello Christian,
On Tue, 2022-08-02 at 07:26 +0200, Christian MAUDERER wrote:
> That page most likely ignores line endings. Try it with `file` or
> `dos2unix -i`:
>
>
> sh> git co master
> [...]
> sh> file bsps/arm/include/cmsis_gcc.h
> bsps/arm/include/cmsis_gcc.h: C source, ASCII text, wi
Hello Christian,
On Mon, 2022-08-01 at 20:29 +0200, o...@c-mauderer.de wrote:
> Hello Duc,
>
> Am 01.08.22 um 05:50 schrieb Duc Doan:
> > Hello Christian,
> >
> > On Sat, 2022-07-30 at 17:50 +0200, o...@c-mauderer.de wrote:
> > > Hello Duc,
> > >
Hello Christian,
On Mon, 2022-08-01 at 20:32 +0200, o...@c-mauderer.de wrote:
> Hello Duc,
>
> Am 01.08.22 um 04:13 schrieb Duc Doan:
> > Hello Christian,
> >
> > On Sun, 2022-07-31 at 20:01 +0200, o...@c-mauderer.de wrote:
> > > Hello Duc,
> > >
Hello Christian,
On Sat, 2022-07-30 at 17:50 +0200, o...@c-mauderer.de wrote:
> Hello Duc,
>
> Am 24.07.22 um 14:01 schrieb Duc Doan:
> > ---
> > bsps/include/bsp/gpio2.h | 528
> >
> > bsps/include/bsp/periph_api.h
Hello Christian,
On Sun, 2022-07-31 at 20:01 +0200, o...@c-mauderer.de wrote:
> Hello Duc,
>
> Am 31.07.22 um 17:07 schrieb Duc Doan:
> > Hello Christian,
> >
> > On Sat, 2022-07-30 at 16:32 +0200, o...@c-mauderer.de wrote:
> > > Hello Duc,
> > >
&
/git.rtems.org/rtems/commit/bsps/arm/imxrt?id=48f6a6c302a3e1a3f8915e2503d0fe618d1af285
>
> Not the best solution but at least someone else can find out roughly
> what I did.
>
Ah yes, I will do that. I thought I only needed to put the description
in the email before.
> Am 24.07.22 um 14:
---
bsps/arm/stm32f4/console/console-config.c | 4 +++-
bsps/arm/stm32f4/console/usart.c | 6 ++
bsps/arm/stm32f4/include/bsp/usart.h | 3 +++
3 files changed, 12 insertions(+), 1 deletion(-)
diff --git a/bsps/arm/stm32f4/console/console-config.c
b/bsps/arm/stm32f4/console/cons
default console_tbl instead of a value from
Console_Port_Tbl. This default instance is the USART with
smallest number that is enabled (the first element in
Console_Configuration_Ports).
Duc Doan (1):
bsps/stm32f4: Fix usart_write_polled()
bsps/arm/stm32f4/console/console-config.c | 4 +++-
bsps/arm
code is submitted to devel mailing list. The newest version is v5.
Thank you,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
Hello,
On Mon, 2022-07-25 at 11:42 +1000, Chris Johns wrote:
> On 23/7/2022 1:53 pm, Duc Doan wrote:
> > This is the new GPIO API. The header file is
> > gpio2.h.
> > ---
> > bsps/include/bsp/gpio2.h | 526
> >
>
100644
index 00..21baa9ee2c
--- /dev/null
+++ b/bsps/arm/stm32f4/adc/adc.c
@@ -0,0 +1,655 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are
100644
index 00..d168e1b201
--- /dev/null
+++ b/bsps/include/bsp/adc.h
@@ -0,0 +1,292 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are
/include/bsp/gpio2.h
new file mode 100644
index 00..9cb1c720ab
--- /dev/null
+++ b/bsps/include/bsp/gpio2.h
@@ -0,0 +1,528 @@
+/* SPDX-License-Identifier: BSD-2-Clause */
+
+/*
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/commit/6f1fbc7dd7a5e0877d8bff11e1b21558928dbc16
---
.gitignore| 1 +
bsps/arm/include/cmsis_compiler.h | 266 +
bsps/arm/inclu
ates
on a GPIO pin
- Changed GPIO API to comply with the peripherals API
- Changed ADC API to comply with the peripherals API
- Changed STM32F4 implementation
Duc Doan (4):
bsps/stm32f4 Include STM32F4 HAL
bsps: New GPIO API & peripherals API framework
bsps: Add ADC API
bsps/stm32f4:
Hello Christian,
On Sat, 2022-07-23 at 10:31 +0200, o...@c-mauderer.de wrote:
> Hello Duc,
>
> Am 23.07.22 um 09:37 schrieb Duc Doan:
> > Hello Karel,
> >
> > On Sat, 2022-07-23 at 09:09 +0200, Karel Gardas wrote:
> > >
> > > Duc,
> > >
ite by downloading the zip. And yes, when
I tried the command, all HAL files have CRLF. I will remove them in the
next patch set.
Thanks for the reminder,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
Changes GPIO port guards from variant to #ifdef
of ports. Fixed ISR memory-leak bug. Changed GPIO
functions to extern and added comments for them.
---
bsps/arm/stm32f4/gpio/gpio.c| 182
bsps/arm/stm32f4/include/bsp/stm32f4_gpio.h | 167 ++
2 fil
---
bsps/arm/stm32f4/gpio/gpio.c| 32 +
bsps/arm/stm32f4/include/bsp/stm32f4_gpio.h | 20 +
2 files changed, 52 insertions(+)
diff --git a/bsps/arm/stm32f4/gpio/gpio.c b/bsps/arm/stm32f4/gpio/gpio.c
index efc005bd9f..ac4d3b4f56 100644
--- a/bsps/arm
Doan
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
RTEMS GPIO new API implementation for STM32F4.
+ *
+ * @note RTEMS_GPIO_PINMODE_BSP_SPECIFIC is Alternate mode for STM32F4 BSP
+ */
+
+/*
+ * Copyright (c) 2022 Duc Doan
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ *
+ * @brief RTEMS GPIO new API definition.
+ */
+
+/*
+* Copyright (c) 2022 Duc Doan
+*
+* The license and distribution terms for this file may be
+* found in the file LICENSE in this distribution or at
+* http://www.rtems.org/license/LICENSE.
+*/
+
+#ifndef LIBBSP_BSP_GPIO2_H
+#define
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/commit/e21e1fa527da67533f797ed3dc6fc70cf245725b
---
.gitignore| 1 +
bsps/arm/include/cmsis_compiler.h | 266 +
bsps/arm/inclu
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/commit/098ca07151bb9186c7681c45f8474cf1441acb40
---
.../stm32f4/hal/Legacy/stm32f4xx_hal_can.c| 1679
.../stm32f4/hal/Legacy/stm32f4xx_hal_eth.c| 2307 +
bsps/arm/
STM32F4 GPIO files
v4:
- Fixed GPIO port guards
- Fixed potential memory-leak bug of STM32F4 GPIO interrupt system
- Added comments to STM32F4 GPIO functions and made them extern
Duc Doan (7):
bsps/stm32f4 Include STM32F4 HAL
bsps/arm: Integrate and build STM32F4 HAL
bsps: Add GPIO API
bsps
ections for me? Do you mean we should find ways to change the way
our current APIs work with static constructions instead of adding new
APIs?
Thank you,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
and I am fixing/writing test applications and
adding documentation. I would appreciate all feedback. Thank you very
much.
Best,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
Hello,
This blog of mine describes the API and shows how to use/implement the
API for a BSP/driver:
https://medium.com/@dtbpkmte/gsoc-2022-rtems-coding-period-week-4-gpio-wiki-1f10e5c4458
Thank you,
Duc Doan
___
devel mailing list
devel@rtems.org
http
---
bsps/arm/stm32f4/gpio/gpio.c| 32 +
bsps/arm/stm32f4/include/bsp/stm32f4_gpio.h | 20 +
2 files changed, 52 insertions(+)
diff --git a/bsps/arm/stm32f4/gpio/gpio.c b/bsps/arm/stm32f4/gpio/gpio.c
index efc005bd9f..ac4d3b4f56 100644
--- a/bsps/arm
This patch adds GPIO functionality of STM32F4 that the GPIO API
does not cover. It includes locking pins and setting alternate
function.
Duc Doan (1):
bsps/stm32f4: Add missing GPIO functionality
bsps/arm/stm32f4/gpio/gpio.c| 32 +
bsps/arm/stm32f4/include
Doan
+ * Copyright (C) 2022 Duc Doan (dtbpkmte at gmail.com)
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
RTEMS GPIO new API implementation for STM32F4.
+ *
+ * @note RTEMS_GPIO_PINMODE_BSP_SPECIFIC is Alternate mode for STM32F4 BSP
+ */
+
+/*
+ * Copyright (c) 2022 Duc Doan
+ *
+ * The license and distribution terms for this file may be
+ * found in the file LICENSE in this distribution or at
+ *
+ * @brief RTEMS GPIO new API definition.
+ */
+
+/*
+* Copyright (c) 2022 Duc Doan
+*
+* The license and distribution terms for this file may be
+* found in the file LICENSE in this distribution or at
+* http://www.rtems.org/license/LICENSE.
+*/
+
+#ifndef LIBBSP_BSP_GPIO2_H
+#define
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/tree/2baea7f3ffb178d581b3c6b6b7c1b63f8ac55852
---
.gitignore| 1 +
bsps/arm/include/cmsis_compiler.h | 266 +
bsps/arm/include
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/tree/f7ed35b5ce25a5410e72e4950d27ea86afbfe5c4
---
.../stm32f4/hal/Legacy/stm32f4xx_hal_can.c| 1679
.../stm32f4/hal/Legacy/stm32f4xx_hal_eth.c| 2307 +
bsps/arm/st
static helper arrays to make sure they are placed on ROM
v3:
- Removed rtems_gpio_begin()
- bsp_gpio_register_controllers() now needs to be called from hook1
(can be configured by option STM32F4_ENABLE_GENERIC_GPIO)
- Updated license text for API files and STM32F4 GPIO files
Duc Doan (5):
bsps
Hello Karel,
On Thu, 2022-07-07 at 14:36 +0200, Karel Gardas wrote:
>
> Hello Duc,
>
> just two notes which bothers me most.
>
> On 7/7/22 13:34, Duc Doan wrote:
> > This is the new GPIO API. The header file is
> > gpio2.h.
> > ---
>
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/tree/2baea7f3ffb178d581b3c6b6b7c1b63f8ac55852
---
.gitignore| 1 +
bsps/arm/include/cmsis_compiler.h | 266 +
bsps/arm/include
+++ b/bsps/arm/stm32f4/gpio/gpio.c
@@ -0,0 +1,555 @@
+/**
+ * @file
+ *
+ * @ingroup rtems_bsp/arm/stm32f4
+ *
+ * @brief RTEMS GPIO new API implementation for STM32F4.
+ *
+ * @note RTEMS_GPIO_PINMODE_BSP_SPECIFIC is Alternate mode for STM32F4 BSP
+ */
+
+/*
+ * Copyright (c) 2022 Duc Doan
+ *
+ * @brief RTEMS GPIO new API definition.
+ */
+
+/*
+* Copyright (c) 2022 Duc Doan
+*
+* The license and distribution terms for this file may be
+* found in the file LICENSE in this distribution or at
+* http://www.rtems.org/license/LICENSE.
+*/
+
+#ifndef LIBBSP_BSP_GPIO2_H
+#define
This patch is too large so I cannot send via email. Please find it here:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/tree/f7ed35b5ce25a5410e72e4950d27ea86afbfe5c4.
---
.../stm32f4/hal/Legacy/stm32f4xx_hal_can.c| 1679
.../stm32f4/hal/Legacy/stm32f4xx_hal_eth.c| 2307 +
bsps/arm/
static helper arrays to make sure they are placed on ROM
Duc Doan (4):
bsps/stm32f4 Include STM32F4 HAL
bsps/arm: Integrate and build STM32F4 HAL
bsps: Add GPIO API
bsps/stm32f4: Add GPIO implementation for STM32F4
.gitignore| 1 +
bsps/arm/include
Hello Cedric,
On Thu, 2022-07-07 at 10:32 +0200, Cedric Berger wrote:
> Hello,
>
> On 07.07.22 09:35, Duc Doan wrote:
> > Actually my project is focused on STM32F4, but it is nice that the
> > code
> > could be extensible to H7. However, I can't think of a good w
d to H7 BSP? Or is there a better way to share the code among
all STM32 BSPs?
Best,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
Please apply this patch in order to build the BSP.
Best,
Duc Doan
---
spec/build/bsps/arm/grp.yml | 3 +++
1 file changed, 3 insertions(+)
diff --git a/spec/build/bsps/arm/grp.yml b/spec/build/bsps/arm/grp.yml
index b33cc9cdda..d4d259b60c 100644
--- a/spec/build/bsps/arm/grp.yml
+++ b/spec
---
bsps/arm/stm32f4/gpio/gpio.c | 14 --
1 file changed, 14 deletions(-)
diff --git a/bsps/arm/stm32f4/gpio/gpio.c b/bsps/arm/stm32f4/gpio/gpio.c
index b632236d8d..8e3f7c7131 100644
--- a/bsps/arm/stm32f4/gpio/gpio.c
+++ b/bsps/arm/stm32f4/gpio/gpio.c
@@ -330,11 +330,6 @@ rtems_statu
Hello Cedric,
Thank you for your feedback. I agree with you that there are places that could
be optimized out. Here is a new patch for that.
Best,
Duc Doan
---
bsps/arm/stm32f4/gpio/gpio.c | 87
1 file changed, 29 insertions(+), 58 deletions(-)
diff
-RTEMS/commit/d226d07b8985da2f4135340dac9593089d64b49d
PATCH 4/4:
https://github.com/dtbpkmte/GSoC-2022-RTEMS/commit/f415cc0a2b58f0ae5f2219f2ef96ca7c429d66f6
They were too big that I could not send via email.
Best,
Duc Doan
___
devel mailing list
devel
@@
+/**
+ * @file
+ *
+ * @ingroup rtems_bsp/arm/stm32f4
+ *
+ * @brief RTEMS GPIO new API implementation for STM32F4.
+ *
+ * @note RTEMS_GPIO_PINMODE_BSP_SPECIFIC is Alternate mode for STM32F4 BSP
+ */
+
+/*
+ * Copyright (c) 2022 Duc Doan
+ *
+ * The license and distribution terms for this
.
+ */
+
+/*
+* Copyright (c) 2022 Duc Doan
+*
+* The license and distribution terms for this file may be
+* found in the file LICENSE in this distribution or at
+* http://www.rtems.org/license/LICENSE.
+*/
+
+#ifndef LIBBSP_BSP_GPIO2_H
+#define LIBBSP_BSP_GPIO2_H
+
+#include
+#include
+
+/**
+ * Configure
Hello,
This patch adds a new GPIO API that aims at portability. GPIO of STM32F4 BSP
has been implemented using this API. The sample application code can be found
at https://github.com/dtbpkmte/GSoC-2022-RTEMS-Sample-Apps.
Best,
Duc Doan
.gitignore
s quite hard to integrate into current functions
because of using virtual pin.
I have an assumption that needs confirmation: all microcontrollers (or
most of them) have register size equal to word size, and pin masks
should be at word size. Is that assumption correct? If so,
registers pins to the table
uint32_t led_pin = 60; // just a random number
rtems_gpio_ctrl_t *led_ctrl = rtems_gpio_get_ctrl(60);
rtems_gpio_write(led_ctrl, RTEMS_GPIO_PIN_SET);
/* END OF EXAMPLE **/
The only place where the search must be done is now in get_ctrl(), so
read/write
might be added computation because of translating abstract
pin number to physical pin/port.
What do you think about this?
Best,
Duc Doan
On Sun, 2022-06-26 at 20:48 +0200, Karel Gardas wrote:
> On 6/26/22 10:49, Duc Doan wrote:
> > > > #define rtems_gpio_get_ctrl(_dri
Hello Christian and Karel,
On Sun, 2022-06-26 at 10:02 +0200, o...@c-mauderer.de wrote:
> Hello Karel and Duc,
>
> Am 26.06.22 um 09:24 schrieb Duc Doan:
> > Hello Karel,
> >
> > I came up with this solution: making a macro that returns a
> > function
ore
flexible without complicating the configuration too much. About the
strength, I think it should be in the BSP/driver-specific configuration
structure because not every controller has it.
Best,
Duc Doan
___
devel mailing list
devel@rtems.org
http:/
1 - 100 of 109 matches
Mail list logo