guoweilkd
guoweilkd
在调试过程中,很多时候会遇到打印一个数组的每个元素。比如串口调试时,可能会打印接收或者发送数组中的每个数据。 我现在的做法是: ` for(uint16_t i = 0; i < len; i++){ elog_raw("%02X ",pbuff[i]); } elog_raw("\r\n"); ` 但这样会造成打印繁琐问题,而且在关闭打印之后,for循环会空跑一圈,造成时间浪费。 我现在的想法是: ` void elog_buff(char *type,char *pbuff,uint8_t len) { //在这儿添加相关屏蔽操作 for(uint16_t i = 0;...
```c struct kv_hdr_data { uint8_t status_table[KV_STATUS_TABLE_SIZE]; /**< KV node status, @see fdb_kv_status_t */ uint32_t magic; /**< magic word(`K`, `V`, `4`, `0`) */ uint32_t len; /**< KV node total length (header...
KernelAddressSANitizer (KASAN) is a dynamic memory error detector. It provides a fast and comprehensive solution for finding use-after-free and out-of-bounds bugs. see link: https://www.kernel.org/doc/html/latest/dev-tools/kasan.html rtt这边是否有支持这个特性的计划?目前nuttx 中支持这个特性,供参考。
When I create a drawio that contains Chinese, close it and reopen it, the Chinese becomes garbled. How to support Chinese display, what configuration do I need to do. thanks.
目前的TSDB提供了一些迭代器函数如`fdb_tsl_iter/reverse()`,通过它们虽然可以实现遍历,读取等很多功能。但是在回调中处理tsl,很难满足很多应用的使用,比如这个例子: tsdb中有100个数据,需要通过网络进行上送到服务器 1. 用户在回调函数读取最老的tsl,进行联网上送,上送成功后,标记此tsl 2. 用户在回调函数读取下一个tsl,进行联网上送,上送成功后,标记此tsl 3. 循环上面的步骤 上述例子中,用户必须在回调函数中一气呵成,否则: 1. 每次读取时都要遍历数据库,这样效率会变的很差 2. 回调函数是在互斥锁中的,太多的应用代码逻辑会影响异步append 3. 回调函数会打断用户的正常使用流程,没有kv那样直接读取方便 总之,如果在数据库中的某个中间点上进行顺序的向下读取,使用上述函数就会变的很困难且低效。 因此,我们是否可以增加一些更便利的迭代器函数,使其实现如下功能: 1. tsl = fdb_tsl_next_find(db, cur_tsl):根据当前的tsl来读取下一个tsl 2. tsl = fdb_tsl_prev_find(db, cur_tsl):根据当前的tsl来读取下一个tsl 这样就可以完美的解决如下功能。 但因为追加可能是异步的,上面的函数可能会有面临如下一些问题: 1....
Operation steps: 1. run umtprd-ffs.sh 2. Wait for Explorer to pop up in Windows 10 3. copy file from board to win10 4. Click Cancel to close the copy dialog...
I'm more concerned about running on the MCU,do you have the performance test data on STM32 or other MCU?