Skip to content

Commit 062d82d

Browse files
tokangasjukkar
authored andcommitted
ext: curl: fix compilation with nRF92
Fixed compilation with nRF92. Signed-off-by: Tommi Kangas <[email protected]>
1 parent 29193d9 commit 062d82d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ext/curl/lib/url.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,11 @@
4343
#if defined(CONFIG_NRF_CURL_INTEGRATION)
4444
/* In embedded this needs to be a lot of smaller */
4545
#define UPLOADBUFFER_DEFAULT (708)
46+
#if defined(CONFIG_SOC_SERIES_NRF92X)
47+
#define UPLOADBUFFER_MAX (DT_REG_ADDR(DT_NODELABEL(cpuapp_cpucell_ipc_shm_heap)))
48+
#else
4649
#define UPLOADBUFFER_MAX (CONFIG_NRF_MODEM_LIB_SHMEM_TX_SIZE)
50+
#endif
4751
#define UPLOADBUFFER_MIN (CURL_MAX_WRITE_SIZE)
4852
#else
4953
#define UPLOADBUFFER_DEFAULT 65536

0 commit comments

Comments
 (0)