2024-01-23 12:16 AM - last edited on 2024-02-29 07:21 AM by Peter BENSCH
hello~
I am using the spc58ec disp chip and want to continuously send CAN messages of different cycles.
Here is the code what i wrote:
////
void send_10ms(){
uint32_t rv;
CANTxFrame msg_10ms;
msh_10ms.ID = 0x11U;
msh_10ms.DLC = 8U;
msh_10ms.data32[0] = 0x1234U;
rv = can_lld_transmit(&CAND2, 0, &msg_10ms);
osalThreadDelayMilliseconds(10);
}
// and also have a similer fcuntion which send 100ms can message
////
I want them to send in different cycles.
The above can messages can only be sent in 100ms, how should they be modified?
Thank you~