2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>

* configure.ac, console/conscfg.c: Add CONSOLE_USE_INTERRUPTS.
This commit is contained in:
Joel Sherrill
2009-08-28 18:20:12 +00:00
parent 9610896132
commit fd3cd3e3e3
3 changed files with 35 additions and 20 deletions

View File

@@ -1,3 +1,7 @@
2009-08-28 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, console/conscfg.c: Add CONSOLE_USE_INTERRUPTS.
2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com> 2009-07-16 Joel Sherrill <joel.sherrill@oarcorp.com>
* configure.ac: Rename BSP_BOOTCARD_OPTIONS to * configure.ac: Rename BSP_BOOTCARD_OPTIONS to

View File

@@ -15,6 +15,16 @@ RTEMS_PROG_CC_FOR_TARGET([-ansi -fasm])
RTEMS_CANONICALIZE_TOOLS RTEMS_CANONICALIZE_TOOLS
RTEMS_PROG_CCAS RTEMS_PROG_CCAS
## bsp-specific options
RTEMS_BSPOPTS_SET([CONSOLE_USE_INTERRUPTS],[*],[0])
RTEMS_BSPOPTS_HELP([CONSOLE_USE_INTERRUPTS],
[The erc32 console driver can operate in either polled or interrupt mode.
Under the simulator (especially when FAST_UART is defined), polled seems to operate
better. It is common for a task to print a line (like the end of test message) and
then exit. In this case, the program returns control to the simulator command line
before the program has even queued the output to the uart. Thus sis has no chance
of getting the data out.])
RTEMS_BSP_BOOTCARD_OPTIONS RTEMS_BSP_BOOTCARD_OPTIONS
RTEMS_BSP_CLEANUP_OPTIONS(0, 0) RTEMS_BSP_CLEANUP_OPTIONS(0, 0)

View File

@@ -12,6 +12,7 @@
*/ */
#include <bsp.h> #include <bsp.h>
#include <bspopts.h>
#include <libchip/serial.h> #include <libchip/serial.h>
#include <libchip/mc68681.h> #include <libchip/mc68681.h>
@@ -37,26 +38,26 @@
#define MC68681_FUNCTIONS &mc68681_fns_polled #define MC68681_FUNCTIONS &mc68681_fns_polled
#endif #endif
console_tbl Console_Port_Tbl[] = { console_tbl Console_Port_Tbl[] = {
{ {
"/dev/com0", /* sDeviceName */ "/dev/com0", /* sDeviceName */
SERIAL_MC68681, /* deviceType */ SERIAL_MC68681, /* deviceType */
MC68681_FUNCTIONS, /* pDeviceFns */ MC68681_FUNCTIONS, /* pDeviceFns */
NULL, /* deviceProbe */ NULL, /* deviceProbe */
NULL, /* pDeviceFlow */ NULL, /* pDeviceFlow */
16, /* ulMargin */ 16, /* ulMargin */
8, /* ulHysteresis */ 8, /* ulHysteresis */
(void *)9600, /* baud rate */ /* pDeviceParams */ (void *)9600, /* pDeviceParams */
MC68681_BASE_ADDRESS, /* ulCtrlPort1 */ MC68681_BASE_ADDRESS, /* ulCtrlPort1 */
MC68681_BASE_ADDRESS, /* ulCtrlPort2 */ MC68681_BASE_ADDRESS, /* ulCtrlPort2 */
MC68681_DATA_ADDRESS, /* ulDataPort */ MC68681_DATA_ADDRESS, /* ulDataPort */
mc68681_get_register_2, /* getRegister */ mc68681_get_register_2, /* getRegister */
mc68681_set_register_2, /* setRegister */ mc68681_set_register_2, /* setRegister */
NULL, /* unused */ /* getData */ NULL, /* unused */ /* getData */
NULL, /* unused */ /* setData */ NULL, /* unused */ /* setData */
(uint32_t)mc68681_baud_rate_table, /* ulClock */ (uint32_t)mc68681_baud_rate_table, /* ulClock */
MC68681_VECTOR /* ulIntVector */ MC68681_VECTOR /* ulIntVector */
} }
}; };
/* /*