git-svn-id: svn://svn.code.sf.net/p/chibios/svn/branches/kernel_3_dev@6451 35acf78f-673a-0410-8e92-d51de3d6d3f4

master
gdisirio 2013-11-11 13:52:23 +00:00
parent 744250d0e2
commit b14eb58afe
9 changed files with 31 additions and 23 deletions

View File

@ -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 */

View File

@ -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.

View File

@ -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"

View File

@ -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 */

View File

@ -44,7 +44,6 @@
#define STM32_HSECLK 12000000
#endif
/*
* Board voltages.
* Required for performance limits calculation.

View File

@ -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"

View File

@ -40,7 +40,6 @@
#define STM32_HSECLK 8000000
#endif
/*
* Board voltages.
* Required for performance limits calculation.

View File

@ -40,7 +40,6 @@
#define STM32_HSECLK 8000000
#endif
/*
* Board voltages.
* Required for performance limits calculation.

View File

@ -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