coredevice/exceptions: nac3 no longer breaks because of docstrings

This commit is contained in:
Sebastien Bourdeauducq 2022-02-14 16:39:26 +08:00
parent 7b56a72da0
commit e76df491f2
1 changed files with 18 additions and 18 deletions

View File

@ -3,59 +3,59 @@ from artiq.language.core import nac3
@nac3 @nac3
class RTIOUnderflow(Exception): class RTIOUnderflow(Exception):
# NAC3TODO """Raised when the CPU or DMA core fails to submit a RTIO event early """Raised when the CPU or DMA core fails to submit a RTIO event early
# enough (with respect to the event's timestamp). enough (with respect to the event's timestamp).
# The offending event is discarded and the RTIO core keeps operating. The offending event is discarded and the RTIO core keeps operating.
# """ """
pass pass
@nac3 @nac3
class RTIOOverflow(Exception): class RTIOOverflow(Exception):
# NAC3TODO """Raised when at least one event could not be registered into the RTIO """Raised when at least one event could not be registered into the RTIO
# input FIFO because it was full (CPU not reading fast enough). input FIFO because it was full (CPU not reading fast enough).
# This does not interrupt operations further than cancelling the current This does not interrupt operations further than cancelling the current
# read attempt and discarding some events. Reading can be reattempted after read attempt and discarding some events. Reading can be reattempted after
# the exception is caught, and events will be partially retrieved. the exception is caught, and events will be partially retrieved.
# """ """
pass pass
@nac3 @nac3
class RTIODestinationUnreachable(Exception): class RTIODestinationUnreachable(Exception):
# NAC3TODO """Raised with a RTIO operation could not be completed due to a DRTIO link """Raised with a RTIO operation could not be completed due to a DRTIO link
# being down. being down.
# """ """
pass pass
@nac3 @nac3
class CacheError(Exception): class CacheError(Exception):
# NAC3TODO """Raised when putting a value into a cache row would violate memory safety.""" """Raised when putting a value into a cache row would violate memory safety."""
pass pass
@nac3 @nac3
class DMAError(Exception): class DMAError(Exception):
# NAC3TODO """Raised when performing an invalid DMA operation.""" """Raised when performing an invalid DMA operation."""
pass pass
@nac3 @nac3
class ClockFailure(Exception): class ClockFailure(Exception):
# NAC3TODO """Raised when RTIO PLL has lost lock.""" """Raised when RTIO PLL has lost lock."""
pass pass
@nac3 @nac3
class I2CError(Exception): class I2CError(Exception):
# NAC3TODO """Raised when a I2C transaction fails.""" """Raised when a I2C transaction fails."""
pass pass
@nac3 @nac3
class SPIError(Exception): class SPIError(Exception):
# NAC3TODO """Raised when a SPI transaction fails.""" """Raised when a SPI transaction fails."""
pass pass