qmk_firmware

QMK firmware for my keyboards (Corne, Sweep Ferris) and trackball (Ploopy Adept)
Log | Files | Refs | Submodules | LICENSE

readme.md (3179B)


      1 # Valor FRL TKL Rev2.0
      2 
      3 An Alice-esque FRL TKL keyboard PCB.
      4 
      5 * Keyboard Maintainer: [Xelus22](https://github.com/Xelus22)
      6 * Hardware Supported: Valor FRL TKL
      7 * Hardware Availability: Custom keyboard group buys
      8 
      9 ### Important Note
     10 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.
     11 A patch is required locally to use this version. 
     12 Please use this patch:
     13 ```diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
     14 index 0f48d1fd0..38aff8554 100644
     15 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
     16 +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.c
     17 @@ -40,18 +40,18 @@
     18  
     19  #if STM32_OTG_STEPPING == 1
     20  #if defined(BOARD_OTG_NOVBUSSENS)
     21 -#define GCCFG_INIT_VALUE        (GCCFG_NOVBUSSENS | GCCFG_VBUSASEN |        \
     22 -                                 GCCFG_VBUSBSEN | GCCFG_PWRDWN)
     23 +#define GCCFG_INIT_VALUE        (GCCFG_NOVBUSSENS |        \
     24 +                                 GCCFG_PWRDWN)
     25  #else
     26 -#define GCCFG_INIT_VALUE        (GCCFG_VBUSASEN | GCCFG_VBUSBSEN |          \
     27 +#define GCCFG_INIT_VALUE        (GCCFG_NOVBUSSENS |          \
     28                                   GCCFG_PWRDWN)
     29  #endif
     30  
     31  #elif STM32_OTG_STEPPING == 2
     32  #if defined(BOARD_OTG_NOVBUSSENS)
     33 -#define GCCFG_INIT_VALUE        GCCFG_PWRDWN
     34 +#define GCCFG_INIT_VALUE        (GCCFG_NOVBUSSENS | GCCFG_PWRDWN)
     35  #else
     36 -#define GCCFG_INIT_VALUE        (GCCFG_VBDEN | GCCFG_PWRDWN)
     37 +#define GCCFG_INIT_VALUE        (GCCFG_NOVBUSSENS | GCCFG_VBDEN | GCCFG_PWRDWN)
     38  #endif
     39  
     40  #endif
     41 @@ -815,7 +815,7 @@ void usb_lld_start(USBDriver *usbp) {
     42      otgp->PCGCCTL = 0;
     43  
     44      /* VBUS sensing and transceiver enabled.*/
     45 -    otgp->GOTGCTL = GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL;
     46 +    // otgp->GOTGCTL = GOTGCTL_BVALOEN | GOTGCTL_BVALOVAL;
     47  
     48  #if defined(BOARD_OTG2_USES_ULPI)
     49  #if STM32_USB_USE_OTG1
     50 diff --git a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
     51 index 69a5ab603..200b4b91a 100644
     52 --- a/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
     53 +++ b/os/hal/ports/STM32/LLD/OTGv1/hal_usb_lld.h
     54 @@ -534,7 +534,7 @@ struct USBDriver {
     55   * @notapi
     56   */
     57  #if (STM32_OTG_STEPPING == 1) || defined(__DOXYGEN__)
     58 -#define usb_lld_connect_bus(usbp) ((usbp)->otg->GCCFG |= GCCFG_VBUSBSEN)
     59 +#define usb_lld_connect_bus(usbp)
     60  #else
     61  #define usb_lld_connect_bus(usbp) ((usbp)->otg->DCTL &= ~DCTL_SDIS)
     62  #endif
     63 @@ -545,7 +545,7 @@ struct USBDriver {
     64   * @notapi
     65   */
     66  #if (STM32_OTG_STEPPING == 1) || defined(__DOXYGEN__)
     67 -#define usb_lld_disconnect_bus(usbp) ((usbp)->otg->GCCFG &= ~GCCFG_VBUSBSEN)
     68 +#define usb_lld_disconnect_bus(usbp)
     69  #else
     70  #define usb_lld_disconnect_bus(usbp) ((usbp)->otg->DCTL |= DCTL_SDIS)
     71  #endif
     72 ```
     73 
     74 Make example for this keyboard (after setting up your build environment):
     75 
     76     make xelus/valor_frl_tkl/rev2_0:default
     77     make xelus/valor_frl_tkl/rev2_0:via
     78 
     79 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).