forked from Imagelibrary/rtems
libtmtests - Eliminate missing prototype warnings
This commit is contained in:
@@ -33,6 +33,9 @@
|
||||
#include <rtems/ramdisk.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define ASSERT_SC_EQ(sc, sc_expected) rtems_test_assert((sc) == (sc_expected))
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_INIT 10
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_INIT 10
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_INIT 10
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_INIT 1
|
||||
|
||||
@@ -29,6 +29,9 @@
|
||||
#include <rtems/error.h>
|
||||
#include <rtems/bdbuf.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define BDBUF_DISKS 2
|
||||
#define BDBUF_SIZE 1024
|
||||
|
||||
|
||||
@@ -34,6 +34,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_INIT 1
|
||||
|
||||
@@ -31,6 +31,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define BLOCK_SIZE sizeof(char)
|
||||
|
||||
@@ -30,6 +30,9 @@
|
||||
#include <rtems/bdbuf.h>
|
||||
#include <rtems/diskdevs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define PRIORITY_HIGH 1
|
||||
|
||||
@@ -37,6 +37,9 @@
|
||||
#include <rtems/diskdevs.h>
|
||||
#include <rtems/malloc.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define ASSERT_SC(sc) rtems_test_assert((sc) == RTEMS_SUCCESSFUL)
|
||||
|
||||
#define CHUNK_MAX 32U
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -14,6 +14,11 @@
|
||||
#include <tmacros.h>
|
||||
#include <rtems/bspcmdline.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void test_errors(void);
|
||||
void test_search(bool null_expected, const char *cmdline, const char *param);
|
||||
|
||||
extern const char *bsp_boot_cmdline;
|
||||
|
||||
void test_errors(void)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <rtems/devfs.h>
|
||||
#include <errno.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* Modifications to support reference counting in the file system are
|
||||
@@ -26,6 +26,9 @@
|
||||
#include <rtems/devfs.h>
|
||||
#include <rtems/malloc.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* Modifications to support reference counting in the file system are
|
||||
@@ -23,6 +23,9 @@
|
||||
#include <sys/stat.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -22,6 +22,9 @@
|
||||
#include "test_driver.h"
|
||||
#include <rtems/devnull.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -22,6 +22,9 @@
|
||||
#include "test_driver.h"
|
||||
#include <rtems/devnull.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -15,8 +15,11 @@
|
||||
#include "test_support.h"
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
unsigned char Buffer[] =
|
||||
"ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n";
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void do_test(int length);
|
||||
|
||||
unsigned char Buffer[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ01234567890\n";
|
||||
|
||||
void do_test(
|
||||
int length
|
||||
|
||||
@@ -32,6 +32,9 @@
|
||||
|
||||
#include "test-file-system.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define FLASHDISK_CONFIG_COUNT 1
|
||||
|
||||
#define FLASHDISK_DEVICE_COUNT 1
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <rtems/ftpd.h>
|
||||
#include <rtems/ftpfs.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
struct rtems_bsdnet_config rtems_bsdnet_config;
|
||||
|
||||
#define FTP_WORKER_TASK_COUNT 2
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -15,6 +15,15 @@
|
||||
#include "test_support.h"
|
||||
#include <rtems/gxx_wrappers.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void test_recursive_mutex(void);
|
||||
void test_mutex(void);
|
||||
void once_function(void);
|
||||
void test_once(void);
|
||||
void key_dtor(void *ptr);
|
||||
void test_key(void);
|
||||
|
||||
void test_recursive_mutex(void)
|
||||
{
|
||||
int sc;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -13,6 +13,10 @@
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
rtems_timer_service_routine test_operation_from_isr(rtems_id timer, void *arg);
|
||||
|
||||
volatile bool operation_performed_from_tsr;
|
||||
|
||||
void *Pointer1;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -14,6 +14,9 @@
|
||||
#include <tmacros.h>
|
||||
#include "test_support.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -15,6 +15,9 @@
|
||||
#include "test_support.h"
|
||||
#include <rtems/malloc.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -27,6 +27,19 @@
|
||||
|
||||
#define UID_MESSAGE_COUNT 10
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
bool enqueue_next_action(
|
||||
const unsigned char *actions,
|
||||
size_t max,
|
||||
size_t to_enqueue
|
||||
);
|
||||
void open_it(void);
|
||||
void register_it(void);
|
||||
void printf_uid_message(struct MW_UID_MESSAGE *uid);
|
||||
void receive_uid_message(void);
|
||||
void close_it(void);
|
||||
|
||||
extern const char *Mouse_Type_Long;
|
||||
extern const char *Mouse_Type_Short;
|
||||
extern const unsigned char Mouse_Actions[];
|
||||
|
||||
@@ -21,6 +21,9 @@
|
||||
#include <rtems.h>
|
||||
#include <rtems/rbheap.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define PAGE_SIZE 1024
|
||||
|
||||
#define PAGE_COUNT 8
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
* This set of three tasks do some simple task switching for about
|
||||
* 15 seconds and then call a routine to "blow the stack".
|
||||
*
|
||||
* COPYRIGHT (c) 1989-1999.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -18,14 +18,21 @@
|
||||
#include <rtems.h>
|
||||
#include <rtems/stackchk.h>
|
||||
|
||||
void b(void) {}
|
||||
/* forward declarations to avoid warnings */
|
||||
void b(void);
|
||||
void blow_stack(void);
|
||||
|
||||
void blow_stack( void )
|
||||
void b(void)
|
||||
{
|
||||
}
|
||||
|
||||
void blow_stack(void)
|
||||
{
|
||||
volatile uint32_t *low, *high;
|
||||
unsigned char *area;
|
||||
|
||||
b();
|
||||
b();
|
||||
|
||||
/*
|
||||
* Destroy the first and last 16 bytes of our stack... Hope it
|
||||
* does not cause problems :)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -14,6 +14,9 @@
|
||||
#include <tmacros.h>
|
||||
#include <rtems/stackchk.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument argument
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -18,6 +18,9 @@
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
#define __STRING(x) #x /* stringify without expanding x */
|
||||
#define __XSTRING(x) __STRING(x) /* expand x, then stringify */
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -23,6 +23,9 @@
|
||||
#error "what type are we testing?"
|
||||
#endif
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
void TEST_STRING_TO_NAME(void);
|
||||
|
||||
void TEST_STRING_TO_NAME(void)
|
||||
{
|
||||
TEST_STRING_TO_TYPE value;
|
||||
|
||||
@@ -27,6 +27,9 @@
|
||||
#include <rtems/libio.h>
|
||||
#include <rtems/rtems_bsdnet.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
static rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
static const char open_driver_path [] = "/dev/open_driver";
|
||||
|
||||
struct rtems_bsdnet_config rtems_bsdnet_config;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -25,6 +25,11 @@
|
||||
|
||||
#include "initial_filesystem_tar.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void test_untar_from_memory(void);
|
||||
void test_untar_from_file(void);
|
||||
|
||||
#define TARFILE_START initial_filesystem_tar
|
||||
#define TARFILE_SIZE initial_filesystem_tar_size
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -25,6 +25,10 @@
|
||||
|
||||
#include "initial_filesystem_tar.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void test_tarfs_load(void);
|
||||
|
||||
#define TARFILE_START initial_filesystem_tar
|
||||
#define TARFILE_SIZE initial_filesystem_tar_size
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -18,6 +18,10 @@
|
||||
#include <rtems/untar.h>
|
||||
#include <rtems/error.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void test_tarfs_error(void);
|
||||
|
||||
void test_tarfs_error(void)
|
||||
{
|
||||
int sc;
|
||||
|
||||
@@ -26,21 +26,6 @@
|
||||
|
||||
#include <bsp.h>
|
||||
|
||||
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
rtems_task Init (rtems_task_argument argument);
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
#include <rtems/shell.h>
|
||||
|
||||
#include <stdio.h>
|
||||
@@ -51,6 +36,24 @@ rtems_task Init (rtems_task_argument argument);
|
||||
|
||||
#include <tmacros.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void print_32bits(unsigned long bits, unsigned char size, char * names[]);
|
||||
void print_c_iflag(struct termios * tp);
|
||||
void print_c_oflag(struct termios * tp);
|
||||
void print_c_lflag(struct termios * tp);
|
||||
void print_c_cflag(struct termios * tp);
|
||||
void print_c_cc(struct termios * tp);
|
||||
void print_termios(struct termios *tp);
|
||||
unsigned long get_baud_rate(void);
|
||||
unsigned long get_parity(void);
|
||||
unsigned long get_stop_bits(void);
|
||||
unsigned long get_data_bits(void);
|
||||
void change_line_settings(struct termios *tp);
|
||||
void canonical_input(struct termios *tp);
|
||||
void do_raw_input(int vmin, int vtime);
|
||||
void usage(void);
|
||||
|
||||
#if !defined(fileno)
|
||||
int fileno( FILE *stream); /* beyond ANSI */
|
||||
#endif
|
||||
@@ -438,7 +441,7 @@ void print_termios( struct termios *tp )
|
||||
}
|
||||
|
||||
|
||||
unsigned long get_baud_rate( void )
|
||||
unsigned long get_baud_rate(void)
|
||||
{
|
||||
unsigned long baud_rate;
|
||||
|
||||
@@ -795,3 +798,19 @@ Init (rtems_task_argument ignored)
|
||||
rtems_test_exit( 0 );
|
||||
}
|
||||
}
|
||||
|
||||
/* application configuration */
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CLOCK_DRIVER
|
||||
#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
|
||||
|
||||
#define CONFIGURE_MAXIMUM_TASKS 1
|
||||
|
||||
#define CONFIGURE_RTEMS_INIT_TASKS_TABLE
|
||||
|
||||
#define CONFIGURE_MICROSECONDS_PER_TICK 1000
|
||||
|
||||
#define CONFIGURE_INIT
|
||||
|
||||
#include <rtems/confdefs.h>
|
||||
/* end of configuration */
|
||||
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
/*
|
||||
* This file contains a test fixture termios device driver
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2009.
|
||||
* This file contains a test fixture termios device driver.
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -21,6 +25,19 @@
|
||||
#include <rtems/libcsupport.h>
|
||||
#include "termios_testdriver.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
int termios_test_driver_inbyte_nonblocking(int port);
|
||||
void termios_test_driver_outbyte_polled(int port, char ch);
|
||||
ssize_t termios_test_driver_write_support(
|
||||
int minor,
|
||||
const char *buf,
|
||||
size_t len
|
||||
);
|
||||
int termios_test_driver_set_attributes(
|
||||
int minor,
|
||||
const struct termios *t
|
||||
);
|
||||
|
||||
int termios_test_driver_inbyte_nonblocking( int port )
|
||||
{
|
||||
return -1;
|
||||
@@ -33,7 +50,11 @@ void termios_test_driver_outbyte_polled(
|
||||
{
|
||||
}
|
||||
|
||||
ssize_t termios_test_driver_write_support (int minor, const char *buf, size_t len)
|
||||
ssize_t termios_test_driver_write_support(
|
||||
int minor,
|
||||
const char *buf,
|
||||
size_t len
|
||||
)
|
||||
{
|
||||
size_t nwrite = 0;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <errno.h>
|
||||
#include <unistd.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
rtems_task Init(
|
||||
rtems_task_argument ignored
|
||||
)
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -22,6 +22,14 @@
|
||||
#include <termios.h>
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void write_helper(int fd, const char *c);
|
||||
void read_helper(int fd, const char *expected);
|
||||
void open_it(void);
|
||||
void close_it(void);
|
||||
void change_iflag(const char *desc, int mask, int new);
|
||||
|
||||
void write_helper(
|
||||
int fd,
|
||||
const char *c
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
/*
|
||||
* This file contains a test fixture termios device driver
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* This file contains a test fixture termios device driver
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -21,6 +25,19 @@
|
||||
#include <rtems/dumpbuf.h>
|
||||
#include "termios_testdriver_polled.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
int termios_test_driver_inbyte_nonblocking(int port);
|
||||
void termios_test_driver_outbyte_polled(int port, char ch);
|
||||
ssize_t termios_test_driver_write_support(
|
||||
int minor,
|
||||
const char *buf,
|
||||
size_t len
|
||||
);
|
||||
int termios_test_driver_set_attributes(
|
||||
int minor,
|
||||
const struct termios *t
|
||||
);
|
||||
|
||||
#define TX_MAX 1024
|
||||
uint8_t Tx_Buffer[TX_MAX];
|
||||
int Tx_Index = 0;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -22,6 +22,14 @@
|
||||
#include <termios.h>
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
void write_helper(int fd, const char *c);
|
||||
void read_helper(int fd, const char *expected);
|
||||
void open_it(void);
|
||||
void close_it(void);
|
||||
void change_iflag(const char *desc, int mask, int new);
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
|
||||
void write_helper(
|
||||
int fd,
|
||||
const char *c
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
/*
|
||||
* This file contains a test fixture termios device driver
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* COPYRIGHT (c) 1989-2011.
|
||||
* This file contains a test fixture termios device driver
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -21,6 +25,30 @@
|
||||
#include <rtems/dumpbuf.h>
|
||||
#include "termios_testdriver_intr.h"
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
void termios_test_driver_wait_for_tx_to_complete(void);
|
||||
rtems_timer_service_routine Rx_ISR(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
rtems_timer_service_routine Tx_ISR(
|
||||
rtems_id ignored_id,
|
||||
void *ignored_address
|
||||
);
|
||||
ssize_t termios_test_driver_write_helper(
|
||||
int port,
|
||||
const char *buf,
|
||||
size_t len
|
||||
);
|
||||
int termios_test_driver_set_attributes(
|
||||
int minor,
|
||||
const struct termios *t
|
||||
);
|
||||
#if defined(TASK_DRIVEN)
|
||||
int termios_test_driver_inbyte_nonblocking(int port);
|
||||
#endif
|
||||
|
||||
/* global variables */
|
||||
rtems_id Rx_Timer;
|
||||
rtems_id Tx_Timer;
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -22,6 +22,14 @@
|
||||
#include <termios.h>
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void write_helper(int fd, const char *c);
|
||||
void read_helper(int fd, const char *expected);
|
||||
void open_it(void);
|
||||
void close_it(void);
|
||||
void change_iflag(const char *desc, int mask, int new);
|
||||
|
||||
void write_helper(
|
||||
int fd,
|
||||
const char *c
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -23,6 +23,19 @@
|
||||
#include <rtems/dumpbuf.h>
|
||||
#include <rtems/termiostypes.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void open_it(void);
|
||||
void Rx_Wake(struct termios *tty, void *arg);
|
||||
void Tx_Wake(struct termios *tty, void *arg);
|
||||
void set_wakeups(void);
|
||||
void set_discipline(void);
|
||||
void ioctl_it(void);
|
||||
void close_it(void);
|
||||
void write_it(void);
|
||||
void read_helper(int fd, const char *expected);
|
||||
void read_it(void);
|
||||
|
||||
void pppasyncattach(void);
|
||||
void ppp_test_driver_set_rx( const char *expected, size_t len );
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -16,6 +16,9 @@
|
||||
#include <rtems/termiostypes.h>
|
||||
#include <rtems/dumpbuf.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
void ppp_test_driver_set_rx(const char *expected, size_t len);
|
||||
void pppasyncattach(void);
|
||||
int pppopen(struct rtems_termios_tty *tty);
|
||||
int pppclose(struct rtems_termios_tty *tty);
|
||||
int pppread(struct rtems_termios_tty *tty, rtems_libio_rw_args_t *rw_args);
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -23,6 +23,14 @@
|
||||
#include <rtems/dumpbuf.h>
|
||||
#include <rtems/libio.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void write_helper(int fd, const char *c);
|
||||
void read_helper(int fd, const char *expected);
|
||||
void open_it(void);
|
||||
void close_it(void);
|
||||
void change_iflag(const char *desc, int mask, int new);
|
||||
|
||||
void write_helper(
|
||||
int fd,
|
||||
const char *c
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* COPYRIGHT (c) 1989-2010.
|
||||
* COPYRIGHT (c) 1989-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -23,6 +23,15 @@
|
||||
#include <rtems/dumpbuf.h>
|
||||
#include <rtems/termiostypes.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void open_it(void);
|
||||
void close_it(void);
|
||||
void write_it(void);
|
||||
void change_lflag( const char *desc, int mask, int new );
|
||||
void change_vmin_vtime( const char *desc, int min, int time );
|
||||
void read_it(ssize_t expected);
|
||||
|
||||
int Test_fd;
|
||||
|
||||
void open_it(void)
|
||||
@@ -86,9 +95,7 @@ void change_vmin_vtime( const char *desc, int min, int time )
|
||||
rtems_test_assert( rc == 0 );
|
||||
}
|
||||
|
||||
void read_it(
|
||||
ssize_t expected
|
||||
)
|
||||
void read_it( ssize_t expected )
|
||||
{
|
||||
ssize_t rc;
|
||||
char buf[32];
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
/*
|
||||
/**
|
||||
* @file
|
||||
*
|
||||
* This routine is the initialization task of test to exercise some
|
||||
* timezone functionality.
|
||||
*
|
||||
* COPYRIGHT (c) 2007.
|
||||
*/
|
||||
|
||||
/*
|
||||
* COPYRIGHT (c) 2007-2012.
|
||||
* On-Line Applications Research Corporation (OAR).
|
||||
*
|
||||
* The license and distribution terms for this file may be
|
||||
@@ -19,6 +23,10 @@
|
||||
#include <tmacros.h>
|
||||
#include <time.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* forward declarations to avoid warnings */
|
||||
rtems_task Init(rtems_task_argument argument);
|
||||
void tztester(void);
|
||||
|
||||
void tztester(void)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user