- 博客(9)
- 资源 (5)
- 收藏
- 关注
原创 RGB555转RGB565(含详细代码)
图片RGB555格式转换为RGB565的数据:for(int i=0;i<153600;){pData2[i]=(pData[i]<<8)+pData[i+1]; //G直接补0 //pData[i] = ((pData2[i]<<1)>>8)&0xFF; //pData[i+1]=(((pData2[i]<<1)&0xDF)&0xE0) | (pData2[i]&0x1
2021-08-24 15:58:17
754
原创 MCU非唯一ID加密
以下介绍一种不增加成本,在软件方面下功夫,适用于防止其他人去读取代码,以下为具体代码:#define GD32_ID_D 352520 // 任意的一个数volatile u32 GD32_ID_addr[3]={0x1ffff7e8 - GD32_ID_D,0x1ffff7ec + GD32_ID_D,0x1ffff7f0 - GD32_ID_D};/********************************************************************函数功
2021-08-19 14:13:13
470
原创 MCU的RTC功能(32位计数器)(亲测有用,包括年月日星期时分秒)
GD32F303的RTC功能(包括闰年平年的年月日星期时分秒)(时间设置和获取正确,适用于使用32位的计数器的MCU)针对RTC的设置和获取,应该测试一些特殊值如:闰年的最后一天2020.12.31,闰年的2月28.29,平年的2月28,1月30,7月30.31,8月30.31等,如果这些日期没有问题,基本确定是没有问题的;以下为我的代码,已测试全部,没有问题,除了上面日期,还包括测试这些上面日期在(1)设置后断电后,等到下一日再上电时间;(2)设置后断电后,未到下一日的再上电时间;(3)设置后断电,等
2021-08-04 15:56:29
3641
2
原创 cannot run test program while cross compiling,已测试OK
cannot run test program while cross compilinglinux下交叉编译出现的问题:cannot run test program while cross compilinghecking “whether flock struct is linux ordered”… configure: error: in /home/xavior/xavior/apache_V2/php-20201225/php-5.5.38': configure: error: can
2020-12-30 16:17:27
1397
原创 configure: error: Don‘t know how to define struct flock on this system, set --enable-opcache=no ,已解决
configure: error: Don’t know how to define struct flock on this system, set --enable-opcache=no编译php5时,在configure出现如下现象:checking “whether flock struct is linux ordered”… configure: error: in /home/xavior/xavior/apache_V2/php-20201225/php-5.5.38': checkin
2020-12-28 15:55:34
1056
3
原创 apache2.4启动无反应
apache2.4启动无反应移植apache2.4到海思平台后,启动apache后没有反应,后台没有apache进程,应该不是配置文件的问题, 这是什么问题?/opt/apache2-hisi-xavior/apache2/bin/apachectl -k start可以查询版本:/opt/apache2-hisi-xavior/apache2/bin/apachectl -vServer version: Apache/2.4.9 (Unix)Serv
2020-12-23 11:28:00
818
1
原创 Sublime Text3注册问题
Sublime Text3注册问题(亲测有效)使用的Sublime Text3未安装Package Control。首先修改windows的hosts文件,Windows平台C:\Windows\System32\drivers\etc127.0.0.1 www.sublimetext.com127.0.0.1 sublimetext.com127.0.0.1 sublimehq.com127.0.0.1 license.sublimehq.com127.0.0.1
2020-10-31 09:59:09
1773
2
原创 移植apache
移植apache要想在arm开发板上搭建apache环境,解析php,我们需要移植apache,在linux系统上需要本机编译和交叉编译apache和php。PHP(php-5.5.38.tar.xz):CC=arm-linux-gcc ./configure --host=arm-linux --prefix=/opt/server/php5 --enable-sockets --disable-phar --with-apxs=/opt/server/apache/bin/apxs --with
2020-10-27 14:49:48
317
原创 移植Mysql到ARM平台
移植Mysql到ARM平台目前我使用的Mysql的版本为mysql-5.1.72.tar.gz,可在网上下载对应版本的mysql的压缩包。由于移植mysql库需要用到libncurses.a静态库,所以在移植mysql之前,我们需要先移植ncurses,目前我使用的ncurses库版本为ncurses-5.9.tar.gz,以下是移植ncusrse库的步骤:(1)解压库文件:tar zxvf ncurses-5.9.tar.gz -C /opt/mysql/ncurses(2)进入库文件路径,配置
2020-10-27 14:12:13
527
php-5.5.38.tar.gz
2020-10-28
apache_1.3.39.tar.gz
2020-10-27
busybox-source-linux.tar.gz
2020-10-27
文件架构和虚拟内存分布
2020-10-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人