Professional Documents
Culture Documents
* AudioRegisterWrite.c
*
* This module is used to interface the Audio shift register on PortE
*
* Author: Paul Westhoff ME218A FAll 2017
*/
#include "termio.h"
#include "BITDEFS.H"
#include "ES_Port.h"
// readability defines
#define DATA BIT1HI //GPIO_PIN_1
#define DATA_HI BIT1HI
#define DATA_LO BIT1LO
if (output)
{
HWREG(GPIO_PORTE_BASE + (GPIO_O_DATA + ALL_BITS)) |= DATA_HI;
}
else
{
HWREG(GPIO_PORTE_BASE + (GPIO_O_DATA + ALL_BITS)) &= DATA_LO;
}