MCPcopy Create free account
hub / github.com/Santroller/Santroller / begin

Method begin

lib/psx_controller/psx_controller.cpp:115–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113 controller = this;
114}
115void PSXController::begin() {
116 gpio_set_irq_enabled_with_callback(m_ackPin, GPIO_IRQ_EDGE_RISE, true, &attentionInterrupt);
117 autoShiftData(commandPollInput, sizeof(commandPollInput));
118}
119void PSXController::end() {
120 gpio_set_irq_enabled(m_ackPin, GPIO_IRQ_EDGE_RISE, false);
121 cancel_alarm(timeout_alarm_id);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected