git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@3026 35acf78f-673a-0410-8e92-d51de3d6d3f4
This commit is contained in:
parent
2d4aff80dc
commit
6fd3079b30
|
@ -51,9 +51,22 @@ static EventSource inserted_event, removed_event;
|
|||
*
|
||||
* @notapi
|
||||
*/
|
||||
static bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||
bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp) {
|
||||
|
||||
return TRUE;
|
||||
return !palReadPad(GPIOF, GPIOF_SD_DETECT);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Protection detection.
|
||||
* @note Not supported.
|
||||
*
|
||||
* @param[in] sdcp pointer to the @p SDCDriver object
|
||||
*
|
||||
* @notapi
|
||||
*/
|
||||
bool_t sdc_lld_is_write_protected(SDCDriver *sdcp) {
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -190,6 +190,7 @@ extern "C" {
|
|||
uint8_t *buf, uint32_t n);
|
||||
bool_t sdc_lld_write(SDCDriver *sdcp, uint32_t startblk,
|
||||
const uint8_t *buf, uint32_t n);
|
||||
bool_t sdc_lld_is_card_inserted(SDCDriver *sdcp);
|
||||
bool_t sdc_lld_is_write_protected(SDCDriver *sdcp);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue