logo

qmk_firmware

custom branch of QMK firmware git clone https://anongit.hacktivis.me/git/qmk_firmware.git

readme.md (3179B)


  1. # Valor FRL TKL Rev2.0
  2. An Alice-esque FRL TKL keyboard PCB.
  3. * Keyboard Maintainer: [Xelus22](https://github.com/Xelus22)
  4. * Hardware Supported: Valor FRL TKL
  5. * Hardware Availability: Custom keyboard group buys
  6. ### Important Note
  7. This version uses the pin PA9 which is un-usable with the current ChibiOS. The first column will be disabled if this firmware is compiled normally.
  8. A patch is required locally to use this version.
  9. Please use this patch:
  10. ```diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
  11. index 0f48d1fd0..38aff8554 100644
  12. --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
  13. +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
  14. @@ -40,18 +40,18 @@
  15. #if STM32_OTG_STEPPING == 1
  16. #if defined(BOARD_OTG_NOVBUSSENS)
  17. -#define GCCFG_INIT_VALUE (GCCFG_NOVBUSSENS | GCCFG_VBUSASEN | \
  18. - GCCFG_VBUSBSEN | GCCFG_PWRDWN)
  19. +#define GCCFG_INIT_VALUE (GCCFG_NOVBUSSENS | \
  20. + GCCFG_PWRDWN)
  21. #else
  22. -#define GCCFG_INIT_VALUE (GCCFG_VBUSASEN | GCCFG_VBUSBSEN | \
  23. +#define GCCFG_INIT_VALUE (GCCFG_NOVBUSSENS | \
  24. GCCFG_PWRDWN)
  25. #endif
  26. #elif STM32_OTG_STEPPING == 2
  27. #if defined(BOARD_OTG_NOVBUSSENS)
  28. -#define GCCFG_INIT_VALUE GCCFG_PWRDWN
  29. +#define GCCFG_INIT_VALUE (GCCFG_NOVBUSSENS | GCCFG_PWRDWN)
  30. #else
  31. -#define GCCFG_INIT_VALUE (GCCFG_VBDEN | GCCFG_PWRDWN)
  32. +#define GCCFG_INIT_VALUE (GCCFG_NOVBUSSENS | GCCFG_VBDEN | GCCFG_PWRDWN)
  33. #endif
  34. #endif
  35. @@ -815,7 +815,7 @@ void usb_lld_start(USBDriver *usbp) {
  36. otgp->PCGCCTL = 0;
  37. /* VBUS sensing and transceiver enabled.*/
  38. - otgp->GOTGCTL = GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL;
  39. + // otgp->GOTGCTL = GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL;
  40. #if defined(BOARD_OTG2_USES_ULPI)
  41. #if STM32_USB_USE_OTG1
  42. diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
  43. index 69a5ab603..200b4b91a 100644
  44. --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
  45. +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
  46. @@ -534,7 +534,7 @@ struct USBDriver {
  47. * @notapi
  48. */
  49. #if (STM32_OTG_STEPPING == 1) || defined(__DOXYGEN__)
  50. -#define usb_lld_connect_bus(usbp) ((usbp)->otg->GCCFG |= GCCFG_VBUSBSEN)
  51. +#define usb_lld_connect_bus(usbp)
  52. #else
  53. #define usb_lld_connect_bus(usbp) ((usbp)->otg->DCTL &= ~DCTL_SDIS)
  54. #endif
  55. @@ -545,7 +545,7 @@ struct USBDriver {
  56. * @notapi
  57. */
  58. #if (STM32_OTG_STEPPING == 1) || defined(__DOXYGEN__)
  59. -#define usb_lld_disconnect_bus(usbp) ((usbp)->otg->GCCFG &= ~GCCFG_VBUSBSEN)
  60. +#define usb_lld_disconnect_bus(usbp)
  61. #else
  62. #define usb_lld_disconnect_bus(usbp) ((usbp)->otg->DCTL |= DCTL_SDIS)
  63. #endif
  64. ```
  65. Make example for this keyboard (after setting up your build environment):
  66. make xelus/valor_frl_tkl/rev2_0:default
  67. make xelus/valor_frl_tkl/rev2_0:via
  68. See the [build environment setup](https://docs.qmk.fm/#/getting_started_build_tools) and the [make instructions](https://docs.qmk.fm/#/getting_started_make_guide) for more information. Brand new to QMK? Start with our [Complete Newbs Guide](https://docs.qmk.fm/#/newbs).