Add dummy AVR pulldown functions for ParallelBus

This commit is contained in:
Doug Brown 2023-08-06 20:35:30 -07:00 committed by Doug Brown
parent 843787ffc6
commit 01368fb9b8

View File

@ -313,6 +313,17 @@ void ParallelBus_SetAddressPullups(uint32_t pullups)
ParallelBus_SetAddress(pullups);
}
/** Sets which pins on the 21-bit address bus should be pulled down (if inputs)
*
* @param pulldowns Mask of pins that should be pulldowns.
*
* Not supported on the AVR. It's only for electrical testing, so no big deal.
*/
void ParallelBus_SetAddressPulldowns(uint32_t pulldowns)
{
(void)pulldowns;
}
/** Sets which pins on the 32-bit data bus should be pulled up (if inputs)
*
* @param pullups Mask of pins that should be pullups.
@ -340,6 +351,17 @@ void ParallelBus_SetDataPullups(uint32_t pullups)
MCP23S17_SetPullups(&mcp23s17, u.dataShorts[1]);
}
/** Sets which pins on the 32-bit data bus should be pulled down (if inputs)
*
* @param pulldowns Mask of pins that should be pulldowns.
*
* Not supported on the AVR. It's only for electrical testing, so no big deal.
*/
void ParallelBus_SetDataPulldowns(uint32_t pulldowns)
{
(void)pulldowns;
}
/** Sets whether the CS pin is pulled up, if it's an input.
*
* @param pullup True if the CS pin should be pulled up, false if not
@ -352,6 +374,17 @@ void ParallelBus_SetCSPullup(bool pullup)
GPIO_SetPullup(flashCSPin, pullup);
}
/** Sets whether the CS pin is pulled down, if it's an input.
*
* @param pulldown True if the CS pin should be pulled down, false if not
*
* Not supported on the AVR. It's only for electrical testing, so no big deal.
*/
void ParallelBus_SetCSPulldown(bool pulldown)
{
(void)pulldown;
}
/** Sets whether the OE pin is pulled up, if it's an input.
*
* @param pullup True if the OE pin should be pulled up, false if not
@ -364,6 +397,17 @@ void ParallelBus_SetOEPullup(bool pullup)
GPIO_SetPullup(flashOEPin, pullup);
}
/** Sets whether the OE pin is pulled down, if it's an input.
*
* @param pulldown True if the OE pin should be pulled down, false if not
*
* Not supported on the AVR. It's only for electrical testing, so no big deal.
*/
void ParallelBus_SetOEPulldown(bool pulldown)
{
(void)pulldown;
}
/** Sets whether the WE pin is pulled up, if it's an input.
*
* @param pullup True if the WE pin should be pulled up, false if not
@ -376,6 +420,17 @@ void ParallelBus_SetWEPullup(bool pullup)
GPIO_SetPullup(flashWEPin, pullup);
}
/** Sets whether the WE pin is pulled down, if it's an input.
*
* @param pulldown True if the WE pin should be pulled down, false if not
*
* Not supported on the AVR. It's only for electrical testing, so no big deal.
*/
void ParallelBus_SetWEPulldown(bool pulldown)
{
(void)pulldown;
}
/** Reads the current data on the address bus.
*
* @return The address bus readback