Changeset c3e1401 in rtems


Ignore:
Timestamp:
10/24/22 13:37:16 (3 months ago)
Author:
Alex White <alex.white@…>
Branches:
master
Children:
e012671
Parents:
24098722
git-author:
Alex White <alex.white@…> (10/24/22 13:37:16)
git-committer:
Joel Sherrill <joel@…> (11/29/22 22:59:26)
Message:

bsps/microblaze: Fix console interrupt build errors

This fixes build errors seen when building with console interrupts
enabled. A few places were missing bspopts.h includes, and one of the
UART functions was not defined.

Location:
bsps/microblaze
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • bsps/microblaze/include/dev/serial/uartlite.h

    r24098722 rc3e1401  
    3737#define LIBBSP_MICROBLAZE_SHARED_UARTLITE_H
    3838
     39#include <bspopts.h>
    3940#include <rtems/termiostypes.h>
    4041
  • bsps/microblaze/include/dev/serial/uartlite_l.h

    r24098722 rc3e1401  
    235235        XUL_SR_RX_FIFO_VALID_DATA)
    236236
     237#ifdef __rtems__
     238/****************************************************************************/
     239/**
     240*
     241* Check to see if the transmitter is empty.
     242*
     243* @param        BaseAddress is the  base address of the device
     244*
     245* @return       TRUE if the transmitter is empty, FALSE otherwise.
     246*
     247* @note         C-style Signature:
     248*               int XUartLite_IsTransmitEmpty(u32 BaseAddress);
     249*
     250*****************************************************************************/
     251#define XUartLite_IsTransmitEmpty(BaseAddress) \
     252  ((XUartLite_GetStatusReg((BaseAddress)) & XUL_SR_TX_FIFO_EMPTY) == \
     253        XUL_SR_TX_FIFO_EMPTY)
     254#endif /* __rtems__ */
    237255
    238256/****************************************************************************/
  • bsps/microblaze/shared/dev/serial/uartlite.c

    r24098722 rc3e1401  
    3636#include <bsp/irq.h>
    3737#include <dev/serial/uartlite.h>
     38#include <bspopts.h>
    3839
    3940#ifdef BSP_MICROBLAZE_FPGA_CONSOLE_INTERRUPTS
     
    4849  }
    4950
    50   while ( ctx->transmitting && !XUartLite_IsTransmitEmpty( ctx ) ) {
     51  while ( ctx->transmitting && !XUartLite_IsTransmitEmpty( ctx->address ) ) {
    5152    rtems_termios_dequeue_characters( tty, 1 );
    5253  }
Note: See TracChangeset for help on using the changeset viewer.