1
0
mirror of https://github.com/preble/libpinproc synced 2026-02-24 18:25:23 +01:00

Added PD-LED board functions.

This commit is contained in:
Roy Eltham
2013-02-28 21:20:29 -08:00
parent c871ddfeb3
commit cd9b88dea6
6 changed files with 200 additions and 1 deletions

View File

@@ -344,6 +344,13 @@ int32_t CreateJTAGShiftTDODataBurst ( uint32_t * burst, uint16_t numBits, bool_t
return kPRSuccess;
}
void FillLEDWriteCommand(uint8_t boardAddr, PRLEDRegisterType reg, uint8_t value, uint32_t * pData)
{
pData[0] = (0x1 << 24) | (boardAddr << 16) | (reg << 8) | value;
}
/**
* This is where all FTDI driver-specific code should go.
* As we add support for other drivers (such as D2xx on Windows), we will add more implementations of the PRHardware*() functions here.