FreeRTOS/Demo/CORTEX_LM3S6965_GCC_QEMU/LocalDemoFiles/osram128x64x4.c
//*****************************************************************************
//
//! Enable the SSI component of the OLED display driver.
//!
//! \param ulFrequency specifies the SSI Clock Frequency to be used.
//!
//! This function initializes the SSI interface to the OLED display.
//!
//! This function is contained in <tt>osram128x64x4.c</tt>, with
//! <tt>osram128x64x4.h</tt> containing the API definition for use by
//! applications.
//!
//! \return None.
//
//*****************************************************************************
Enable the SSI component of the OLED display driver.
\param ulFrequency specifies the SSI Clock Frequency to be used.

This function initializes the SSI interface to the OLED display.

This function is contained in osram128x64x4.c, with
osram128x64x4.h containing the API definition for use by
applications.

\return None.
Enable the SSI component of the OLED display driver . \ param ulFrequency specifies the SSI Clock Frequency to be used . This function initializes the SSI interface to the OLED display . This function is contained in osram128x64x4 . c with osram128x64x4 . h containing the API definition for use by applications . \ return None .
void
OSRAM128x64x4Enable(unsigned long ulFrequency)
{
    unsigned long ulTemp;
     Disable the SSI port.
    SSIDisable(SSI0_BASE);
     Configure the SSI0 port for master mode.
    SSIConfig(SSI0_BASE, SSI_FRF_MOTO_MODE_2, SSI_MODE_MASTER, ulFrequency, 8);
     (Re)Enable SSI control of the FSS pin.
    GPIOPinTypeSSI(GPIO_PORTA_BASE, GPIO_PIN_3);
    GPIOPadConfigSet(GPIO_PORTA_BASE, GPIO_PIN_3, GPIO_STRENGTH_8MA,
                     GPIO_PIN_TYPE_STD_WPU);
     Enable the SSI port.
    SSIEnable(SSI0_BASE);
     Drain the receive fifo.
    while(SSIDataNonBlockingGet(SSI0_BASE, &ulTemp) != 0)
    {
    }
     Indicate that the OSRAM driver can use the SSI Port.
    g_bSSIEnabled = true;
}
void OSRAM128x64x4Enable ( unsigned long ulFrequency ) { unsigned long ulTemp ; SSIDisable ( SSI0_BASE ) ; SSIConfig ( SSI0_BASE , SSI_FRF_MOTO_MODE_2 , SSI_MODE_MASTER , ulFrequency , 8 ) ; GPIOPinTypeSSI ( GPIO_PORTA_BASE , GPIO_PIN_3 ) ; GPIOPadConfigSet ( GPIO_PORTA_BASE , GPIO_PIN_3 , GPIO_STRENGTH_8MA , GPIO_PIN_TYPE_STD_WPU ) ; SSIEnable ( SSI0_BASE ) ; while ( SSIDataNonBlockingGet ( SSI0_BASE , & ulTemp ) != 0 ) { } g_bSSIEnabled = true ; }
Enable the SSI component of the OLED display driver.
Enable the SSI component of the OLED display driver .
// // Disable the SSI port. // // // Configure the SSI0 port for master mode. // // // (Re)Enable SSI control of the FSS pin. // // // Enable the SSI port. // // // Drain the receive fifo. // // // Indicate that the OSRAM driver can use the SSI Port. //