Commit 68231ed
Statuses struct: use bit fields for status bytes (speeduino#1280)
* Convert statuses::status1: to bit fields
* Convert statuses::status2: to bit fields
* Convert statuses::status3 to bit fields
* Convert statuses::status4 to bit fields
* Convert statuses::status5 to bit fields
* Convert statuses::airConStatus to bit fields
* Convert statuses::engineProtectStatus to bit fields
* Remove duplicate #defines (copy/paste error)
* Convert statuses::TS_SD_Status to bit fields
* Convert statuses::engine to bit fields
* statuses::testOutputs: to bit fields
* Fix spelling error
* Remove type punning from statuses - instead, build the I/O status bytes on demand. This completely separates the internal state from the I/O protocol.
* Remove nChannels - never read
* MISRA fixes
---------
Co-authored-by: Josh Stewart <josh@noisymime.org>1 parent f11d2c5 commit 68231ed
File tree
32 files changed
+931
-862
lines changed- speeduino
- test
- test_fuel
- test_ign
- test_secondary
- test_sensors
32 files changed
+931
-862
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
591 | | - | |
592 | | - | |
593 | | - | |
594 | | - | |
595 | | - | |
596 | | - | |
597 | | - | |
598 | | - | |
599 | | - | |
600 | | - | |
601 | | - | |
602 | | - | |
603 | | - | |
604 | | - | |
605 | | - | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
| 594 | + | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
606 | 598 | | |
607 | 599 | | |
608 | 600 | | |
| |||
637 | 629 | | |
638 | 630 | | |
639 | 631 | | |
640 | | - | |
| 632 | + | |
641 | 633 | | |
642 | 634 | | |
643 | 635 | | |
| |||
691 | 683 | | |
692 | 684 | | |
693 | 685 | | |
694 | | - | |
| 686 | + | |
695 | 687 | | |
696 | 688 | | |
697 | 689 | | |
| |||
742 | 734 | | |
743 | 735 | | |
744 | 736 | | |
745 | | - | |
| 737 | + | |
746 | 738 | | |
747 | 739 | | |
748 | 740 | | |
| |||
758 | 750 | | |
759 | 751 | | |
760 | 752 | | |
761 | | - | |
| 753 | + | |
762 | 754 | | |
763 | 755 | | |
764 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | 25 | | |
36 | 26 | | |
37 | 27 | | |
| |||
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
0 commit comments