Commit 2401f2f
committed
boards/arm/am67/t3-gem-o1: Improve timer_gettime implementation
- Add DEBUGASSERT to validate timespec parameter
- Store timer value in temporary variable for clarity
- Calculate tv_nsec and tv_sec from timer count
- Return OK instead of raw timer value for proper error handling
Signed-off-by: Nazmi Aras <nazmi.aras@t3gemstone.org>1 parent 77423f9 commit 2401f2f
1 file changed
+15
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
435 | 435 | | |
436 | 436 | | |
437 | 437 | | |
438 | | - | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
439 | 448 | | |
440 | 449 | | |
441 | 450 | | |
| |||
448 | 457 | | |
449 | 458 | | |
450 | 459 | | |
| 460 | + | |
451 | 461 | | |
452 | | - | |
| 462 | + | |
453 | 463 | | |
454 | 464 | | |
455 | 465 | | |
| |||
462 | 472 | | |
463 | 473 | | |
464 | 474 | | |
| 475 | + | |
465 | 476 | | |
466 | | - | |
| 477 | + | |
467 | 478 | | |
468 | 479 | | |
469 | 480 | | |
| |||
0 commit comments