Skip to content

Commit

Permalink
fix(boards): BDN9 rev2 tweaks.
Browse files Browse the repository at this point in the history
* Reduce RAM usage, no need for heap any more in ZMK.
* Don't attempt to enable FPU that's not present.
  • Loading branch information
petejohanson committed Jul 15, 2024
1 parent ede1cef commit 9ffc80c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
3 changes: 3 additions & 0 deletions app/boards/arm/bdn9/bdn9_rev2.dts
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,9 @@ zephyr_udc0: &usb {
status = "okay";
pinctrl-0 = <&usb_dm_pa11 &usb_dp_pa12>;
pinctrl-names = "default";

// Overridden to lower RAM usage.
num-bidir-endpoints = <4>;
};

&rtc {
Expand Down
8 changes: 1 addition & 7 deletions app/boards/arm/bdn9/bdn9_rev2_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ CONFIG_SOC_STM32F072XB=y
# 72MHz system clock
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000

# Floating Point Options
CONFIG_FPU=y

# enable GPIO
CONFIG_GPIO=y

Expand All @@ -17,10 +14,7 @@ CONFIG_PINCTRL=y
# Poll to avoid interrupt overlap issues
CONFIG_ZMK_KSCAN_DIRECT_POLLING=y

# Needed to reduce this to size that will fit on F072
CONFIG_HEAP_MEM_POOL_SIZE=1024

# clock configuration
CONFIG_CLOCK_CONTROL=y

CONFIG_ZMK_USB=y
CONFIG_ZMK_USB=y

0 comments on commit 9ffc80c

Please sign in to comment.