config.c 493 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #include "include.h"
  2. AT(.rodata.func.table)
  3. const u8 func_sort_table[] = {
  4. #if FUNC_BT_EN
  5. FUNC_BT,
  6. #endif
  7. #if FUNC_BTHID_EN
  8. FUNC_BTHID,
  9. #endif
  10. #if FUNC_AUX_EN
  11. FUNC_AUX,
  12. #endif
  13. #if FUNC_SPEAKER_EN
  14. FUNC_SPEAKER,
  15. #endif
  16. };
  17. AT(.text.func)
  18. u8 get_funcs_total(void)
  19. {
  20. return sizeof(func_sort_table);
  21. }
  22. uint getcfg_bt_fcc_io(void)
  23. {
  24. return xcfg_cb.bt_fcc_io;
  25. }
  26. #if SYS_SUPPORT_DONGLE_EN
  27. AT(.text.dongle)
  28. u8 *getcfg_soft_key(void)
  29. {
  30. return xcfg_cb.soft_key;
  31. }
  32. #endif