33 lines
596 B
Python
Raw Normal View History

2022-04-21 12:37:23 +08:00
from PikaStdLib import MemChecker as MC
2022-04-23 00:03:20 +08:00
import PikaStdLib
2022-04-21 12:37:23 +08:00
from PikaObj import *
2021-12-13 21:24:48 +08:00
import PikaStdData
2022-01-24 19:08:33 +08:00
import GTestTask
2021-10-11 19:43:21 +08:00
import PikaMath
2022-04-07 09:19:14 +08:00
import PikaStdDevice
2022-01-28 00:43:09 +08:00
import PikaDebug
2022-04-16 00:02:41 +08:00
import ctypes
2022-04-07 23:06:04 +08:00
import PikaStdData
2022-01-24 19:08:33 +08:00
2022-04-23 00:03:20 +08:00
mem = PikaStdLib.MemChecker()
def dcrf32_test():
rlen = ctypes.c_uint(0)
rcvbuf = ctypes.c_wchar_p('')
hdl = ctypes.Test()
i = 0
sendbuf = b'\x00\x84\x00\x00\x08'
while i < 50 :
hdl.dc_cpuapdu_hex(5, sendbuf, rlen, rcvbuf)
# hdl.print_rcv(rcvbuf)
# rlen.value
i += 1
mem.max()
dcrf32_test()
print('mem use max:')
2022-04-21 12:37:23 +08:00
mem.max()