X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=examples%2Fat91sam7%2Fat91sam7.c;h=b8ef86c8b539c7238455ec3a68abc5d4a93c221a;hb=a3786ea7424d96041d5174860cce9c63e1085fab;hp=04ee19f2525614a78d85c84ab581be72f49c14bf;hpb=c3940812348cdbd6ff4dd62a0577a97d75fe8765;p=bertos.git diff --git a/examples/at91sam7/at91sam7.c b/examples/at91sam7/at91sam7.c index 04ee19f2..b8ef86c8 100644 --- a/examples/at91sam7/at91sam7.c +++ b/examples/at91sam7/at91sam7.c @@ -50,6 +50,7 @@ #include #include +#include #include @@ -102,14 +103,14 @@ static void leds_init(void) #define FIRST_LED 0x100000 #define SET_PIO_BITS PIOB_SODR #define CLEAR_PIO_BITS PIOB_CODR - #define AT91SAM7_MSG "BeRTOS is run on AT91SAM7X256..\n" + #define AT91SAM7_MSG "BeRTOS is running on AT91SAM7X256..\n" #elif CPU_ARM_AT91SAM7S256 #define GET_PIO_STATUS() (~PIOA_ODSR & 0x0000000f) #define LAST_LED 0x00000004 #define FIRST_LED 0x00000002 #define SET_PIO_BITS PIOA_SODR #define CLEAR_PIO_BITS PIOA_CODR - #define AT91SAM7_MSG "BeRTOS is run on AT91SAM7S256..\n" + #define AT91SAM7_MSG "BeRTOS is running on AT91SAM7S256..\n" #endif /* @@ -176,7 +177,13 @@ int main(void) kfile_printf(&ser_fd.fd, "ProcTest..ok!\n"); else kfile_printf(&ser_fd.fd, "ProcTest..FAIL!\n"); - + /* + * Run signal test. + */ + if(!signal_testRun()) + kfile_printf(&ser_fd.fd, "SignalTest..ok!\n"); + else + kfile_printf(&ser_fd.fd, "SignalTest..FAIL!\n"); kputs(AT91SAM7_MSG);