[PATCH] bsps/microblaze: Fix uart interrupt conditional code

2021-10-24 Thread Alex White
This includes bspopts.h so that the #define is not lost. This also adds
a macro that was missing when console interrupts were enabled.
---
 bsps/microblaze/include/dev/serial/uartlite.h |  1 +
 .../include/dev/serial/uartlite_l.h   | 20 +++
 2 files changed, 21 insertions(+)

diff --git a/bsps/microblaze/include/dev/serial/uartlite.h 
b/bsps/microblaze/include/dev/serial/uartlite.h
index 6e288d4dc7..c77b3286a6 100644
--- a/bsps/microblaze/include/dev/serial/uartlite.h
+++ b/bsps/microblaze/include/dev/serial/uartlite.h
@@ -38,6 +38,7 @@
 
 #include 
 
+#include 
 #include 
 
 #ifdef __cplusplus
diff --git a/bsps/microblaze/include/dev/serial/uartlite_l.h 
b/bsps/microblaze/include/dev/serial/uartlite_l.h
index 8c0598e191..96271d73ca 100644
--- a/bsps/microblaze/include/dev/serial/uartlite_l.h
+++ b/bsps/microblaze/include/dev/serial/uartlite_l.h
@@ -253,6 +253,26 @@ static inline void Xil_Out32(UINTPTR Addr, u32 Value)
  XUL_SR_TX_FIFO_FULL)
 
 
+#ifdef __rtems__
+//
+/**
+*
+* Check to see if the transmitter is empty.
+*
+* @param   BaseAddress is the  base address of the device
+*
+* @return  TRUE if the transmitter is empty, FALSE otherwise.
+*
+* @noteC-style Signature:
+*  int XUartLite_IsTransmitEmpty(u32 BaseAddress);
+*
+*/
+#define XUartLite_IsTransmitEmpty(BaseAddress) \
+   ((XUartLite_GetStatusReg((BaseAddress)) & XUL_SR_TX_FIFO_EMPTY) == \
+ XUL_SR_TX_FIFO_EMPTY)
+#endif
+
+
 //
 /**
 *
-- 
2.27.0

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel


Re: [PATCH v3 2/2] update README with instructions for stm32 patch

2021-10-24 Thread Robin Müller
Hi,

This patch now contains all files which have the problematic license so the
RTMES LwIP code stays free of them.
Actually, it probably would be a better idea if the patch is applied as
part of the build process.. Does anyone have experience how to do this with
waf?

Kind Regards
Robin Müller

On Sun, 24 Oct 2021 at 12:54, Robin Mueller 
wrote:

> ---
>  README.md | 10 ++
>  1 file changed, 10 insertions(+)
>
> diff --git a/README.md b/README.md
> index ebbef12..3653b67 100644
> --- a/README.md
> +++ b/README.md
> @@ -17,6 +17,16 @@ It is recommended that the user supplies the
> `lwipopts.h` configuration file. Th
>  contain template option files to get started. The user can copy and
> rename this files into the
>  application and then pass the include path to the build system using the
> `--lwip-opts` option.
>
> +# Applying the STM32 patch file
> +
> +Some STM32 files are problematic due to the used license. Therefore, they
> are applied in form of
> +a patch. You need to perform the following steps in order to use the
> STM32H7 BSP:
> +
> +```sh
> +wget -O stm32.patch
> https://raw.githubusercontent.com/robamu-org/rtems-stm32-lwip-port-patch/main/stm32-bsp-eth-dhcp-files.patch
> +git am stm32.patch
> +```
> +
>  # Building with waf
>
>  It is assumed that the path(s) containing the `lwipopts.h` file was
> stored in the environmental
> --
> 2.32.0
>
>
___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

[PATCH v3 2/2] update README with instructions for stm32 patch

2021-10-24 Thread Robin Mueller
---
 README.md | 10 ++
 1 file changed, 10 insertions(+)

diff --git a/README.md b/README.md
index ebbef12..3653b67 100644
--- a/README.md
+++ b/README.md
@@ -17,6 +17,16 @@ It is recommended that the user supplies the `lwipopts.h` 
configuration file. Th
 contain template option files to get started. The user can copy and rename 
this files into the
 application and then pass the include path to the build system using the 
`--lwip-opts` option.
 
+# Applying the STM32 patch file
+
+Some STM32 files are problematic due to the used license. Therefore, they are 
applied in form of
+a patch. You need to perform the following steps in order to use the STM32H7 
BSP:
+
+```sh
+wget -O stm32.patch 
https://raw.githubusercontent.com/robamu-org/rtems-stm32-lwip-port-patch/main/stm32-bsp-eth-dhcp-files.patch
+git am stm32.patch
+```
+
 # Building with waf
 
 It is assumed that the path(s) containing the `lwipopts.h` file was stored in 
the environmental
-- 
2.32.0

___
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel