Commit cbcaa9cb authored by Theodor Bauer's avatar Theodor Bauer
Browse files

added can_test

parent 43ee779b
#ifndef CANTEST_H_
#define CANTEST_H_
void can_test();
#endif
......@@ -34,4 +34,8 @@ config SOFTWARE_CAPTURE_TEST
bool "Software Capture Test"
depends on CAPTURE_SOFTWARE
default n
config CAN_TEST
bool "CAN Test"
depends on CAN
default n
endmenu
......@@ -8,3 +8,4 @@ obj-$(CONFIG_TIMER_TEST) += timertest.o
obj-$(CONFIG_MPU_TEST) += mputest.o
obj-$(CONFIG_RTC_SOFTWARE_TEST) += rtctest.o
obj-$(CONFIG_SOFTWARE_CAPTURE_TEST) += softwareCaptureTest.o
obj-$(CONFIG_CAN_TEST) += carcan.o
#include <can.h>
#include <devs.h>
#include <FreeRTOS.h>
#include <task.h>
#include <os.h>
#include <string.h>
void can_test() {
struct can *can = CAN_INIT(CARCAN1_ID, 500000, NULL, false);
CAN_DEINIT(can);
}
......@@ -27,6 +27,7 @@
#include <mputest.h>
#include <rtctest.h>
#include <softwareCaptureTest.h>
#include <cantest.h>
#if defined(CONFIG_NEWLIB_UART) || defined(CONFIG_NLIBC_PRINTF)
# define PRINTF(...) printf(__VA_ARGS__)
#else
......@@ -188,6 +189,9 @@ int main() {
#endif
#ifdef CONFIG_SOFTWARE_CAPTURE_TEST
softwareCaptureTest_init();
#endif
#ifdef CONFIG_CAN_TEST
can_test();
#endif
PRINTF("Start Scheduler\n");
vTaskStartScheduler();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment