Kconfig 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. menu "Hardware Drivers Config"
  2. choice
  3. prompt "select chip type"
  4. default SOC_SAMC21J18
  5. config SOC_SAMC21J18
  6. bool "SOC_SAMC21J18"
  7. help
  8. Refer to SAMC21 DataSheet
  9. config SOC_SAMC21G18
  10. bool "SOC_SAMC21G18"
  11. help
  12. Refer to SAMC21 DataSheet
  13. config SOC_SAMC21E18
  14. bool "SOC_SAMC21E18"
  15. help
  16. Refer to SAMC21 DataSheet
  17. endchoice
  18. endmenu
  19. menu "Onboard Peripheral Drivers"
  20. depends on SOC_SAMC21J18
  21. config SAMC21_CAN0
  22. bool "Enable CAN0"
  23. default false
  24. config SAMC21_ADC0
  25. bool "Enable ADC0"
  26. default false
  27. config SAMC21_I2C0
  28. bool "Enable I2C0"
  29. default false
  30. endmenu
  31. menu "Application Demo Config"
  32. config SAM_CAN_EXAMPLE
  33. bool "Enable SAM CAN Example"
  34. depends on SAMC21_CAN0
  35. default true
  36. help
  37. Add CAN example task to project
  38. config SAM_ADC_EXAMPLE
  39. bool "Enable SAM ADC Example"
  40. depends on SAMC21_ADC0
  41. default true
  42. help
  43. Add ADC example task to project
  44. config SAM_I2C_EXAMPLE
  45. bool "Enable SAM I2C Example"
  46. depends on SAMC21_I2C0
  47. default true
  48. help
  49. Add I2C example task to project
  50. endmenu