Various fixes thanks to pl4nkton.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@10224 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
0a80e007b0
commit
4838806bfe
|
@ -562,9 +562,10 @@ void sdc_lld_set_data_clk(SDCDriver *sdcp, sdcbusclk_t clk) {
|
|||
(void)clk;
|
||||
|
||||
#if STM32_SDC_SDMMC_PWRSAV
|
||||
#else
|
||||
sdcp->sdmmc->CLKCR = (sdcp->sdmmc->CLKCR & 0xFFFFFF00U) | SDMMC_CLKDIV_HS |
|
||||
SDMMC_CLKCR_PWRSAV;
|
||||
#else
|
||||
sdcp->sdmmc->CLKCR = (sdcp->sdmmc->CLKCR & 0xFFFFFF00U) | SDMMC_CLKDIV_HS;
|
||||
#endif
|
||||
#endif
|
||||
}
|
||||
|
@ -583,7 +584,7 @@ void sdc_lld_stop_clk(SDCDriver *sdcp) {
|
|||
}
|
||||
|
||||
/**
|
||||
* @brief Switches the bus to 4 bits mode.
|
||||
* @brief Switches the bus to 1, 4 or 8 bits mode.
|
||||
*
|
||||
* @param[in] sdcp pointer to the @p SDCDriver object
|
||||
* @param[in] mode bus mode
|
||||
|
|
|
@ -769,7 +769,7 @@
|
|||
/* USB attributes.*/
|
||||
#define STM32_OTG_STEPPING 2
|
||||
#define STM32_HAS_OTG1 TRUE
|
||||
#define STM32_OTG1_ENDPOINTS 6
|
||||
#define STM32_OTG1_ENDPOINTS 5
|
||||
#define STM32_HAS_OTG2 TRUE
|
||||
#define STM32_OTG2_ENDPOINTS 7
|
||||
|
||||
|
@ -1464,7 +1464,7 @@
|
|||
/* USB attributes.*/
|
||||
#define STM32_OTG_STEPPING 1
|
||||
#define STM32_HAS_OTG1 TRUE
|
||||
#define STM32_OTG1_ENDPOINTS 4
|
||||
#define STM32_OTG1_ENDPOINTS 3
|
||||
|
||||
#define STM32_HAS_OTG2 FALSE
|
||||
#define STM32_HAS_USB FALSE
|
||||
|
@ -1759,7 +1759,7 @@
|
|||
/* USB attributes.*/
|
||||
#define STM32_OTG_STEPPING 1
|
||||
#define STM32_HAS_OTG1 TRUE
|
||||
#define STM32_OTG1_ENDPOINTS 4
|
||||
#define STM32_OTG1_ENDPOINTS 3
|
||||
|
||||
#define STM32_HAS_OTG2 FALSE
|
||||
#define STM32_HAS_USB FALSE
|
||||
|
@ -2665,7 +2665,7 @@
|
|||
/* USB attributes.*/
|
||||
#define STM32_OTG_STEPPING 1
|
||||
#define STM32_HAS_OTG1 TRUE
|
||||
#define STM32_OTG1_ENDPOINTS 4
|
||||
#define STM32_OTG1_ENDPOINTS 3
|
||||
#define STM32_HAS_OTG2 FALSE
|
||||
|
||||
#define STM32_HAS_USB FALSE
|
||||
|
|
Loading…
Reference in New Issue