forked from M-Labs/nac3
1
0
Fork 0
nac3/nac3artiq/artiq_builtins.py

33 lines
715 B
Python
Raw Normal View History

2021-09-30 22:30:54 +08:00
from numpy import int32, int64
from language import *
2021-09-30 22:30:54 +08:00
import device_db
if device_db.device_db["core"]["arguments"]["target"] == "cortexa9":
from artiq_timeline_extern import *
2021-09-30 22:30:54 +08:00
@extern
def rtio_init():
raise NotImplementedError("syscall not simulated")
@extern
def rtio_get_counter() -> int64:
raise NotImplementedError("syscall not simulated")
@extern
def rtio_output(target: int32, data: int32):
raise NotImplementedError("syscall not simulated")
@extern
def rtio_input_timestamp(timeout_mu: int64, channel: int32) -> int64:
raise NotImplementedError("syscall not simulated")
@extern
def rtio_input_data(channel: int32) -> int32:
raise NotImplementedError("syscall not simulated")