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

Function restart_handler

lib/psx_controller/psx_controller.cpp:100–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100static int64_t restart_handler(__unused alarm_id_t id, void *user_data)
101{
102 PSXController *inst = (PSXController *)user_data;
103 inst->processData(false, true);
104 return 0;
105}
106PSXController::PSXController(uint8_t block, int8_t sck, int8_t mosi, int8_t miso, uint32_t clock, uint8_t attPin, uint8_t ackPin) : interface(block, SPI_CPHA_1, SPI_CPOL_1, sck, mosi, miso, false, clock), m_attPin(attPin), m_ackPin(ackPin)
107{
108 printf("psx controller init!\r\n");

Callers

nothing calls this directly

Calls 1

processDataMethod · 0.45

Tested by

no test coverage detected