C_base

深入解析TAILQ队列

STAILQ_INSERT_TAIL

git 问题之解决
https://blog.youkuaiyun.com/wwq444968579/article/details/40112657


#ifndef的用法
https://blog.youkuaiyun.com/mad1989/article/details/7920173?utm_source=blogxgwz9

extern与头文件(*.h)的区别和联系
https://blog.youkuaiyun.com/yuyantai1234/article/details/7245412

//TailQueue-Api 官方详解;
https://www.freebsd.org/cgi/man.cgi?query=STAILQ_ENTRY
http://www.manpagez.com/man/3/STAILQ_FOREACH_SAFE/


TailQueue详解
https://blog.youkuaiyun.com/jiayp004/article/details/13023027


深入理解TAILQ队列
https://blog.youkuaiyun.com/shenwansangz/article/details/45720023


Linux queue.h之TAILQ队列分析
https://bachmozart.iteye.com/blog/292836/


Memcached源码分析(线程模型)
https://bachmozart.iteye.com/blog/344172

上述代码的地址不对,帮我修改一下,我给出以下地址: /*本文件用于添加寄存器地址及结构体定义*/ /*片上外设基地址 */ #define PERIPH_BASE ((unsigned int)0x40000000) /*APB2 总线基地址 */ #define APB2PERIPH_BASE (PERIPH_BASE + 0x10000) /* AHB总线基地址 */ #define AHBPERIPH_BASE (PERIPH_BASE + 0x20000) /*GPIOB外设基地址*/ #define GPIOB_BASE (APB2PERIPH_BASE + 0x0C00) /* GPIOB寄存器地址,强制转换成指针 */ #define GPIOB_CRL *(unsigned int*)(GPIOB_BASE+0x00) #define GPIOB_CRH *(unsigned int*)(GPIOB_BASE+0x04) #define GPIOB_IDR *(unsigned int*)(GPIOB_BASE+0x08) #define GPIOB_ODR *(unsigned int*)(GPIOB_BASE+0x0C) #define GPIOB_BSRR *(unsigned int*)(GPIOB_BASE+0x10) #define GPIOB_BRR *(unsigned int*)(GPIOB_BASE+0x14) #define GPIOB_LCKR *(unsigned int*)(GPIOB_BASE+0x18) /*GPIOA外设基地址*/ #define GPIOA_BASE (APB2PERIPH_BASE + 0x0800) /* GPIOA寄存器地址,强制转换成指针 */ #define GPIOA_CRL *(unsigned int*)(GPIOB_BASE+0x00) #define GPIOA_CRH *(unsigned int*)(GPIOB_BASE+0x04) #define GPIOA_IDR *(unsigned int*)(GPIOB_BASE+0x08) #define GPIOA_ODR *(unsigned int*)(GPIOB_BASE+0x0C) #define GPIOA_BSRR *(unsigned int*)(GPIOB_BASE+0x10) #define GPIOA_BRR *(unsigned int*)(GPIOB_BASE+0x14) #define GPIOA_LCKR *(unsigned int*)(GPIOB_BASE+0x18) /*RCC外设基地址*/ /*GPIOC外设基地址*/ #define GPIOC_BASE (APB2PERIPH_BASE + 0x1000) /* GPIOC寄存器地址,强制转换成指针 */ #define GPIOC_CRL *(unsigned int*)(GPIOB_BASE+0x00) #define GPIOC_CRH *(unsigned int*)(GPIOB_BASE+0x04) #define GPIOC_IDR *(unsigned int*)(GPIOB_BASE+0x08) #define GPIOC_ODR *(unsigned int*)(GPIOB_BASE+0x0C) #define GPIOC_BSRR *(unsigned int*)(GPIOB_BASE+0x10) #define GPIOC_BRR *(unsigned int*)(GPIOB_BASE+0x14) #define GPIOC_LCKR *(unsigned int*)(GPIOB_BASE+0x18) #define RCC_BASE (AHBPERIPH_BASE + 0x1000) /*RCC的AHB1时钟使能寄存器地址,强制转换成指针*/ #define RCC_APB2ENR *(unsigned int*)(RCC_BASE+0x18)
最新发布
03-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值