Switches notifier to use a typedef for the callback, and prepends HAL_ to InterruptHandlerFunction (#216)

This commit is contained in:
Thad House
2016-09-05 07:31:51 -07:00
committed by Peter Johnson
parent 028efff50d
commit 59ec54887d
6 changed files with 16 additions and 13 deletions

View File

@@ -22,7 +22,7 @@ InterruptableSensorBase::InterruptableSensorBase() {}
* thread. The default is interrupt on rising edges only.
*/
void InterruptableSensorBase::RequestInterrupts(
InterruptHandlerFunction handler, void* param) {
HAL_InterruptHandlerFunction handler, void* param) {
if (StatusIsFatal()) return;
wpi_assert(m_interrupt == HAL_kInvalidHandle);