tpd_setting.c 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #include "tpd.h"
  2. unsigned long TPD_RES_X = 480;
  3. unsigned long TPD_RES_Y = 800;
  4. /* #if (defined(TPD_HAVE_CALIBRATION) && !defined(TPD_CUSTOM_CALIBRATION)) */
  5. int tpd_calmat[8] = { 0 };
  6. int tpd_def_calmat[8] = { 0 };
  7. int tpd_calmat_size = 8;
  8. int tpd_def_calmat_size = 8;
  9. module_param_array(tpd_calmat, int, &tpd_calmat_size, 0664);
  10. module_param_array(tpd_def_calmat, int, &tpd_def_calmat_size, 0444);
  11. /* #endif */
  12. /* #ifdef TPD_TYPE_CAPACITIVE */
  13. int tpd_type_cap = 0;
  14. int tpd_v_magnify_x = 10;
  15. int tpd_v_magnify_y = 10;
  16. module_param(tpd_v_magnify_x, int, 0664);
  17. module_param(tpd_v_magnify_y, int, 0664);
  18. module_param(tpd_type_cap, int, 0444);
  19. int tpd_firmware_version[2] = { 0, 0 };
  20. int tpd_firmware_version_size = 2;
  21. module_param_array(tpd_firmware_version, int, &tpd_firmware_version_size, 0444);
  22. int tpd_mode = TPD_MODE_NORMAL;
  23. int tpd_mode_axis = 0;
  24. int tpd_mode_min = 400; /* TPD_RES_Y/2; */
  25. int tpd_mode_max = 800; /* TPD_RES_Y; */
  26. int tpd_mode_keypad_tolerance = 480 * 480 / 1600; /* TPD_RES_X*TPD_RES_X/1600; */
  27. module_param(tpd_mode, int, 0664);
  28. module_param(tpd_mode_axis, int, 0664);
  29. module_param(tpd_mode_min, int, 0664);
  30. module_param(tpd_mode_max, int, 0664);
  31. module_param(tpd_mode_keypad_tolerance, int, 0664);
  32. /* ATTENTION! all the default values should sync with tpd_adc_init()@tpd_adc.c */
  33. int tpd_em_debounce_time0 = 1;
  34. int tpd_em_debounce_time = 0;
  35. int tpd_em_debounce_time1 = 4;
  36. module_param(tpd_em_debounce_time0, int, 0664);
  37. module_param(tpd_em_debounce_time1, int, 0664);
  38. module_param(tpd_em_debounce_time, int, 0664);
  39. int tpd_em_spl_num = 1;
  40. module_param(tpd_em_spl_num, int, 0664);
  41. int tpd_em_pressure_threshold = 0;
  42. module_param(tpd_em_pressure_threshold, int, 0664);
  43. int tpd_em_auto_time_interval = 10;
  44. module_param(tpd_em_auto_time_interval, int, 0664);
  45. int tpd_em_sample_cnt = 16;
  46. module_param(tpd_em_sample_cnt, int, 0664);
  47. int tpd_load_status = 0;
  48. module_param(tpd_load_status, int, 0664);
  49. int tpd_em_asamp = 1;
  50. module_param(tpd_em_asamp, int, 0664);