mirror of
https://github.com/espressif/esp-idf.git
synced 2025-08-07 06:34:34 +02:00
sdio: split sdio ll version init, and hs_enable
This commit is contained in:
committed by
Armando (Dou Yiwen)
parent
e80e1450ac
commit
d39f0310de
@@ -128,6 +128,14 @@ static inline void sdio_slave_ll_set_timing(host_dev_t *host, sdio_slave_timing_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the CCCR, SDIO and Physical Layer version
|
||||||
|
*/
|
||||||
|
static inline void sdio_slave_ll_init_version(hinf_dev_t *hinf)
|
||||||
|
{
|
||||||
|
hinf->cfg_data1.sdio_ver = 0x232;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the HS supported bit to be read by the host.
|
* Set the HS supported bit to be read by the host.
|
||||||
*
|
*
|
||||||
@@ -137,8 +145,9 @@ static inline void sdio_slave_ll_set_timing(host_dev_t *host, sdio_slave_timing_
|
|||||||
static inline void sdio_slave_ll_enable_hs(hinf_dev_t *hinf, bool hs)
|
static inline void sdio_slave_ll_enable_hs(hinf_dev_t *hinf, bool hs)
|
||||||
{
|
{
|
||||||
if (hs) {
|
if (hs) {
|
||||||
hinf->cfg_data1.sdio_ver = 0x232;
|
|
||||||
hinf->cfg_data1.highspeed_enable = 1;
|
hinf->cfg_data1.highspeed_enable = 1;
|
||||||
|
} else {
|
||||||
|
hinf->cfg_data1.highspeed_enable = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -128,6 +128,14 @@ static inline void sdio_slave_ll_set_timing(host_dev_t *host, sdio_slave_timing_
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Set the CCCR, SDIO and Physical Layer version
|
||||||
|
*/
|
||||||
|
static inline void sdio_slave_ll_init_version(hinf_dev_t *hinf)
|
||||||
|
{
|
||||||
|
hinf->cfg_data1.sdio_ver = 0x232;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set the HS supported bit to be read by the host.
|
* Set the HS supported bit to be read by the host.
|
||||||
*
|
*
|
||||||
@@ -137,8 +145,9 @@ static inline void sdio_slave_ll_set_timing(host_dev_t *host, sdio_slave_timing_
|
|||||||
static inline void sdio_slave_ll_enable_hs(hinf_dev_t *hinf, bool hs)
|
static inline void sdio_slave_ll_enable_hs(hinf_dev_t *hinf, bool hs)
|
||||||
{
|
{
|
||||||
if (hs) {
|
if (hs) {
|
||||||
hinf->cfg_data1.sdio_ver = 0x232;
|
|
||||||
hinf->cfg_data1.highspeed_enable = 1;
|
hinf->cfg_data1.highspeed_enable = 1;
|
||||||
|
} else {
|
||||||
|
hinf->cfg_data1.highspeed_enable = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user