X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=blobdiff_plain;f=pkernel%2Fmain.c;h=20334cda7c8d435e042866d25b564e869aa68d76;hb=9b83ed6dabe88a769c740567ebabc9679213a24c;hp=78ca2dc6851ba8ca9e93fc149f0b355aa72dfd97;hpb=179d0a77f47e6b4c1e5f72d19352d121511812ab;p=pyfrprog.git diff --git a/pkernel/main.c b/pkernel/main.c index 78ca2dc..20334cd 100644 --- a/pkernel/main.c +++ b/pkernel/main.c @@ -1,15 +1,12 @@ #include "mb91465k.h" #include "flash.h" -#pragma section CODE=IRAM,attr=CODE - #define BUFSIZE 0x20 #define cleardata() memset(data,0,BUFSIZE) static void increaseled(void) { PDR14 = ~(((~PDR14)+1)%256); - HWWD_CL = 0; } static unsigned char recvbyte(void) @@ -58,8 +55,6 @@ void main(void) unsigned short i, size, next; unsigned char running = 1, data[BUFSIZE] = {0}; - PORTEN = 0x3; /* enable I/O Ports */ - /*Enable LEDs*/ DDR14 = 0xFF; PDR14 = 0xff; @@ -108,13 +103,11 @@ void main(void) size = recvword(); increaseled(); - Putch4(0x04); //Received Metadata. PDR14 = 0xff; for(i=0; i