2021-09-30 22:30:54 +08:00
|
|
|
from numpy import int32, int64
|
|
|
|
|
2021-10-02 23:40:06 +08:00
|
|
|
from language import *
|
2021-09-30 22:30:54 +08:00
|
|
|
|
|
|
|
|
2021-10-02 23:40:06 +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")
|