Skip to content

Commit

Permalink
Updates for Zephyr 3.0 upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
petejohanson committed Apr 3, 2022
1 parent 03cddaa commit b857db3
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
9 changes: 0 additions & 9 deletions boards/arm/zaphod/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,3 @@
set_property(GLOBAL APPEND PROPERTY extra_post_build_commands
COMMAND ${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/../tools/uf2/utils/uf2conv.py
-c
-b 0x1000
-f 0xADA52840
-o ${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.uf2
${PROJECT_BINARY_DIR}/${CONFIG_KERNEL_BIN_NAME}.bin
)

zephyr_library()
zephyr_library_include_directories(${ZEPHYR_LVGL_MODULE_DIR})
zephyr_library_include_directories(${ZEPHYR_BASE}/lib/gui/lvgl/)
Expand Down
9 changes: 8 additions & 1 deletion boards/arm/zaphod/zaphod.dts
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@
zephyr,code-partition = &code_partition;
zephyr,sram = &sram0;
zephyr,flash = &flash0;
zephyr,display = &ls0xx;
zmk,kscan = &kscan;
zmk,matrix_transform = &transform;
zephyr,console = &cdc_acm_uart;
};

leds {
Expand Down Expand Up @@ -102,7 +104,7 @@
miso-pin = <8>;
cs-gpios = <&gpio0 4 GPIO_ACTIVE_HIGH>;

ls0xx@0 {
ls0xx: ls0xx@0 {
compatible = "sharp,ls0xx";
label = "DISPLAY";
spi-max-frequency = <2000000>;
Expand All @@ -115,6 +117,11 @@

&usbd {
status = "okay";
compatible = "nordic,nrf-usbd";
cdc_acm_uart: cdc_acm_uart {
compatible = "zephyr,cdc-acm-uart";
label = "CDC_ACM_0";
};
};


Expand Down
1 change: 1 addition & 0 deletions boards/arm/zaphod/zaphod_defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ CONFIG_LVGL_CUSTOM_COLOR_TRANSP_GREEN=0x00
CONFIG_LVGL_CUSTOM_COLOR_TRANSP_BLUE=0x00

CONFIG_USE_DT_CODE_PARTITION=y
CONFIG_BUILD_OUTPUT_UF2=y

CONFIG_MPU_ALLOW_FLASH_WRITE=y
CONFIG_NVS=y
Expand Down
2 changes: 1 addition & 1 deletion boards/arm/zaphod/zaphod_status_screen.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ lv_obj_t *zmk_display_status_screen() {
lv_style_set_text_line_space(&global_style, LV_STATE_DEFAULT, 1);

screen = lv_obj_create(NULL, NULL);
lv_obj_add_style(screen, LV_LABEL_PART_MAIN, &global_style);
lv_obj_add_style(screen, LV_OBJ_PART_MAIN, &global_style);

#if IS_ENABLED(CONFIG_ZMK_WIDGET_BATTERY_STATUS)
zmk_widget_battery_status_init(&battery_status_widget, screen);
Expand Down

0 comments on commit b857db3

Please sign in to comment.