会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
方哥的随笔
博客园
首页
新随笔
联系
订阅
管理
随笔 - 178
文章 - 0
评论 - 30
阅读 -
28万
随笔分类 -
C/C++
test_bit(置位判断函数)的几种实现方法
摘要:方法一 static inline int test_bit(int nr, const volatile void * addr) { return (1UL & (((const int *) addr)[nr >> 5] >> (nr & 31))) != 0UL; } 方法二 #includ
阅读全文
posted @
2023-01-30 11:49
闹闹爸爸
阅读(921)
评论(0)
推荐(0)
编辑
公告
昵称:
闹闹爸爸
园龄:
6年10个月
粉丝:
32
关注:
46
+加关注
<
2025年3月
>
日
一
二
三
四
五
六
23
24
25
26
27
28
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
5
搜索
常用链接
我的随笔
我的评论
我的参与
最新评论
我的标签
随笔分类
ACPI(6)
arm-linux(9)
Bluetooth(6)
C/C++(1)
Compile faults(7)
Device Tree(1)
Drivers(39)
EC(5)
Filesystem(1)
Hardware(4)
HDMI(1)
I2C/SMBus Subsystem(17)
IIO(1)
Intel(2)
JZ2440(7)
Kernel(22)
Linux(16)
mcu(2)
Mips(2)
others(6)
PCI Bus Subsystem(2)
PulseAudio(1)
Qt-Arm(1)
Serial Peripheral Interface (SPI)(4)
STM8/32(4)
tools(1)
u-boot(1)
UEFI(3)
USB(9)
Video/Audio(1)
WIFI(2)
更多
随笔档案
2025年2月(9)
2024年11月(2)
2024年10月(1)
2024年9月(6)
2024年8月(2)
2024年4月(3)
2024年3月(6)
2024年2月(3)
2024年1月(3)
2023年12月(4)
2023年11月(5)
2023年10月(3)
2023年4月(1)
2023年3月(6)
2023年2月(7)
2023年1月(4)
2022年12月(4)
2022年11月(3)
2022年7月(1)
2022年5月(1)
2022年3月(1)
2022年1月(5)
2021年12月(2)
2021年11月(3)
2021年8月(29)
2021年7月(12)
2021年6月(2)
2021年5月(2)
2021年3月(4)
2021年2月(1)
2021年1月(2)
2020年11月(2)
2020年10月(1)
2020年8月(1)
2020年7月(9)
2020年5月(5)
2020年4月(5)
2020年3月(2)
2019年11月(1)
2019年10月(2)
2019年2月(1)
2018年10月(2)
2018年9月(6)
2018年8月(4)
更多
阅读排行榜
1. aarch64-linux-gnu交叉编译Qt4.7.3(25727)
2. 通过configfs配置的Linux USB gadget(9517)
3. linux下WIFI模块使用:wpa_supplicant工具交叉编译以及配置(5907)
4. 解决:disagrees about version of symbol module_layout(5849)
5. shift count is too large(5701)
评论排行榜
1. e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid(8)
2. linux下WIFI模块使用:wpa_supplicant工具交叉编译以及配置(8)
3. 使用STM8S i2c对TPS65987寄存器进行读写(6)
4. I2C 10-bit 地址(3)
5. Failed to start discovery: org.bluez.Error.InProgress(1)
推荐排行榜
1. 树莓派CM4 wifi频繁断开连接(3)
2. 通过configfs配置的Linux USB gadget(3)
3. 在用户空间实现I2C设备驱动程序(2)
4. 交叉编译DHCP4.2.5:使得WIFI网卡动态获取IP(2)
5. STM32 i2c通讯失败复位方法(2)
最新评论
1. Re:通过configfs配置的Linux USB gadget
好文章
--博益真
2. Re:e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid
@闹闹爸爸 好的,明白了,我这边在执行一下移除命令,谢谢您...
--999zzz
3. Re:e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid
@999zzz 你那边网卡驱动应该正常加载上了吧,如果要执行“./bootutil64e -NIC 1 -defcfg”必须把网卡驱动卸载掉再执行。如果是I219网卡的话,卸载网卡驱动的命令是: rm...
--闹闹爸爸
4. Re:e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid
@闹闹爸爸 您的意思是我这边网卡驱动可能被卸载掉了吗...
--999zzz
5. Re:e1000e 0000:00:1f.6: The NVM Checksum Is Not Valid
@999zzz 卸载I219网卡驱动: rmmod e1000e 执行结果: ./bootutil64e -NIC 1 -defcfg Error: Connection to QV driver f...
--闹闹爸爸
点击右上角即可分享