Reorganize and extend Kinetis hardware access macros
This adds support for the K22 MCUs on fet12v2. It also adds support for
some additional pieces of hardware the code will use. It also makes the
new (hermetic) compiler happy with all of it.
Change-Id: I4b9b26d71fd57d11e16737ef7a6480643dbd0ca5
diff --git a/motors/peripheral/adc.h b/motors/peripheral/adc.h
index 9ca5506..c22a856 100644
--- a/motors/peripheral/adc.h
+++ b/motors/peripheral/adc.h
@@ -8,7 +8,12 @@
namespace frc971 {
namespace motors {
-void AdcInitCommon();
+enum class AdcChannels {
+ kA,
+ kB,
+};
+void AdcInitCommon(AdcChannels adc0_channels = AdcChannels::kB,
+ AdcChannels adc1_channels = AdcChannels::kB);
} // namespace motors
} // namespace frc971