comparison src/cs/layer1/cfile/l1_init.c @ 216:2be687f4476c default tip

l1_init.c: sync with Tourmaline: L1 recovery ABB init fix
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 31 Oct 2022 01:23:14 +0000
parents b6a5e36de839
children
comparison
equal deleted inserted replaced
215:ed876f98fdfd 216:2be687f4476c
720 Abb->DevId = ABB; 720 Abb->DevId = ABB;
721 Abb->ClkEdge = SPI_CLK_EDG_RISE; 721 Abb->ClkEdge = SPI_CLK_EDG_RISE;
722 Abb->TspEnLevel = SPI_NTSPEN_NEG_LEV; 722 Abb->TspEnLevel = SPI_NTSPEN_NEG_LEV;
723 Abb->TspEnForm = SPI_NTSPEN_LEV_TRIG; 723 Abb->TspEnForm = SPI_NTSPEN_LEV_TRIG;
724 724
725 SPI_InitDev(Abb); /* Initialize the spi to work with ABB */ 725 /*
726 726 * FreeCalypso change: skip the following two non-semaphore-protected
727 ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/ 727 * steps in the case of L1/DSP recovery, and limit our ABB poking to
728 Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */ 728 * semaphore-protected functions.
729 */
730 if (l1a_l1s_com.recovery_flag == FALSE)
731 {
732 SPI_InitDev(Abb); /* Initialize the spi to work with ABB */
733 ABB_free_13M(); /* Set up Abb connection (CLK 13M free).*/
734 }
735
736 Abb_Status = ABB_Read_Status(); /* Aknowledge the Abb status register. */
729 737
730 /*------------------------------------------------------------------*/ 738 /*------------------------------------------------------------------*/
731 /* Add here SW to manage Abb VRPCSTS status register informations */ 739 /* Add here SW to manage Abb VRPCSTS status register informations */
732 /*------------------------------------------------------------------*/ 740 /*------------------------------------------------------------------*/
733 741