mirror of
https://github.com/zmkfirmware/zmk.git
synced 2026-03-20 04:55:20 -05:00
fix(boards): BDN9 rev2 tweaks.
* Reduce RAM usage, no need for heap any more in ZMK. * Don't attempt to enable FPU that's not present.
This commit is contained in:
committed by
Pete Johanson
parent
fb67e4603a
commit
6ae6bf78b4
@@ -109,6 +109,9 @@ zephyr_udc0: &usb {
|
|||||||
status = "okay";
|
status = "okay";
|
||||||
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
|
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
|
||||||
pinctrl-names = "default";
|
pinctrl-names = "default";
|
||||||
|
|
||||||
|
// Overridden to lower RAM usage.
|
||||||
|
num-bidir-endpoints = <4>;
|
||||||
};
|
};
|
||||||
|
|
||||||
&rtc {
|
&rtc {
|
||||||
|
|||||||
@@ -5,9 +5,6 @@ CONFIG_SOC_STM32F072XB=y
|
|||||||
# 72MHz system clock
|
# 72MHz system clock
|
||||||
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
|
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000
|
||||||
|
|
||||||
# Floating Point Options
|
|
||||||
CONFIG_FPU=y
|
|
||||||
|
|
||||||
# enable GPIO
|
# enable GPIO
|
||||||
CONFIG_GPIO=y
|
CONFIG_GPIO=y
|
||||||
|
|
||||||
@@ -17,10 +14,9 @@ CONFIG_PINCTRL=y
|
|||||||
# Poll to avoid interrupt overlap issues
|
# Poll to avoid interrupt overlap issues
|
||||||
CONFIG_ZMK_KSCAN_DIRECT_POLLING=y
|
CONFIG_ZMK_KSCAN_DIRECT_POLLING=y
|
||||||
|
|
||||||
# Needed to reduce this to size that will fit on F072
|
CONFIG_ISR_STACK_SIZE=1024
|
||||||
CONFIG_HEAP_MEM_POOL_SIZE=1024
|
|
||||||
|
|
||||||
# clock configuration
|
# clock configuration
|
||||||
CONFIG_CLOCK_CONTROL=y
|
CONFIG_CLOCK_CONTROL=y
|
||||||
|
|
||||||
CONFIG_ZMK_USB=y
|
CONFIG_ZMK_USB=y
|
||||||
|
|||||||
Reference in New Issue
Block a user