summaryrefslogtreecommitdiffstats
path: root/keyboards/handwired/onekey/blackpill_f401
Commit message (Collapse)AuthorAgeFilesLines
* handwired/onekey/blackpill_f401: Fix I2C pin config mismatch (#10322)Sergey Vlasov2020-11-121-0/+23
| | | | | | | | | | | | | | By default the `i2c_master` driver for ChibiOS uses the B6 pin for `I2C1_SCL` and the B7 pin for `I2C1_SDA`. However, the ChibiOS board file used for the F401 Blackpill board (`ST_STM32F401C_DISCOVERY`) configures B6 as `I2C1_SCL` and B9 as `I2C1_SDA`, and if that configuration is left unchanged, enabling the `i2c_master` driver results in having two pins (B7 and B9) configured as `I2C1_SDA` at the same time, which does not work properly (experimental results show that the B9 pin still works as `I2C1_SDA` in that case, and the B7 pin does not work). Configure the B9 pin as an input with pull-up in `board_init()`, so that the B7 pin can be configured as `I2C1_SDA` by the I2C driver.
* Fix backlight for F401/F411 blackpill onekey examples (#10320)Sergey Vlasov2020-09-213-1/+5
| | | | | | | | | | | | Fix configs to make the `handwired/onekey/blackpill_f401:backlight` and `handwired/onekey/blackpill_f411:backlight` examples actually compile and work: - Use `PWMD5` instead of `PWMD2` for backlight, which matches the default value of `BACKLIGHT_PAL_MODE` (AF02 for pin A0 is `TIM5_CH1`) and does not conflict with the default value of `STM32_ST_USE_TIMER`. - Enable `HAL_USE_PWM` in halconf.h and `STM32_PWM_USE_TIM5` in mcuconf.h, so that `PWMD5` could be used.
* Add STM32F401/F411 to mcu_selection.mk (#10278)Ryan2020-09-181-26/+4
| | | | | | | * Reorder STM32 MCUs * Add STM32F4xx to mcu_selection.mk * Set MCU for phoenix and tkw/stoutgat/v2/f411
* Initial work for consolidation of ChibiOS platform files (#8327)Nick Brassel2020-08-293-1483/+32
| | | | | | | | | | | | | | | | | * Initial work for consolidation of board files and default ChibiOS configs. * Migrate F401/F411 black pills for testing. * Add early init bootloader jump flag. * Add support for I2C in order to use i2c_scanner keymap. * Add F401/F411 HSE bypass to get things booting. * Exempt "hooked" ChibiOS conf files from updater script. * Fix up ordering for bootloader_defs file check. * Match previous $(KEYBOARD_PATHS) value for Proton-C, updated for all board configs.
* Change ?= to = in keyboard rules.mk (#9390)Ryan2020-06-151-1/+1
|
* Set backlight and RGB pins for AVR onekeys (#8533)Ryan2020-03-241-0/+2
| | | | | | | | | | | * Set backlight and RGB pins for AVR onekeys * Set pin for ADC as well * Define ADC_PIN for F4 blackpills * Use A0 for F4 ADCs * Set ADC pins for F0 and F1
* Add f401 and f411 blackpill examples (#7930)Joel Challis2020-03-066-0/+1558
* Add f401 and f411 blackpill examples * Add readme files * Align dfu args with core * Add support for RESET keycode * move STM32_BOOTLOADER_ADDRESS to rules * Update conf files to latest ChibiOS * Update conf files to latest ChibiOS