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

Subversion Repositories plasma

[/] [plasma/] [trunk/] [kernel/] [uart.c] - Diff between revs 352 and 368

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 352 Rev 368
Line 486... Line 486...
void UartPacketSend(uint8 *data, int bytes)
void UartPacketSend(uint8 *data, int bytes)
{ (void)data; (void)bytes; }
{ (void)data; (void)bytes; }
#endif
#endif
 
 
 
 
void Led(int value)
void Led(int mask, int value)
{
{
   //value |= 0xffffff00;
   mask &= 0xff;
   MemoryWrite(GPIO0_CLEAR, (~value) & 0xff); //clear
   MemoryWrite(GPIO0_CLEAR, mask);       //clear
   MemoryWrite(GPIO0_OUT, value);  //Change LEDs
   MemoryWrite(GPIO0_OUT, value & mask); //set LEDs
}
}
 
 
 
 
/******************************************/
/******************************************/
int puts(const char *string)
int puts(const char *string)

powered by: WebSVN 2.1.0

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