Fix unused warning. Fix type warning. Reformat.
authorasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 10 Jun 2008 17:59:13 +0000 (17:59 +0000)
committerasterix <asterix@38d2e660-2303-0410-9eaa-f027e97ec537>
Tue, 10 Jun 2008 17:59:13 +0000 (17:59 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@1440 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/drv/timer_test.c
bertos/hw/hw_mcp41.h
bertos/hw/hw_thermo.h

index 5fc4257041924542cada51f8a521a3b07933f264..98412233200850e629457d6eca56056e39d8dc74 100644 (file)
@@ -43,6 +43,7 @@
 
 #include <mware/event.h>
 
+#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));
index e27bd374df98c6095a1243df6c5f615b81f9133e..33e8f774fe60fc2d3660360cf90093f250a5350e 100644 (file)
@@ -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 */
index fc0b4e2c8116496d3e7a301ed9ab8229091325fa..bbfc9ddef227c7db88dc5d23d8c704a603939c54 100644 (file)
@@ -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 */