- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Currently Cy_SCB_UART_PutArrayBlocking takes a "void * buffer" to point to the data to output. Is it possible that it will write through this pointer? I would like to use a dynamically chosen pointer to constant data. Presently I get a warning from GCC when doing that, "passing 'const char *' to parameter of type 'void *' discards qualifiers" the qualifier being "const".
Solved! Go to Solution.
- Tags:
- const
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks it's fine to pass a constant data to type 'void *'. Any issue to do this on your side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It looks it's fine to pass a constant data to type 'void *'. Any issue to do this on your side?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It appears to work in my code, but I'm getting a compiler warnings each time, which is drowning out other compiler warnings. It'd be nice if Cypress could add a 'const' to that declaration in the next release of the PDL. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
We will report this issue to the development team.