Skip to content

Commit

Permalink
Cycle time in C_Demo ecu.c incorrect value in A2L file
Browse files Browse the repository at this point in the history
  • Loading branch information
RainerZ committed May 27, 2024
1 parent 4dc2ea5 commit a6dbc77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion C_Demo/ecu.c
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void ecuInit() {
for (unsigned int i = 0; i < 1024; i++) longArray1[i] = i;

// Create an XCP event for the cyclic task
gXcpEvent_EcuCyclic = XcpCreateEvent("ecuTask", ECU_TASK_CYCLE_TIME_US/CLOCK_TICKS_PER_US, 0, 0, 0);
gXcpEvent_EcuCyclic = XcpCreateEvent("ecuTask", ECU_TASK_CYCLE_TIME_US*1000, 0, 0, 0);
}


Expand Down
2 changes: 1 addition & 1 deletion src/xcpLite.c
Original file line number Diff line number Diff line change
Expand Up @@ -1697,7 +1697,7 @@ tXcpEvent* XcpGetEvent(uint16_t event) {
}


// Create an XCP event, <rate> in us, 0 = sporadic, <priority> 0-normal, >=1 realtime, <sampleCount> only for packed mode events only, <size> only for extended events
// Create an XCP event, <cycleTimeNs> in ns, 0 = sporadic, <priority> 0-normal, >=1 realtime, <sampleCount> only for packed mode events only, <size> only for extended events
// Returns the XCP event number for XcpEventXxx() or 0xFFFF when out of memory
uint16_t XcpCreateEvent(const char* name, uint32_t cycleTimeNs, uint8_t priority, uint16_t sampleCount, uint32_t size) {

Expand Down

0 comments on commit a6dbc77

Please sign in to comment.