[stm32 pandora] implement drv_key and modify drv_sdcard

This commit is contained in:
Meco Man
2021-04-17 16:28:09 +08:00
parent 6d7dafe090
commit 8956b2ea46
5 changed files with 137 additions and 5 deletions

View File

@@ -146,7 +146,7 @@ void rt_pin_write(rt_base_t pin, rt_base_t value)
}
FINSH_FUNCTION_EXPORT_ALIAS(rt_pin_write, pinWrite, write value to hardware pin);
int rt_pin_read(rt_base_t pin)
int rt_pin_read(rt_base_t pin)
{
RT_ASSERT(_hw_pin.ops != RT_NULL);
return _hw_pin.ops->pin_read(&_hw_pin.parent, pin);