From: asterix Date: Tue, 10 Jun 2008 17:59:13 +0000 (+0000) Subject: Fix unused warning. Fix type warning. Reformat. X-Git-Tag: 2.0.0~494 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=9b772513612e61350b1a09277c127e29dd62fea6;p=bertos.git Fix unused warning. Fix type warning. Reformat. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1440 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/bertos/drv/timer_test.c b/bertos/drv/timer_test.c index 5fc42570..98412233 100644 --- a/bertos/drv/timer_test.c +++ b/bertos/drv/timer_test.c @@ -43,6 +43,7 @@ #include +#warning TODO:Refactor this test to comply whit BeRTOS test policy. static void timer_test_constants(void) { @@ -65,7 +66,7 @@ static void timer_test_constants(void) kprintf("ticks_to_us(100)=%lu\n", ticks_to_us(100)); kprintf("ticks_to_us(10000)=%lu\n", ticks_to_us(10000)); kprintf("\n"); - kprintf("hptime_to_us(100)=%lu\n", hptime_to_us(100)); + kprintf("hptime_to_us(100)=%ld\n", hptime_to_us(100)); kprintf("hptime_to_us(10000)=%lu\n", hptime_to_us(10000)); kprintf("us_to_hptime(100)=%lu\n", us_to_hptime(100)); kprintf("us_to_hptime(10000)=%lu\n", us_to_hptime(10000)); diff --git a/bertos/hw/hw_mcp41.h b/bertos/hw/hw_mcp41.h index e27bd374..33e8f774 100644 --- a/bertos/hw/hw_mcp41.h +++ b/bertos/hw/hw_mcp41.h @@ -51,16 +51,25 @@ INLINE void SET_MCP41_DDR(Mcp41Dev dev) /* Implement me! */ //Warning: this funtions is like avr target name, //fix it to comply for all target. + + //Only for test remove when implement this function + (void)dev; } INLINE void MCP41_ON(Mcp41Dev i) { /* Implement me! */ + + //Only for test remove when implement this function + (void)i; } INLINE void MCP41_OFF(Mcp41Dev i) { /* Implement me! */ + + //Only for test remove when implement this function + (void)i; } #endif /* HW_MCP41_H */ diff --git a/bertos/hw/hw_thermo.h b/bertos/hw/hw_thermo.h index fc0b4e2c..bbfc9dde 100644 --- a/bertos/hw/hw_thermo.h +++ b/bertos/hw/hw_thermo.h @@ -119,7 +119,7 @@ INLINE void thermo_hw_off(ThermoDev dev) switch (dev) { case THERMO_TEST: - phase_setPower(TRIAC_TEST, 0); + phase_setPower(TRIAC_TEST, 0); break; /* Put here a thermo device to turn off */