mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 10:37:23 -07:00
Add usart dev cmds & dynamic flash support capability
This commit is contained in:
parent
8e2d5370f9
commit
3176684f4a
18 changed files with 185 additions and 205 deletions
|
@ -450,8 +450,8 @@ void FpgaWriteConfWord(uint8_t v) {
|
|||
//-----------------------------------------------------------------------------
|
||||
void SetAdcMuxFor(uint32_t whichGpio) {
|
||||
|
||||
#ifndef WITH_FPC
|
||||
// When compiled without FPC support
|
||||
#ifndef WITH_FPC_USART
|
||||
// When compiled without FPC USART support
|
||||
AT91C_BASE_PIOA->PIO_OER =
|
||||
GPIO_MUXSEL_HIPKD |
|
||||
GPIO_MUXSEL_LOPKD |
|
||||
|
@ -472,7 +472,7 @@ void SetAdcMuxFor(uint32_t whichGpio) {
|
|||
#else
|
||||
if ((whichGpio == GPIO_MUXSEL_LORAW) || (whichGpio == GPIO_MUXSEL_HIRAW))
|
||||
return;
|
||||
// FPC serial uses HIRAW/LOWRAW pins, so they are excluded here.
|
||||
// FPC USART uses HIRAW/LOWRAW pins, so they are excluded here.
|
||||
AT91C_BASE_PIOA->PIO_OER = GPIO_MUXSEL_HIPKD | GPIO_MUXSEL_LOPKD;
|
||||
AT91C_BASE_PIOA->PIO_PER = GPIO_MUXSEL_HIPKD | GPIO_MUXSEL_LOPKD;
|
||||
LOW(GPIO_MUXSEL_HIPKD);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue