mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
add: FPC connector skeleton usart. Not working but if will be a starting point for those who might want to help out with it.
This commit is contained in:
parent
08d9d9daf9
commit
bacf8aff0f
8 changed files with 384 additions and 32 deletions
|
@ -145,7 +145,7 @@ void FpgaSetupSscExt(uint8_t clearPCER) {
|
|||
|
||||
// clock comes from TK pin, no clock output, outputs change on falling
|
||||
// edge of TK, sample on rising edge of TK, start on positive-going edge of sync
|
||||
AT91C_BASE_SSC->SSC_TCMR = SSC_CLOCK_MODE_SELECT(2) | SSC_CLOCK_MODE_START(5);
|
||||
AT91C_BASE_SSC->SSC_TCMR = SSC_CLOCK_MODE_SELECT(2) | SSC_CLOCK_MODE_START(5);
|
||||
|
||||
// tx framing is the same as the rx framing
|
||||
AT91C_BASE_SSC->SSC_TFMR = AT91C_BASE_SSC->SSC_RFMR;
|
||||
|
@ -462,9 +462,11 @@ void SetAdcMuxFor(uint32_t whichGpio) {
|
|||
GPIO_MUXSEL_HIRAW;
|
||||
|
||||
LOW(GPIO_MUXSEL_HIPKD);
|
||||
LOW(GPIO_MUXSEL_LOPKD);
|
||||
#ifndef WITH_FPC
|
||||
LOW(GPIO_MUXSEL_HIRAW);
|
||||
LOW(GPIO_MUXSEL_LORAW);
|
||||
LOW(GPIO_MUXSEL_LOPKD);
|
||||
#endif
|
||||
|
||||
HIGH(whichGpio);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue