sk
that BSPs will implement, instead of a specific type like
uint32_t. That type could be used as a long mask or just a pin number,
depending on the BSP.
Best,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
rtems_status_code rtems_gpio_read_pin(rtems_gpio_t *gpiox,
rtems_gpio_pin_state *value) {
if (gpiox->is_expander) {
return rtems_gpio_read_pin_ex(gpiox, value);
} else {
return rtems_gpio_read_pin_default(gpiox, value);
}
}
> >
Please give me more fee
m32f4_gpio_ctrl_t *ctrl = get_ctrl_from_base(base);
uint32_t pin_mask = *(uint32_t *)pin;
HAL_GPIO_TogglePin(ctrl->port, pin_mask);
return RTEMS_SUCCESSFUL;
}
/******/
I am still testing and modifying the external interrupt part.
Please let me know what
);
// configure the pin
rtems_gpio_set_pin_mode(ctrl, _PIN, RTEMS_GPIO_PINMODE_OUTPUT_PP);
rtems_gpio_set_pull(ctrl, _PIN, RTEMS_GPIO_PULLUP);
// output to LED
rtems_gpio_write(ctrl, _PIN, RTEMS_GPIO_PIN_SET);
/*/
Best,
Duc Doan
, _out) \
_driver##_gpio_get_ctrl( _arg , _out )
In the application code:
rtems_gpio_get_ctrl(stm32f4, GPIOD, _ctrl);
rtems_gpio_get_ctrl(stm32f4, GPIOA, _ctrl);
What do you think about this?
Best,
Duc Doan
On Sat, 2022-06-25 at 21:46 +0200, Karel Gardas wrote:
>
> Hello Duc,
&g
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
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 +
+++ 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/2baea7f3ffb178d581b3c6b6b7c1b63f8ac55852
---
.gitignore| 1 +
bsps/arm/include/cmsis_compiler.h | 266 +
to 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
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
@@
+/**
+ * @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
.
+ */
+
+/*
+* 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
-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
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/f7ed35b5ce25a5410e72e4950d27ea86afbfe5c4
---
.../stm32f4/hal/Legacy/stm32f4xx_hal_can.c| 1679
.../stm32f4/hal/Legacy/stm32f4xx_hal_eth.c| 2307 +
to 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
+ *
+ * @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
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
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
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 +
0; // 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 operations are still fast. One drawback of this a
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, maybe we can
ju
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
---
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
---
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:/
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,
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 | 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 @@
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
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
structures that need to be implemented by
BSP. The functions include initialization, configuration, reading, writing, and
toggle. I took inspiration from the Wiring framework. I also have an example
implementation for the STM32F4 BSP.
I would love to get feedback from all of you.
Thank you,
Duc Doan
state of the pin.
*
* @retval RTEMS_SUCCESSFUL Pin succesfully read.
* @retval RTEMS_UNSATISFIED Could not read pin.
*/
extern rtems_status_code rtems_gpio_read_pin(rtems_gpio_t *gpiox,
rtems_gpio_pin_state *value);
Best,
Duc Doan
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
root directory". The root directory is likely the
STM32F4xx_HAL_Driver folder that I have included the direct link above. I
would like to ask if I need to modify (adding text clarification in the
license text for each file) the files, or should I do something else to be
sa
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,
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
> >
>
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
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
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
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
---
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
---
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
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,
> > >
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 +
and 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
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 +
+ *
+ * @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
ading 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
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
/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
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
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: Implementation for GPIO and ADC
.gitig
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/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
a 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
---
testsuites/samples/hello/init.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/testsuites/samples/hello/init.c b/testsuites/samples/hello/init.c
index 83f6342ab3..dde33285ab 100644
--- a/testsuites/samples/hello/init.c
+++ b/testsuites/samples/hello/init.c
@@ -42,6 +42,7 @@ static
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,
> > >
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
---
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 = [
.
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
---
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 +-
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 inse
:
- 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
---
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 =
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
---
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 +-
---
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
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 | 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 =
- 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
---
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 +++
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
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):
-
/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, are
/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
- 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 =
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
/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
+ * modification, are
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 +++
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):
-
---
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
---
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',
+
: 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
/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
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
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
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/shared/start/b
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
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
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
, 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
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 files
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
1 - 100 of 108 matches
Mail list logo