200-uart-speed.patch 703 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --- a/tools/hciattach.c
  2. +++ b/tools/hciattach.c
  3. @@ -101,20 +101,37 @@ int uart_speed(int s)
  4. return B230400;
  5. case 460800:
  6. return B460800;
  7. +/* FIX: Not all platform support this high serial speed
  8. + claudyus84 @gamil.com
  9. +*/
  10. +#ifdef B500000
  11. case 500000:
  12. return B500000;
  13. +#endif
  14. +#ifdef B576000
  15. case 576000:
  16. return B576000;
  17. +#endif
  18. +#ifdef B921600
  19. case 921600:
  20. return B921600;
  21. +#endif
  22. +#ifdef B1000000
  23. case 1000000:
  24. return B1000000;
  25. +#endif
  26. +#ifdef B1152000
  27. case 1152000:
  28. return B1152000;
  29. +#endif
  30. +#ifdef B1500000
  31. case 1500000:
  32. return B1500000;
  33. +#endif
  34. +#ifdef B2000000
  35. case 2000000:
  36. return B2000000;
  37. +#endif
  38. #ifdef B2500000
  39. case 2500000:
  40. return B2500000;