move posix/tests/hrt_test to systemcmds/tests/hrt_test

This commit is contained in:
Daniel Agar 2018-11-24 11:59:24 -05:00 committed by David Sidrane
parent 750e66f43b
commit fecdfe5fbc
6 changed files with 19 additions and 10 deletions

View File

@ -103,3 +103,5 @@ px4_add_module(
pwm_limit
version
)
add_subdirectory(hrt_test)

View File

@ -31,11 +31,11 @@
#
############################################################################
px4_add_module(
MODULE platforms__posix__tests__hrt_test
MODULE systemcmds__tests__hrt_test
MAIN hrt_test
SRCS
hrt_test_main.cpp
hrt_test_start_posix.cpp
hrt_test_start.cpp
hrt_test.cpp
DEPENDS
)

View File

@ -39,10 +39,12 @@
* @author Mark Charlebois <charlebm@gmail.com>
*/
#include "px4_log.h"
#include <px4_time.h>
#include <drivers/drv_hrt.h>
#include "hrt_test.h"
#include <drivers/drv_hrt.h>
#include <px4_log.h>
#include <px4_time.h>
#include <unistd.h>
#include <stdio.h>
#include <cstring>

View File

@ -37,10 +37,13 @@
*
* @author Mark Charlebois <charlebm@gmail.com>
*/
#include "hrt_test.h"
#include <stdio.h>
#include <px4_middleware.h>
#include <px4_app.h>
#include "hrt_test.h"
#include <stdio.h>
int PX4_MAIN(int argc, char **argv)
{

View File

@ -37,13 +37,15 @@
* @author Mark Charlebois <mcharleb@gmail.com>
*/
#include "hrt_test.h"
#include <px4_log.h>
#include <px4_app.h>
#include <px4_tasks.h>
#include <stdio.h>
#include <string.h>
#include <sched.h>
#include <px4_log.h>
#include <px4_app.h>
#include <px4_tasks.h>
static int daemon_task; /* Handle of deamon task / thread */
extern "C" __EXPORT int hrt_test_main(int argc, char *argv[]);