cores: arduino: zephyrSerial: Add cast to suppress warning#144
cores: arduino: zephyrSerial: Add cast to suppress warning#144DhruvaG2000 merged 1 commit intozephyrproject-rtos:nextfrom
Conversation
There was a problem hiding this comment.
Pull request overview
This PR includes multiple unrelated changes bundled together. The title suggests it only adds a cast to suppress a warning in zephyrSerial.cpp, but it also significantly modifies CMakeLists.txt files across the project to support board revision-specific overlay files and update variant directory selection logic.
Changes:
- Added explicit cast from
unsigned longtouint32_tfor baudrate in zephyrSerial.cpp - Modified root CMakeLists.txt to normalize board target names and update variant directory selection
- Added conditional logic to all sample CMakeLists.txt files to support board revision-specific overlay files
Reviewed changes
Copilot reviewed 12 out of 12 changed files in this pull request and generated 12 comments.
Show a summary per file
| File | Description |
|---|---|
| cores/arduino/zephyrSerial.cpp | Added cast to convert baud parameter from unsigned long to uint32_t |
| CMakeLists.txt | Modified variant directory selection logic and added string replacement for NORMALIZED_BOARD_TARGET |
| samples/threads_arduino/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/spi_controller/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/serial_event/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/i2cdemo/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/hello_arduino/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/fade/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/button_press_led/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/blinky_arduino/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/attach_interrupt/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
| samples/analog_input/CMakeLists.txt | Added conditional logic to select board revision-specific overlay files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
c3aa1cc to
2d40131
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
2d40131 to
42c29a9
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There is no practical concern that the baud rate will exceed 32-bit size, so there is no problem with casting. Signed-off-by: TOKITA Hiroshi <tokita.hiroshi@gmail.com>
42c29a9 to
924c35b
Compare
There is no practical concern that the baud rate will exceed 32-bit size,
so there is no problem with casting.