git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6451 35acf78f-673a-0410-8e92-d51de3d6d3f4
parent
744250d0e2
commit
b14eb58afe
|
@ -61,9 +61,9 @@ void __early_init(void) {
|
|||
*/
|
||||
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||
static bool last_status = FALSE;
|
||||
|
||||
if (blkIsTransferring(sdcp))
|
||||
return last_status;
|
||||
|
||||
if (blkIsTransferring(sdcp))
|
||||
return last_status;
|
||||
return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3);
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
|||
* @brief SDC card write protection detection.
|
||||
*/
|
||||
bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
|
||||
|
||||
(void)sdcp;
|
||||
|
||||
(void)sdcp;
|
||||
return FALSE;
|
||||
}
|
||||
#endif /* HAL_USE_SDC */
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#define STM32_HSECLK 12000000
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Board voltages.
|
||||
* Required for performance limits calculation.
|
||||
|
@ -54,7 +53,7 @@
|
|||
/*
|
||||
* MCU type as defined in the ST header.
|
||||
*/
|
||||
#define STM32F401xx
|
||||
#define STM32F40_41xxx
|
||||
|
||||
/*
|
||||
* IO pins assignments.
|
||||
|
|
|
@ -23,8 +23,13 @@
|
|||
<bus_type>RMII</bus_type>
|
||||
</ethernet_phy>
|
||||
<subtype>STM32F40_41xxx</subtype>
|
||||
<clocks HSEFrequency="12000000" HSEBypass="false" LSEFrequency="32768"
|
||||
VDD="330" />
|
||||
<clocks
|
||||
HSEFrequency="12000000"
|
||||
HSEBypass="false"
|
||||
LSEFrequency="32768"
|
||||
LSEBypass="false"
|
||||
VDD="330"
|
||||
/>
|
||||
<ports>
|
||||
<GPIOA>
|
||||
<pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating"
|
||||
|
|
|
@ -60,10 +60,10 @@ void __early_init(void) {
|
|||
* @brief SDC card detection.
|
||||
*/
|
||||
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||
static bool_t last_status = FALSE;
|
||||
|
||||
if (blkIsTransferring(sdcp))
|
||||
return last_status;
|
||||
static bool_t last_status = FALSE;
|
||||
|
||||
if (blkIsTransferring(sdcp))
|
||||
return last_status;
|
||||
return last_status = (bool_t)palReadPad(GPIOC, GPIOC_SD_D3);
|
||||
}
|
||||
|
||||
|
@ -71,8 +71,8 @@ bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
|||
* @brief SDC card write protection detection.
|
||||
*/
|
||||
bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
|
||||
|
||||
(void)sdcp;
|
||||
|
||||
(void)sdcp;
|
||||
return FALSE;
|
||||
}
|
||||
#endif /* HAL_USE_SDC */
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#define STM32_HSECLK 12000000
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Board voltages.
|
||||
* Required for performance limits calculation.
|
||||
|
|
|
@ -23,8 +23,13 @@
|
|||
<bus_type>RMII</bus_type>
|
||||
</ethernet_phy>
|
||||
<subtype>STM32F40_41xxx</subtype>
|
||||
<clocks HSEFrequency="12000000" HSEBypass="false" LSEFrequency="32768"
|
||||
VDD="330" />
|
||||
<clocks
|
||||
HSEFrequency="12000000"
|
||||
HSEBypass="false"
|
||||
LSEFrequency="32768"
|
||||
LSEBypass="false"
|
||||
VDD="330"
|
||||
/>
|
||||
<ports>
|
||||
<GPIOA>
|
||||
<pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating"
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#define STM32_HSECLK 8000000
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Board voltages.
|
||||
* Required for performance limits calculation.
|
||||
|
|
|
@ -40,7 +40,6 @@
|
|||
#define STM32_HSECLK 8000000
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* Board voltages.
|
||||
* Required for performance limits calculation.
|
||||
|
|
|
@ -11,9 +11,11 @@
|
|||
<board_id>ST_STM32L_DISCOVERY</board_id>
|
||||
<board_functions></board_functions>
|
||||
<clocks
|
||||
HSEFrequency="0"
|
||||
HSEBypass="true"
|
||||
LSEFrequency="32768" />
|
||||
HSEFrequency="0"
|
||||
HSEBypass="true"
|
||||
LSEFrequency="32768"
|
||||
LSEBypass="false"
|
||||
/>
|
||||
<ports>
|
||||
<GPIOA>
|
||||
<pin0
|
||||
|
|
Loading…
Reference in New Issue