coredevice: define ValueError locally

work around M-Labs/nac3#189
This commit is contained in:
Sebastien Bourdeauducq 2022-02-13 12:50:22 +08:00
parent e8e1ccd4f1
commit 207ff918c7
6 changed files with 38 additions and 0 deletions

View File

@ -17,6 +17,12 @@ from artiq.coredevice.ttl import TTLOut
from artiq.coredevice.spi2 import *
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
SPI_AD53XX_CONFIG = (0*SPI_OFFLINE | 1*SPI_END |
0*SPI_INPUT | 0*SPI_CS_POLARITY |
0*SPI_CLK_POLARITY | 1*SPI_CLK_PHASE |

View File

@ -10,6 +10,12 @@ from artiq.coredevice.urukul import *
from artiq.coredevice.ttl import TTLOut
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
@nac3
class AD9912:
"""

View File

@ -20,6 +20,12 @@ from artiq.coredevice.spi2 import *
from artiq.coredevice.adf5356_reg import *
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
SPI_CONFIG = (
0 * SPI_OFFLINE

View File

@ -10,6 +10,12 @@ from artiq.coredevice.core import Core
from artiq.coredevice.spi2 import *
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
SPI_CONFIG = (
0 * SPI_OFFLINE
| 0 * SPI_END

View File

@ -14,6 +14,13 @@ from artiq.coredevice.core import Core
from artiq.coredevice.rtio import rtio_output, rtio_input_data
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
__all__ = [
"SPI_DATA_ADDR", "SPI_CONFIG_ADDR",
"SPI_OFFLINE", "SPI_END", "SPI_INPUT",

View File

@ -8,6 +8,13 @@ from artiq.coredevice.spi2 import *
from artiq.coredevice.ttl import TTLOut
# NAC3TODO work around https://git.m-labs.hk/M-Labs/nac3/issues/189
@nac3
class ValueError(Exception):
pass
SPI_CONFIG = (0 * SPI_OFFLINE | 0 * SPI_END |
0 * SPI_INPUT | 1 * SPI_CS_POLARITY |
0 * SPI_CLK_POLARITY | 0 * SPI_CLK_PHASE |