Display and FreeRTOS fixes
- Rename FreeRTOS port handler functions.
- Add missing screen width and height members to display driver config.
Change-Id: Id715044a6792642d4287e7bdaf3866414892f81f
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/kudzu/+/219421
Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com>
Commit-Queue: Anthony DiGirolamo <tonymd@google.com>
Reviewed-by: Armando Montanez <amontanez@google.com>
Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com>
diff --git a/applications/app_common_impl/common_pico.cc b/applications/app_common_impl/common_pico.cc
index 9e8fc04..e375e0a 100644
--- a/applications/app_common_impl/common_pico.cc
+++ b/applications/app_common_impl/common_pico.cc
@@ -188,6 +188,8 @@
#endif
.spi_device_8_bit = s_spi_8_bit.device,
.spi_device_16_bit = s_spi_16_bit.device,
+ .screen_width = DISPLAY_WIDTH,
+ .screen_height = DISPLAY_HEIGHT,
#if USE_PIO
.pixel_pusher = &s_pixel_pusher,
#endif
diff --git a/targets/rp2040/config/FreeRTOSConfig.h b/targets/rp2040/config/FreeRTOSConfig.h
index 937dc3e..9eea6d1 100644
--- a/targets/rp2040/config/FreeRTOSConfig.h
+++ b/targets/rp2040/config/FreeRTOSConfig.h
@@ -18,9 +18,9 @@
// Disable formatting to make it easier to compare with other config files.
// clang-format off
-#define vPortSVCHandler isr_svcall
-#define xPortPendSVHandler isr_pendsv
-#define xPortSysTickHandler isr_systick
+#define vPortSVCHandler SVC_Handler
+#define xPortPendSVHandler PendSV_Handler
+#define xPortSysTickHandler SysTick_Handler
#define configUSE_PREEMPTION 1
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 0