Commit Graph

23 Commits

Author SHA1 Message Date
daishengdong
7f4b0b2582 add fatfs through vfs for EVB plus
1. see board\TencentOS_tiny_EVB_MX_Plus\KEIL\fatfs_through_vfs
2020-06-02 21:31:11 +08:00
acevest
cf668e190f fix spike gcc compile 2020-01-16 00:41:22 +08:00
acevest
226bacd6f3 delete arch/risc-v/bumblebee/gcc/riscv_port_s.S 2020-01-10 01:09:01 +08:00
daishengdong
c9556307df add tos_slist.h, rename tos.h to tos_k.h 2020-01-03 17:25:38 +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
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
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
acevest
f41e287c2a risc-v support all irq handler 2019-10-16 18:10:03 +08:00
daishengdong
3a8b03432f add tos_mmheap_check & tos_mmheap_pool_check API and TOS_CFG_MMHEAP_DEFAULT_POOL_EN switch
tos_mmheap_check: get the information of the heap(space that is free and used)
tos_mmheap_pool_check: get the information of a pool
TOS_CFG_MMHEAP_DEFAULT_POOL_EN: enable the default pool of the heap(if user not set this, a default of 1u is set). if you wanna disable the default pool, you should call tos_mmheap_pool_add to add your own pool of the heap before tos_mmheap_alloc is called.
2019-10-14 22:09:57 +08:00
acevest
93ae1c96ca risc-v add irq stack 2019-10-08 20:42:40 +08:00
acevest
b147d060fb save 48bytes when no need to switch task in interrupt handler 2019-10-08 14:41:30 +08:00
acevest
2d419440f3 divide bumblebee and spike irq trap entry code 2019-10-08 14:41:30 +08:00
acevest
1e04f5b344 risc-v reduce use 128 bytes irq stack 2019-10-08 13:48:52 +08:00
acevest
384a4f6ef3 enable set systick priority for bumblebee 2019-09-26 22:11:24 +08:00
acevest
b1b2d1eabc organize risc-v code for spike and bumblebee 2019-09-25 21:53:27 +08:00
acevest
1747cedc61 support GD32VF103C START board 2019-09-24 10:29:31 +08:00
acevest
2d9580cf78 gd32vf103 jump to task success 2019-09-24 10:28:14 +08:00
acezhao
72b4656c2a remove some comments 2019-09-20 10:46:04 +08:00
acezhao
f3212cc924 add gcc demo 2019-09-18 12:54:03 +08:00
acezhao
262dbe0b56 move rv32i port code under gcc 2019-09-18 12:54:03 +08:00
acezhao
de43d4ef0e replace multiple instructions with macro SAVE_CONTEXT and RESTORE_CONTEXT 2019-09-18 12:53:56 +08:00
acezhao
ad72fb73d2 fix port_systick_config bug 2019-09-18 12:53:46 +08:00
acezhao
af245f2e5b port TencentOS tiny to RISC-V 2019-09-18 12:53:38 +08:00