Example #1
0
/**
  * @brief  Deinitializes the SDIO peripheral registers to their default reset values.
  * @param  None
  * @retval None
  */
void SDIO_DeInit(void)
{
  rcc_peripheral_enable_clock(&RCC_APB2ENR, RCC_APB2ENR_SDIOEN);   //RCC_APB2ENR_SDIOEN
  //RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, ENABLE);
  rcc_peripheral_disable_clock(&RCC_APB2ENR, RCC_APB2ENR_SDIOEN);   //RCC_APB2ENR_SDIOEN
  //RCC_APB2PeriphResetCmd(RCC_APB2Periph_SDIO, DISABLE);
}
Example #2
0
void PROTO_Stubs(int idx)
{
    if (! idx)
        return;
    CLOCK_StartTimer();
  
    spi_disable();
    spi_set_bidirectional_receive_only_mode();
    spi_read();
    spi_set_unidirectional_mode();

    TELEMETRY_SetUpdated();
    TELEMETRY_SetType();
    UART_Stop();
    rcc_peripheral_disable_clock();
    _usleep();
    MCU_SerialNumber();
    USB_Disable();
    PROTO_CS_HI();
    PROTO_CS_LO();
    MUSIC_Beep();
    rand32();
}