projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Change macro name to IRQ_ENABLED.
[bertos.git]
/
app
/
at91sam7s
/
at91sam7s.c
diff --git
a/app/at91sam7s/at91sam7s.c
b/app/at91sam7s/at91sam7s.c
index 13388a557fa4a6110d14dffa3270623414d32f08..57fdd8fde89a04268585ead10237cf8f5d31df43 100644
(file)
--- a/
app/at91sam7s/at91sam7s.c
+++ b/
app/at91sam7s/at91sam7s.c
@@
-37,14
+37,17
@@
* \brief AT91SAM7S-EK porting test.
*/
* \brief AT91SAM7S-EK porting test.
*/
+#include <cfg/macros.h>
#include <drv/timer.h>
#include <drv/sysirq_at91.h>
#include <drv/timer.h>
#include <drv/sysirq_at91.h>
+#include <kern/proc.h>
+#include <drv/ser.h>
#include <cfg/macros.h>
#include <io/arm.h>
#include <cfg/macros.h>
#include <io/arm.h>
-int iort = 23;
-int iort1 = 232;
-int iort2 = 233;
+
static
int iort = 23;
+
static
int iort1 = 232;
+
static
int iort2 = 233;
Timer leds_timer;
Timer leds_timer;
@@
-75,7
+78,19
@@
int main(void)
kdbg_init();
sysirq_init();
timer_init();
kdbg_init();
sysirq_init();
timer_init();
+
+ proc_init();
+ ASSERT(!IRQ_ENABLED());
+
+
+
+ /* Open the main communication port */
+ Serial *host_port = ser_open(0);
+ ser_setbaudrate(host_port, 115200);
+ ser_setparity(host_port, SER_PARITY_NONE);
+
IRQ_ENABLE;
IRQ_ENABLE;
+ ASSERT(IRQ_ENABLED());
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
@@
-95,11
+110,12
@@
int main(void)
timer_setDelay(&leds_timer, ms_to_ticks(100));
timer_add(&leds_timer);
timer_setDelay(&leds_timer, ms_to_ticks(100));
timer_add(&leds_timer);
-
// Main loop
for(;;)
{
// Main loop
for(;;)
{
+ ser_printf(host_port," %s", "a");
kprintf("W la figa!\n");
kprintf("W la figa!\n");
+ proc_test();
iort+= 1;
iort1+= 1;
iort2+= 1;
iort+= 1;
iort1+= 1;
iort2+= 1;