aboutsummaryrefslogtreecommitdiffstats
path: root/test/coverage/chcore.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-30 17:21:10 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2009-08-30 17:21:10 +0000
commitd88897bf4d4a5d5436277814d76f0991ecbf4489 (patch)
tree6ccc628d37b71748bf04e5039395e947f426750f /test/coverage/chcore.c
parent07be1f54becd5106876ad7b83057aa5f750a7261 (diff)
downloadChibiOS-d88897bf4d4a5d5436277814d76f0991ecbf4489.tar.gz
ChibiOS-d88897bf4d4a5d5436277814d76f0991ecbf4489.tar.bz2
ChibiOS-d88897bf4d4a5d5436277814d76f0991ecbf4489.zip
Updated the coverage tool.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@1145 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'test/coverage/chcore.c')
-rw-r--r--test/coverage/chcore.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/test/coverage/chcore.c b/test/coverage/chcore.c
index cdc87ceb5..b5191aa6c 100644
--- a/test/coverage/chcore.c
+++ b/test/coverage/chcore.c
@@ -20,23 +20,17 @@
#include <windows.h>
#include <stdio.h>
-#undef CDECL
-
/**
* @addtogroup WIN32SIM_CORE
* @{
*/
#include <ch.h>
+#include <serial.h>
static LARGE_INTEGER nextcnt;
static LARGE_INTEGER slice;
-void init_simcom1(void);
-bool_t com1_conn_chkint(void);
-bool_t com1_in_chkint(void);
-bool_t com1_out_chkint(void);
-
/*
* Simulated HW initialization.
*/
@@ -53,7 +47,7 @@ void InitCore(void) {
QueryPerformanceCounter(&nextcnt);
nextcnt.QuadPart += slice.QuadPart;
- init_simcom1();
+ sdInit();
fflush(stdout);
}
@@ -65,7 +59,7 @@ void ChkIntSources(void) {
LARGE_INTEGER n;
bool_t rflag = FALSE;
- if (com1_conn_chkint() || com1_in_chkint() || com1_out_chkint()) {
+ if (sd_lld_interrupt_pending()) {
if (chSchRescRequiredI())
rflag = TRUE;
}