| 98 | } |
| 99 | |
| 100 | static 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 | } |
| 106 | PSXController::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"); |
nothing calls this directly
no test coverage detected