MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / EBI_BankAddressTimingConfig

Function EBI_BankAddressTimingConfig

bsp/efm32/Libraries/emlib/src/em_ebi.c:941–962  ·  view source on GitHub ↗

/ * @brief * Configure address operation parameters for selected bank * * @param[in] banks * Mask of memory bank(s) to configure write timing for * * @param[in] halfALE * Enables or disables half cycle ALE strobe in last strobe cycle ******************************************************************************/

Source from the content-addressed store, hash-verified

939 * Enables or disables half cycle ALE strobe in last strobe cycle
940 ******************************************************************************/
941void EBI_BankAddressTimingConfig(uint32_t banks, bool halfALE)
942{
943 /* Verify only valid banks are used */
944 EFM_ASSERT((banks & ~(EBI_BANK0 | EBI_BANK1 | EBI_BANK2 | EBI_BANK3)) == 0);
945
946 if( banks & EBI_BANK0 )
947 {
948 BITBAND_Peripheral(&EBI->ADDRTIMING, _EBI_ADDRTIMING_HALFALE_SHIFT, halfALE);
949 }
950 if( banks & EBI_BANK1 )
951 {
952 BITBAND_Peripheral(&EBI->ADDRTIMING1, _EBI_ADDRTIMING_HALFALE_SHIFT, halfALE);
953 }
954 if( banks & EBI_BANK2 )
955 {
956 BITBAND_Peripheral(&EBI->ADDRTIMING2, _EBI_ADDRTIMING_HALFALE_SHIFT, halfALE);
957 }
958 if( banks & EBI_BANK3 )
959 {
960 BITBAND_Peripheral(&EBI->ADDRTIMING3, _EBI_ADDRTIMING_HALFALE_SHIFT, halfALE);
961 }
962}
963
964
965/***************************************************************************//**

Callers 1

EBI_InitFunction · 0.85

Calls 1

BITBAND_PeripheralFunction · 0.85

Tested by

no test coverage detected