csb337/include/bsp.h: Do not include libchip/serial to avoid conflicts when building libchip/rtc

This commit is contained in:
Joel Sherrill
2014-10-09 10:46:43 -05:00
parent 6adacd8971
commit bc77bdadb3

View File

@@ -29,7 +29,6 @@ extern "C" {
#include <rtems.h>
#include <rtems/console.h>
#include <rtems/clockdrv.h>
#include <libchip/serial.h>
/**
* @defgroup arm_csb337 CSB337 Support
@@ -50,7 +49,13 @@ extern "C" {
/* What is the last interrupt? */
#define BSP_MAX_INT AT91RM9200_MAX_INT
/*
* forward reference the type to avoid conflicts between libchip serial
* and libchip rtc get and set register types.
*/
typedef struct _console_tbl console_tbl;
console_tbl *BSP_get_uart_from_minor(int minor);
static inline int32_t BSP_get_baud(void) {return 38400;}
#define ST_PIMR_PIV 33 /* 33 ticks of the 32.768Khz clock ~= 1msec */