Add IO timer channel mode for RPM and also sync up rpi configuration to work with all these drivers

This commit is contained in:
Matthias Grob
2024-12-19 07:30:25 +01:00
parent b85ad98a98
commit 077ade4f8f
9 changed files with 18 additions and 7 deletions
+1 -1
View File
@@ -77,7 +77,7 @@ bool RPMCapture::init()
return false;
}
int ret = io_timer_allocate_channel(_channel, IOTimerChanMode_Other); // TODO: add IOTimerChanMode_RPM
int ret = io_timer_allocate_channel(_channel, IOTimerChanMode_RPM);
if (ret != PX4_OK) {
PX4_ERR("gpio alloc failed (%i) for RPM at channel (%d)", ret, _channel);