projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add debug test.
[bertos.git]
/
app
/
at91sam7s
/
at91sam7s.c
diff --git
a/app/at91sam7s/at91sam7s.c
b/app/at91sam7s/at91sam7s.c
index b088247f90fc47494e1a4597edf3c9e152b4a44d..13388a557fa4a6110d14dffa3270623414d32f08 100644
(file)
--- a/
app/at91sam7s/at91sam7s.c
+++ b/
app/at91sam7s/at91sam7s.c
@@
-40,7
+40,7
@@
#include <drv/timer.h>
#include <drv/sysirq_at91.h>
#include <cfg/macros.h>
#include <drv/timer.h>
#include <drv/sysirq_at91.h>
#include <cfg/macros.h>
-#include <io/a
t91sam7s
.h>
+#include <io/a
rm
.h>
int iort = 23;
int iort1 = 232;
int iort = 23;
int iort1 = 232;
@@
-72,15
+72,15
@@
static void leds_toggle(void)
int main(void)
{
int main(void)
{
-
//
kdbg_init();
+ kdbg_init();
sysirq_init();
timer_init();
IRQ_ENABLE;
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
sysirq_init();
timer_init();
IRQ_ENABLE;
/* Disable all pullups */
PIOA_PUDR = 0xffffffff;
- /* Set
all port pin
connected to PIOA */
- PIOA_PER = 0x
fffffff
f;
+ /* Set
PA0..3
connected to PIOA */
+ PIOA_PER = 0x
0000000
f;
/* Set PA0..3 as output */
PIOA_OER = 0x0000000f;
/* Disable multidrive on all pins */
/* Set PA0..3 as output */
PIOA_OER = 0x0000000f;
/* Disable multidrive on all pins */
@@
-99,6
+99,7
@@
int main(void)
// Main loop
for(;;)
{
// Main loop
for(;;)
{
+ kprintf("W la figa!\n");
iort+= 1;
iort1+= 1;
iort2+= 1;
iort+= 1;
iort1+= 1;
iort2+= 1;