Commit Graph

303 Commits

Author SHA1 Message Date
daishengdong
febcf10911 add kv fs component
1. a true wear-leveling kv fs for norflash, especially optimize for some onchip norflash with "write once on one single write unit" like stm32l4, a true "no earse before write" flash algorithm.
2. an "as less as possible" gc strategy, do best to save norflash's life.
3. full "power down protection" support
4. see "examples" of kv, project in "TencentOS_tiny_EVB_MX_Plus", with onchip flash and qspiflash sample.
2019-12-19 16:08:42 +08:00
supowang
e1c19fd194 add lora lowpower at command support
add lora lowpower at command support
2019-12-18 13:01:35 +08:00
royye
539dc6a152 add end-to-end example sensor_e53_ia1_e2e_demo 2019-12-17 19:53:58 +08:00
supowang
d0f61b43a5 add GD32V TencentOS tiny EVB_LX board
add GD32V TencentOS tiny EVB_LX board
2019-12-16 11:32:03 +08:00
daishengdong
b2983383bb add nimble mesh example
need meshctl installed on raspberrypi. nimble offical samples have a lot of pit ...
2019-11-28 11:12:16 +08:00
daishengdong
96cf620708 a bugfix for mail queue and printf clipping switch
1. add TOS_CFG_LIBC_PRINTF_EN
1: enable printf to implement tos_kprintf
when you call tos_kprintf(actually currently it's a MACRO rather than a function) , the libc will be invloved into the image, most of the time it means a larger image size.

0: disable printf, means tos_kprintf is defined as an empty MACRO
most of the time, means you will not get a log output from the uart(currently we donnot have a console yet) but a smaller image size.

2. fix a bug of tos_mail_q and tos_priority_mail_q
if we are post-ing a mail and there is[are] task[s] just pend-ing for the mail queue, the mail delivered to the pend-er will be a pointer, and probably it's a pointer to the local variable on the stack. Actually we should do a memcpy rather than a pointer assignment. for more details, see the patch.
2019-11-25 21:04:37 +08:00
Supowang1989
7b7c806f2a Merge pull request #64 from acevest/master
fix character encoding
2019-11-22 10:25:58 +08:00
Forest-Rain
9b78dc5461 Merge remote-tracking branch 'TOS/master'
port to msp430fr
2019-11-19 00:23:07 +08:00
bourne-h
c985305927 TencentOS tiny port to MSP430FR6972 2019-11-18 19:43:41 +08:00
Supowang1989
16f14112ed Merge pull request #61 from oxlm/master
[Config] Add Board NUCLEO_STM32G071RB
2019-11-18 10:10:08 +08:00
oxlm
9937b7db01 [Config] Add Board NUCLEO_STM32G071RB
[What]
[Why]
[How]
2019-11-17 23:48:54 +08:00
daishengdong
76990b496b Merge branch 'master' of https://github.com/Tencent/TencentOS-tiny 2019-11-15 15:37:13 +08:00
daishengdong
bae04c6774 add nimble uart
download "nimble connect" on your phone, connect to "Nimble Uart", send byte array or uint8 to the board through the app
2019-11-15 15:37:06 +08:00
supowang
1fd250764d add nb-iot demo for huawei ocean_connect
add nb-iot demo for huawei ocean_connect
2019-11-15 11:46:59 +08:00
daishengdong
943db74fc7 merge new qcloud sdk
1. qcloud has a great revolution, the protocol has been changed to implement data template, so the old TencentCloud_SDK developed by us will not work fine now(mqtt still works, but data template will not works fine for recently created product/devices).

2. I merge the official qlcoud sdk(include both the iot-hub and iot-explorer sdk) into the componet/conectivity to support new protocol of data template

3. iot-hub sdk, supply the fundamental iot protocol(like mqtt coap, etc.)
iot-explorer sdk, supply the high level service like data template based on mqtt

4. To know how it works, see qcloud_iot_explorer_sdk_data_template、qcloud_iot_hub_sdk_mqtt example(keil project in board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_explorer_sdk_data_template and  board\TencentOS_tiny_EVB_MX_Plus\KEIL\qcloud_iot_hub_sdk_mqtt)
2019-11-14 15:09:00 +08:00
supowang
5d86548c23 add LTE dtu sim7600ce 4G module tcp test 2019-11-13 16:17:21 +08:00
daishengdong
0700d27b70 add more nimble example
1. make heart rate sensor example really work
using nRF Toolbox HRM
2. add master device scan example
3. add gatt server example(seems not working)
2019-11-12 19:56:52 +08:00
mybays
8c706242d5 tos config 2019-11-08 16:51:44 +08:00
mybays
6df0dcd195 add NUCLEO_STM32L452RE support 2019-11-08 16:40:48 +08:00
mybays
67ce1afba2 Merge pull request #2 from Tencent/master
merge to trunk
2019-11-08 16:24:38 +08:00
supowang
a6c9c76556 fix EVB_MX_Plus gcc makefile bug 2019-11-07 19:03:24 +08:00
acevest
b49d6d8862 fix character encoding 2019-11-07 13:27:28 +08:00
supowang
6341168f8e add GD32450i-EVAL board support 2019-11-06 17:01:50 +08:00
supowang
d5e0cc08b2 add gd32E103 eval board support 2019-11-04 19:28:37 +08:00
supowang
7a438511ad add gd32F130 & F303 support 2019-10-31 19:59:28 +08:00
dcxajichu
8c24d921b0 support aliyun sdk on TencentOS tiny
sample: examples\aliyun_iotkit_csdk_mqtt
project: board\TencentOS_tiny_EVB_MX_Plus\KEIL\aliyun_iotkit_csdk_mqtt
2019-10-31 16:36:28 +08:00
Supowang1989
f63d2d4e48 Merge pull request #56 from thelittlehan/master
linux port更新
2019-10-30 19:16:36 +08:00
supowang
ca994901db add GD32E230C_START support 2019-10-30 17:44:37 +08:00
Chen Han
2472c4868c use signal replace poll 2019-10-30 16:40:42 +08:00
Supowang1989
4080ef371c Merge pull request #55 from thelittlehan/master
添加linux下mqtt运行demo
2019-10-30 12:19:16 +08:00
daishengdong
c411ed1eec add a set of dyn(create / destroy) interface
1. tos_ring_q_create_dyn
2. tos_chr_fifo_create_dyn
3. tos_msg_q_create_dyn
4. tos_mail_q_create_dyn
5. tos_bin_heap_create_dyn
6. tos_prio_q_create_dyn
7. tos_prio_msg_q_create_dyn
8. tos_prio_mail_q_create_dyn
2019-10-29 16:57:43 +08:00
Chen Han
2264a028ac add readme step 2019-10-29 15:45:21 +08:00
Chen Han
ce71db8801 to focus mqtt_config.h 2019-10-29 15:44:59 +08:00
Chen Han
70ff2dad56 add mqtt demo 2019-10-29 15:12:36 +08:00
supowang
23e852a41a fix iar compile error for kernel change 2019-10-28 17:36:42 +08:00
supowang
e53c032689 fix board compile for kernel change 2019-10-28 17:25:09 +08:00
daishengdong
bd613af56e fix board keil compile 2019-10-28 17:20:08 +08:00
daishengdong
7e11e4f009 fix apollo stm32f767 keil compile 2019-10-28 16:07:56 +08:00
daishengdong
d0b8d0675e add ring queue/message queue/mail queue, binary heap/priority queue/priority message queue/priority mail queue
1. remove the old msg queue and queue:
i. msg queue is not a common and reusable/flexible component(need user to config the msg pool size and this componet can only be used by tos_queue)
ii. tos_queue can only deliver the pointer message(cannot do a memory buffer deliver)

2. add ring queue(tos_ring_q) componet
rinq queue can be reused by tos_chr_fifi/tos_msg_q/tos_mail_q as the foundational data container

3. add message queue(tos_msg_q)
a little like the old queue mechanism, supply the capability to deliver a pointer message

4. add mail queue(tos_mail_q)
supply the capability to deliver a memory buffer

5. add binary heap(tos_bin_heap)
the basement componet to implement priority queue

6. add priority queue(tos_prio_q)
can be reused by the priority message/mail queue  as the foundational data container.

7. add priority message queue(tos_prio_msg_q)
a message(pointer) deliver mechanism, supply the capability of delivering the message with priority(message with higher priority comes faster to the pender than with lower)

8. add priority mail queue(tos_prio_mail_q)
a mail(memory buffer) deliver mechanism, supply the capability of delivering the mail with priority(mail with higher priority comes faster to the pender than with lower)
2019-10-28 15:50:46 +08:00
supowang
f35b725a59 rollback some project 2019-10-28 11:16:18 +08:00
Supowang1989
080f2e468b Merge pull request #52 from animala/master
移植M23,谢谢
2019-10-28 11:08:59 +08:00
mybays
da935aa5a3 Merge pull request #1 from Tencent/master
update to trunk
2019-10-25 18:57:55 +08:00
Grey Huang
f092814891 return 2019-10-25 18:54:43 +08:00
Grey Huang
b76a703108 change files 2019-10-25 18:47:35 +08:00
Chen Han
d27bafc82e add transplant to linux 2019-10-25 17:27:54 +08:00
Grey Huang
112704aa8a 参加移植大赛 2019-10-25 16:24:23 +08:00
supowang
135842b966 add gd32v eval lcd display support 2019-10-24 16:07:48 +08:00
supowang
b5b55cff39 Merge branch 'master' of https://github.com/Tencent/TencentOS-tiny 2019-10-24 11:36:59 +08:00
supowang
7b9b895838 add GD32VF103C_EVAL support 2019-10-24 11:36:41 +08:00
daishengdong
06cae326a2 add API (tos_task_create_dyn & tos_task_walkthru & tos_task_curr_task_get)
tos_task_create_dyn: create task with dynamic allocated task handler and stack
tos_task_walkthru: API to walk through the statistic list of all the existing task
tos_task_curr_task_get: get current running task handler
2019-10-23 21:22:13 +08:00