Part Number: TMS320F28377D-EP
hello
I have a question about using the can example code.
* F2837xD_common \ driverlib \ can.c
- TI Release: F2837xD Support Library v210
- Release Date: Tue Nov 1 14:46:15 CDT 2016
In can.c, the while conditional statement is written as an infinite loop as shown below.
Here, I wonder if it is impossible to escape if the while conditional escape condition is not satisfied.
For example, I wonder if there are other conditions such as the condition that you can get out of the while door after a certain period of time.
--------------- while ---------------------------------------------------------------------
// Wait for busy bit to clear
while(HWREGH(ui32Base + CAN_O_IF1CMD) & CAN_IF1CMD_BUSY)
{
}
// Wait for busy bit to clear
while(HWREGH(ui32Base + CAN_O_IF1CMD) & CAN_IF1CMD_BUSY)
{
}
// Wait for busy bit to clear
while(HWREGH(ui32Base + CAN_O_IF2CMD) & CAN_IF2CMD_BUSY)
{
}
// Wait for busy bit to clear.
while(HWREGH(ui32Base + CAN_O_IF1CMD) & CAN_IF1CMD_BUSY)
{
}
etc....
* Please understand that I used a translator.