staticinlineint pistachio_reset_shift(unsignedlong id)
{ switch (id) { case PISTACHIO_RESET_I2C0: case PISTACHIO_RESET_I2C1: case PISTACHIO_RESET_I2C2: case PISTACHIO_RESET_I2C3: case PISTACHIO_RESET_I2S_IN: case PISTACHIO_RESET_PRL_OUT: case PISTACHIO_RESET_SPDIF_OUT: case PISTACHIO_RESET_SPI: case PISTACHIO_RESET_PWM_PDM: case PISTACHIO_RESET_UART0: case PISTACHIO_RESET_UART1: case PISTACHIO_RESET_QSPI: case PISTACHIO_RESET_MDC: case PISTACHIO_RESET_SDHOST: case PISTACHIO_RESET_ETHERNET: case PISTACHIO_RESET_IR: case PISTACHIO_RESET_HASH: case PISTACHIO_RESET_TIMER: return id; case PISTACHIO_RESET_I2S_OUT: case PISTACHIO_RESET_SPDIF_IN: case PISTACHIO_RESET_EVT: return id + 6; case PISTACHIO_RESET_USB_H: case PISTACHIO_RESET_USB_PR: case PISTACHIO_RESET_USB_PHY_PR: case PISTACHIO_RESET_USB_PHY_PON: return id + 7; default: return -EINVAL;
}
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.