JianyuWang0623 commented on code in PR #18692:
URL: https://github.com/apache/nuttx/pull/18692#discussion_r3057973063


##########
arch/xtensa/src/esp32s3/esp32s3_cam.c:
##########
@@ -698,6 +718,31 @@ static int esp32s3_cam_set_buf(struct imgdata_s *data,
   return OK;
 }
 
+/****************************************************************************
+ * Name: esp32s3_cam_alloc
+ *
+ * Description:
+ *   Allocate frame buffer memory with GDMA-required alignment.
+ *   GDMA with EXT_MEMBLK_64B needs 64-byte aligned addresses
+ *   for PSRAM access.
+ *
+ ****************************************************************************/
+
+static FAR void *esp32s3_cam_alloc(struct imgdata_s *data,

Review Comment:
   @xiaoxiang781216  Acknowledged. Xtensa uses a flat memory model where all 
pointers are of equal width and can directly address the entire address space. 
The FAR macro expands to nothing, so it makes no difference whether it is added 
or not.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to