OpenCores
URL https://opencores.org/ocsvn/plasma/plasma/trunk

Subversion Repositories plasma

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /plasma
    from Rev 367 to Rev 368
    Reverse comparison

Rev 367 → Rev 368

/trunk/kernel/uart.c
488,11 → 488,11
#endif
 
 
void Led(int value)
{
//value |= 0xffffff00;
MemoryWrite(GPIO0_CLEAR, (~value) & 0xff); //clear
MemoryWrite(GPIO0_OUT, value); //Change LEDs
void Led(int mask, int value)
{
mask &= 0xff;
MemoryWrite(GPIO0_CLEAR, mask); //clear
MemoryWrite(GPIO0_OUT, value & mask); //set LEDs
}
 
 
/trunk/kernel/ethernet.c
213,7 → 213,7
//if(i > 100)
// printf("wait=%d ", i);
 
Led(2);
Led(2, 2);
while(length < 60 || (length & 3) != 0)
buffer[length++] = 0;
 
243,7 → 243,7
//Start transfer
length = (length + 12 + 4) >> 2;
MemoryWrite(ETHERNET_REG, length);
Led(0);
Led(2, 0);
 
OS_SemaphorePost(SemEthTransmit);
}
275,9 → 275,9
length = EthernetReceive(ethFrame->packet, PACKET_SIZE);
if(length == 0)
break;
Led(1);
Led(1, 1);
rc = IPProcessEthernetPacket(ethFrame, length);
Led(0);
Led(1, 0);
if(rc)
ethFrame = NULL;
}
/trunk/kernel/tcpip.c
1055,7 → 1055,7
 
for(;;)
{
Led(0);
Led(7, 0);
rc = OS_MQueueGet(IPMQueue, message, 10);
if(rc == 0)
{
1062,7 → 1062,7
frame = (IPFrame*)message[1];
if(message[0] == 0) //frame received
{
Led(1);
Led(7, 1);
frame->length = (uint16)message[2];
rc = IPProcessEthernetPacket(frame, frame->length);
if(rc == 0)
1070,7 → 1070,7
}
else if(message[0] == 1) //frame sent
{
Led(2);
Led(7, 2);
assert(frame == frameOut);
IPFrameReschedule(frame);
frameOut = NULL;
1089,7 → 1089,7
OS_MutexPost(IPMutex);
if(frameOut)
{
Led(4);
Led(7, 4);
UartPacketSend(frameOut->packet, frameOut->length);
}
}
/trunk/kernel/rtos.h
304,7 → 304,7
int kbhit(void);
void LogWrite(int a);
void LogDump(void);
void Led(int value);
void Led(int mask, int value);
 
/***************** Keyboard **************/
#define KEYBOARD_RAW 0x100

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.