Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

RTOS/AM5728: DCAN Loopback App: #69-D Integer Conversion Resulted In A Change Of Sign Warning

$
0
0

Part Number:AM5728

Tool/software: TI-RTOS

Hi,

My question is related to the DCAN Loopback application. I am using: DCAN_BasicExample_evmAM572x_c66xTestProject. Works fine.

My question/issue is with the following variable definition:

I am wondering why the app.c file is defining these variables as unsigned integers, when STW_EFAIL has been assigned to -1 (in csl_types.h):

As seen in the next screenshot, two of the 3 variables get reassigned to unsigned 0 anyways, so I am just trying to understand the logic behind the initial unsigned declaration of a signed value.

I can change first screenshot to simply int32_t and it gets rid of the "#69-D Integer Conversion Resulted In A Change Of Sign" warning.

However, I don't know what kind of effect that will have on the rest of the application, so please advise. 

Thank you for reading.

Regards,

Alec


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>