Commit Graph

11046 Commits

Author SHA1 Message Date
Bernard Xiong ff9ef1a527
Merge pull request #4331 from mysterywolf/syscall
[libc][newlib]remove _gettimeofday_r() and _times_r()
2021-02-11 22:37:26 +08:00
supperthomas c91971821e add the gcc complier 2021-02-11 20:50:05 +08:00
Meco Man ce4fabe158 add errno 2021-02-11 20:48:30 +08:00
Meco Man dbe1a9c2dc 移除无用的代码 2021-02-11 16:29:14 +08:00
supperthomas 153b03f310 [bsp/max32660] add the keil project 2021-02-11 16:18:33 +08:00
Meco Man dd147925e5 fix time() return value 2021-02-11 13:41:24 +08:00
supperthomas 864d1dd703 fix the project 2021-02-11 10:57:00 +08:00
supperthomas abcac46fcf first console project 2021-02-11 04:51:35 +08:00
Meco Man e904f9bf27 update common 2021-02-11 03:03:59 +08:00
Meco Man b4c8cb1445 remove declare 2021-02-11 03:02:32 +08:00
Meco Man a400991ee9 remove _gettimeofday_r() and _times_r() 2021-02-11 02:58:19 +08:00
Meco Man e3fee1ca77 2 spaces -> 4 spaces 2021-02-11 02:46:23 +08:00
Meco Man d67d4d3fd0 add difftime() 2021-02-11 02:34:38 +08:00
Meco Man 51cb109cf8 fix bug #3183 - align days[] and months[] to 4 bytes 2021-02-11 02:33:45 +08:00
Meco Man 5e5ceabfdc add ctime_r() and re-implement ctime() 2021-02-11 02:32:47 +08:00
Meco Man 072dbe57c6 format & add clear tm_isdst 2021-02-11 02:31:53 +08:00
Meco Man 66e2a9424b update 2021-02-10 21:01:16 +08:00
liruncong 6df5634b52 [bsp]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:56 +08:00
liruncong 0208fc5546 [components]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:46 +08:00
liruncong 12d5ca60c5 [libcpu/arm]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:34 +08:00
liruncong f5ede64c83 [include]SECTION=>RT_SECTION(与catch2中SECTION冲突) 2021-02-09 23:25:16 +08:00
sheltonyu bb28784a0c 1.add can and on-chip-flash drivers 2.fixed c++ compiler error 2021-02-09 14:28:11 +08:00
Bernard Xiong acda6bbccb
Merge pull request #4322 from DavidLin1577/patch-6
Update coding_style_cn.md
2021-02-09 09:43:07 +08:00
Bernard Xiong 09024c25f0
Merge pull request #4321 from mysterywolf/blue
[stm32][bluepill] 增加英文参考资料
2021-02-08 20:35:43 +08:00
David Lin 7b32278a39
Update coding_style_cn.md
反应->反映
2021-02-08 17:32:28 +08:00
Meco Man 10e955638d [stm32][bluepill] 增加英文参考资料 2021-02-08 15:01:13 +08:00
Bernard Xiong b7c2c85aa0
Merge pull request #4320 from DavidLin1577/patch-5
[bsp] mini optimized the drv_xpt2046.c
2021-02-08 14:39:29 +08:00
David Lin a76fde6ca4
[bsp] mini optimized the drv_xpt2046.c
error device name xpt2049 in pi4 , so  changed xpt2049 -> xpt2046.
2021-02-08 12:34:25 +08:00
David Lin 79267212ef
[bsp]Mini optimized the drv_sound.c
1.  "tx_fifo = rt_calloc(1, TX_FIFO_SIZE); "  , so deleted the line "rt_memset(tx_fifo, 0, TX_FIFO_SIZE);"
2. " rx_fifo = rt_calloc(1, TX_FIFO_SIZE); "  , so deleted the line "rt_memset(rx_fifo, 0, TX_FIFO_SIZE);"
2021-02-08 11:57:50 +08:00
Meco Man 39ff4b5a97 修改时区计算公式的错误 2021-02-08 11:37:24 +08:00
Meco Man 2645aec2e3 删除没有用的预编译,在新版的IAR中此已经不需要了
对time函数增加RT_WEAK
2021-02-08 11:30:49 +08:00
Meco Man 3e9c77efd5 优化IAR 2021-02-08 10:55:08 +08:00
Meco Man 9b428e519f avoid warning 2021-02-08 10:42:50 +08:00
Meco Man d0c2631b12 revert time() 2021-02-08 10:33:12 +08:00
David Lin 82586c5e02
mini optimize the i2c.c 2021-02-08 10:12:57 +08:00
Bernard Xiong 21ebf93e20
Merge pull request #4270 from greedyhao/stm32-pwm-fix
[bsp][stm32] fix PWMN_CMD_DISABLE config
2021-02-08 09:53:01 +08:00
Bernard Xiong 9345ebfa12
Merge pull request #4310 from mysterywolf/pin
[bug][pin] 修复错误码没有为负的错误
2021-02-08 09:09:05 +08:00
Meco Man 6c7dd30532 add function settimeofday & stime 2021-02-08 00:56:31 +08:00
Meco Man 4c6962436a update 2021-02-07 22:33:37 +08:00
Meco Man d92f8a53da update 2021-02-07 22:25:30 +08:00
Meco Man 0d30632de6 fix #3976 2021-02-07 22:09:22 +08:00
Meco Man 86ebf17a23 localtim改为gmtime 2021-02-07 21:49:25 +08:00
Meco Man 64bd41d654 update 2021-02-07 21:17:27 +08:00
Meco Man f073911cd3 解决底层驱动格林威治时间与当地时间胡乱使用的问题 mktime函数改为timegm函数 2021-02-07 21:08:41 +08:00
Bernard Xiong 4c240b6c1b
Merge pull request #4313 from balanceTWK/TASKING
[toolchain] Added support for the TASKING toolchain.
2021-02-07 13:56:03 +08:00
tangweikang b1cdc3a2cb [toolchain] Added support for the TASKING toolchain. 2021-02-07 12:06:02 +08:00
tangyuxin 83692a54c4 【workqueue】添加函数声明
rt_err_t rt_workqueue_cancel_all_work(struct rt_workqueue *queue);
2021-02-07 11:14:59 +08:00
tangyuxin a96156faf1 [workqueue] 提交正在执行的工作,返回 BUSY 2021-02-07 10:30:25 +08:00
tangyuxin 83dca09e1c [workqueue] 修复提交工作后立即取消,获取无效工作任务的问题
当高优先级任务提交工作后,立即取消。此时队列被唤醒,下面紧接着获取链表中第一个任务。但此时已经是空链表了。

每次线程被唤醒。检查当前任务链表是否未空
2021-02-06 21:54:25 +08:00
tangyuxin 7eabe5c9e9 [workqueue] 取消正在执行的工作返回BUSY 2021-02-06 20:39:52 +08:00