Suppress correct warning in nightly test.
authorlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 09:30:05 +0000 (09:30 +0000)
committerlottaviano <lottaviano@38d2e660-2303-0410-9eaa-f027e97ec537>
Wed, 2 Sep 2009 09:30:05 +0000 (09:30 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@2858 38d2e660-2303-0410-9eaa-f027e97ec537

bertos/cpu/avr/drv/ser_avr.c

index f4cf42de0d76f526711e333553f1402c96d087fe..c94bf6b0be950c99191295698264ee8a1e3be8f3 100644 (file)
@@ -46,6 +46,7 @@
 
 #include <cfg/macros.h> /* DIV_ROUND */
 #include <cfg/debug.h>
+#include <cfg/cfg_arch.h> // ARCH_NIGHTTEST
 
 #include <drv/ser.h>
 #include <drv/ser_p.h>
@@ -453,6 +454,9 @@ static void spi_init(UNUSED_ARG(struct SerialHardware *, _hw), UNUSED_ARG(struct
         * - as input but tied high forever!
         * This driver set the pin as output.
         */
+       #if (ARCH & ARCH_NIGHTTEST)
+               #warning __FILTER_NEXT_WARNING__
+       #endif
        #warning SPI SS pin set as output for proper operation, check schematics for possible conflicts.
        ATOMIC(SPI_DDR |= BV(SPI_SS_BIT));