66 Commits

Author SHA1 Message Date
lyon
87ace89752 update std, add SOFT_SPI 2022-12-27 18:53:26 +08:00
lyon
7d79a22271 fix std and mqtt 2022-12-27 16:07:22 +08:00
lyon
83680dce51 Merge branch 'master' into mqttdev 2022-12-27 16:04:29 +08:00
lyon
61a3707705 add std_common 2022-12-24 14:54:46 +08:00
lyon
72fb6bd5ed update port std 2022-12-23 20:30:56 +08:00
lyon
256319e035 update port linux std
fix baseDev.addEventCallBack

use setCallBack in std

update std

support flow control for uart

add flowcontrol API for std.uart
2022-12-23 18:43:08 +08:00
lyon
64091bcd55 fix platform_getTick, fix socket LWIP gethostname 2022-12-23 17:58:12 +08:00
lyon
2bf121afcb use EVENT_SIGNAL on event_callback 2022-12-22 14:54:51 +08:00
lyon
f400b027d9 add HAL_EVENT_CALLBACK_ENA config 2022-12-22 14:23:21 +08:00
lyon
fce67d309d use WEAK for std.time 2022-12-20 22:44:39 +08:00
lyon
fd6d39143c support uart for std by pika_hal 2022-12-19 16:56:53 +08:00
lyon
140e8e19c8 save cb to a new object 2022-12-18 19:22:43 +08:00
lyon
765d32483f add __platform_panic_hanlde 2022-12-17 16:02:59 +08:00
lyon
cfef8564f5 fix stddevice 2022-12-07 19:25:28 +08:00
pikastech
7b95d1c20f fix va_start err on ac5 2022-11-23 19:07:08 +08:00
lyon
4c69dd29cc use 2M default spi speed 2022-11-21 22:23:40 +08:00
lyon
f695d8c0c4 typo 2022-11-21 22:12:28 +08:00
lyon
c0a57aa6d1 fix name 2022-11-21 22:10:52 +08:00
lyon
89e00e2043 rm _MAX enum
support default config and merge unused config
2022-11-21 22:09:22 +08:00
lyon
7e3c43dfa9 cancel _MAX for numed enum 2022-11-21 19:07:31 +08:00
lyon
33501dbb33 move api to top of file 2022-11-21 18:28:10 +08:00
lyon
c9b9fc2d4a complate config for HAL
more event_callback and more HAL config
2022-11-21 18:27:27 +08:00
lyon
e288c40a2c fix pika_hal enum 2022-11-21 17:04:23 +08:00
lyon
2344903b89 update PikaStdDevice to port/linux
use unused as defult enum
2022-11-21 17:02:18 +08:00
lyon
2ad9caacc9 add test for hal, use table_map for hal 2022-11-20 23:55:03 +08:00
pikastech
fa374c72da adding pika_hal 2022-11-20 22:16:41 +08:00
lyon
ed060f0c24 use u32 size value inner *.py.o 2022-10-23 18:57:00 +08:00
pikastech
d63d50a322 use pika_float to support switch for float/double
update pre-comp

update pre-win
2022-09-28 11:54:10 +08:00
pikastech
12bb6bf4a9 add check version MACRO 2022-08-27 14:55:08 +08:00
pikastech
f09ea25237 add version check for socket and stddevice 2022-08-26 20:05:20 +08:00
pikastech
5f75d370dd update stddevice 2022-08-26 19:41:25 +08:00
pikastech
77e291101f improve ABSTRACT_METHOD error info. 2022-08-16 11:05:19 +08:00
pikastech
878f425a5f fix sleep() in windows 2022-07-28 18:52:56 +08:00
pikastech
decc25228b support sleep in linux/windows 2022-07-28 18:23:25 +08:00
pikastech
9d087a934b fix ci error 2022-07-01 23:10:51 +08:00
pikastech
9dac9149ea fix pika_event_listener 2022-06-17 15:18:42 +08:00
pikastech
1f20472491 auto init and deinit eventLisener 2022-06-17 15:03:12 +08:00
李昂
b0840b9869 !30 add pks_eventLister and support event signal
* format
* use inner_bytecode instead of obj_run
* add asserts for event-test
* test event for PikaStdDevice is ok
* adding event fealure
* fetch PikaStdDevice_Time to port linux
2022-06-17 05:22:47 +00:00
pikastech
822fb48b11 fix __init__ report err in StdDevice.Time() 2022-06-16 00:09:41 +08:00
pikastech
5d00dcf260 add config for PikaStdDevice_Time 2022-06-15 23:59:32 +08:00
李昂
5148412411 !24 support double in C Module
* Merge branch 'master' into dev
* fix float->double for bytecodegen
* update to /package
* Use double in C for float in python
2022-06-13 10:02:59 +00:00
onceday
316c29cf42 Changed in unix-time module,__init function didn't output time-struct-string. 2022-06-06 16:49:26 +08:00
OnceDay
73d8c22b0e Fixed some very serious bugs in the unix-time arithmetic ,and added unix-time transform tests from 1970 to 2070 . 2022-06-04 23:59:26 +08:00
pikastech
905c33e131 support platformGetTick for Time() 2022-06-04 16:28:36 +08:00
pikastech
9c8b08789d push PikaStdDevice to package 2022-06-04 15:33:58 +08:00
onceday
0ee437b461 stdevice::time,fixed a bug where a error deal with month calculation. 2022-06-04 14:57:42 +08:00
onceday
130deafa01 support unix-time and utc-time with gmtime,localtime,mktime,asctime,ctime,time and so on. 2022-06-04 14:30:15 +08:00
lyon
a7613dd097 fix readBytes memory error 2022-05-24 15:26:12 +08:00
lyon
d071361c74 add set/writeBytes for StdDevice, compile passed 2022-05-23 17:10:37 +08:00
lyon
f826f42295 adding writebytes and readbytes to stddevice 2022-05-23 16:54:56 +08:00