nac3/nac3embedded/demo.py

39 lines
714 B
Python
Raw Normal View History

2020-12-18 23:44:45 +08:00
from language import *
2021-09-24 11:39:26 +08:00
from numpy import int32, int64
@syscall
def rtio_init():
raise NotImplementedError("syscall not simulated")
@syscall
def rtio_get_counter() -> int64:
raise NotImplementedError("syscall not simulated")
@syscall
def rtio_output(target: int32, data: int32):
raise NotImplementedError("syscall not simulated")
@syscall
def rtio_input_timestamp(timeout_mu: int64, channel: int32) -> int64:
raise NotImplementedError("syscall not simulated")
@syscall
def rtio_input_data(channel: int32) -> int32:
raise NotImplementedError("syscall not simulated")
2020-12-18 23:44:45 +08:00
2021-09-23 19:30:03 +08:00
@kernel
2020-12-18 23:44:45 +08:00
class Demo:
@kernel
2021-09-23 19:30:03 +08:00
def run(self):
2021-09-24 11:39:26 +08:00
rtio_init()
2020-12-18 23:44:45 +08:00
if __name__ == "__main__":
Demo().run()