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

This commit is contained in:
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) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
static bool last_status = FALSE; static bool last_status = FALSE;
if (blkIsTransferring(sdcp)) if (blkIsTransferring(sdcp))
return last_status; return last_status;
return last_status = (bool)palReadPad(GPIOC, GPIOC_SD_D3); 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. * @brief SDC card write protection detection.
*/ */
bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
(void)sdcp; (void)sdcp;
return FALSE; return FALSE;
} }
#endif /* HAL_USE_SDC */ #endif /* HAL_USE_SDC */

View File

@ -44,7 +44,6 @@
#define STM32_HSECLK 12000000 #define STM32_HSECLK 12000000
#endif #endif
/* /*
* Board voltages. * Board voltages.
* Required for performance limits calculation. * Required for performance limits calculation.
@ -54,7 +53,7 @@
/* /*
* MCU type as defined in the ST header. * MCU type as defined in the ST header.
*/ */
#define STM32F401xx #define STM32F40_41xxx
/* /*
* IO pins assignments. * IO pins assignments.

View File

@ -23,8 +23,13 @@
<bus_type>RMII</bus_type> <bus_type>RMII</bus_type>
</ethernet_phy> </ethernet_phy>
<subtype>STM32F40_41xxx</subtype> <subtype>STM32F40_41xxx</subtype>
<clocks HSEFrequency="12000000" HSEBypass="false" LSEFrequency="32768" <clocks
VDD="330" /> HSEFrequency="12000000"
HSEBypass="false"
LSEFrequency="32768"
LSEBypass="false"
VDD="330"
/>
<ports> <ports>
<GPIOA> <GPIOA>
<pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating" <pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating"

View File

@ -60,10 +60,10 @@ void __early_init(void) {
* @brief SDC card detection. * @brief SDC card detection.
*/ */
bool sdc_lld_is_card_inserted(SDCDriver *sdcp) { bool sdc_lld_is_card_inserted(SDCDriver *sdcp) {
static bool_t last_status = FALSE; static bool_t last_status = FALSE;
if (blkIsTransferring(sdcp)) if (blkIsTransferring(sdcp))
return last_status; return last_status;
return last_status = (bool_t)palReadPad(GPIOC, GPIOC_SD_D3); 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. * @brief SDC card write protection detection.
*/ */
bool sdc_lld_is_write_protected(SDCDriver *sdcp) { bool sdc_lld_is_write_protected(SDCDriver *sdcp) {
(void)sdcp; (void)sdcp;
return FALSE; return FALSE;
} }
#endif /* HAL_USE_SDC */ #endif /* HAL_USE_SDC */

View File

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

View File

@ -23,8 +23,13 @@
<bus_type>RMII</bus_type> <bus_type>RMII</bus_type>
</ethernet_phy> </ethernet_phy>
<subtype>STM32F40_41xxx</subtype> <subtype>STM32F40_41xxx</subtype>
<clocks HSEFrequency="12000000" HSEBypass="false" LSEFrequency="32768" <clocks
VDD="330" /> HSEFrequency="12000000"
HSEBypass="false"
LSEFrequency="32768"
LSEBypass="false"
VDD="330"
/>
<ports> <ports>
<GPIOA> <GPIOA>
<pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating" <pin0 ID="BUTTON_WKUP" Type="PushPull" Speed="Maximum" Resistor="Floating"

View File

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

View File

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

View File

@ -11,9 +11,11 @@
<board_id>ST_STM32L_DISCOVERY</board_id> <board_id>ST_STM32L_DISCOVERY</board_id>
<board_functions></board_functions> <board_functions></board_functions>
<clocks <clocks
HSEFrequency="0" HSEFrequency="0"
HSEBypass="true" HSEBypass="true"
LSEFrequency="32768" /> LSEFrequency="32768"
LSEBypass="false"
/>
<ports> <ports>
<GPIOA> <GPIOA>
<pin0 <pin0