mmc_over_gpio.lua 813 B

1234567891011121314151617181920212223242526272829
  1. -- Copyright 2008 Yanira <forum-2008@email.de>
  2. -- Licensed to the public under the Apache License 2.0.
  3. m = Map("mmc_over_gpio", translate("MMC/SD driver configuration"),
  4. translate("MMC/SD driver configuration"))
  5. s = m:section(TypedSection, "mmc_over_gpio", translate("Settings"))
  6. s.addremove = true
  7. s.anonymous = true
  8. s:option(Flag, "enabled", translate("Enable"))
  9. s:option(Value, "name", translate("Name"))
  10. pin = s:option(Value, "DI_pin", translate("DI_pin"))
  11. for i = 0,7 do pin:value(i) end
  12. pin = s:option(Value, "DO_pin", translate("DO_pin"))
  13. for i = 0,7 do pin:value(i) end
  14. pin = s:option(Value, "CLK_pin", translate("CLK_pin"))
  15. for i = 0,7 do pin:value(i) end
  16. pin = s:option(Value, "CS_pin", translate("CS_pin"))
  17. for i = 0,7 do pin:value(i) end
  18. s:option(Value, "mode", translate("Mode"))
  19. return m