---
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 rtems_t
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
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
*
* @param[out] value The 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
pin_default(gpiox, value);
}
}
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);
type for pin mask
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
ask);
return RTEMS_SUCCESSFUL;
}
rtems_status_code stm32f4_gpio_toggle(
rtems_gpio_ctrl_t *base,
void *pin
)
{
stm32f4_gpio_ctrl_t *ctrl = get_ctrl_from_base(base);
uint32_t pin_mask = *(uint32_t *)pin;
HAL_GPIO_TogglePin(ctrl->port, pin_mask);
ctrl);
// configure the pin
rtems_gpio_set_pin_mode(ctrl, &LED_PIN, RTEMS_GPIO_PINMODE_OUTPUT_PP);
rtems_gpio_set_pull(ctrl, &LED_PIN, RTEMS_GPIO_PULLUP);
// output to LED
rtems_gpio_write(ctrl, &LED_PIN, RTEMS_GPIO_PIN_SET);
/*********/
, _out) \
_driver##_gpio_get_ctrl( _arg , _out )
In the application code:
rtems_gpio_get_ctrl(stm32f4, GPIOD, &led_ctrl);
rtems_gpio_get_ctrl(stm32f4, GPIOA, &button_ctrl);
What do you think about this?
Best,
Duc Doan
On Sat, 2022-06-25 at 21:46 +0200, Karel Gardas wrote:
>
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:/
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
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
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
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,
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
.
+ */
+
+/*
+* 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
@@
+/**
+ * @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
-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 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
---
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
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
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
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
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
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/
+ *
+ * @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
+++ 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
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
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.
> > ---
>
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
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
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
+ *
+ * @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 or at
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 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
--- a/bsps/arm
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
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
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
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/098ca07151bb9186c7681c45f8474cf1441acb40
---
.../stm32f4/hal/Legacy/stm32f4xx_hal_can.c| 1679
.../stm32f4/hal/Legacy/stm32f4xx_hal_eth.c| 2307 +
bsps/arm/
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
+ *
+ * @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 or at
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
--- a/bsps/arm
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
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
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,
> > >
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:
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
/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
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
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
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
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
---
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
/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:
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,
> > >
&
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 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 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 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 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
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
---
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/
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
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
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
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
/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 at
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
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
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
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
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(
.
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
---
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
---
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 = [
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
:
- 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 = rtems.arch_bsp_lib_path(bld.env.RTE
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):
-
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
---
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
- 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
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
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/
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 deletions
---
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',
+
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 +
1 - 100 of 109 matches
Mail list logo