当前位置: 首页 > news >正文

高档网站建设整站seo排名要多少钱

高档网站建设,整站seo排名要多少钱,2345网址导航怎么删除干净?,工业设计网站设计一、寄存器结构体详解 对于STM32而言,使用一个结构体将一个外设的所有寄存器都放到一起 二、修改驱动 1、添加清除bss段代码 2、添加寄存器结构体 在寄存器结构体中添加寄存器的时候一定要注意地址的连续性,如果地址不连续的话,要添加占位…

一、寄存器结构体详解

对于STM32而言,使用一个结构体将一个外设的所有寄存器都放到一起

二、修改驱动

1、添加清除bss段代码

2、添加寄存器结构体

在寄存器结构体中添加寄存器的时候一定要注意地址的连续性,如果地址不连续的话,要添加占位,数组

#define CCM_BASE        (0x020c4000) /*CCM外设基地址*/

/*CCM外设*/
typedef struct 
{
    volatile unsigned int CCR;
    volatile unsigned int CCDR;
    volatile unsigned int CSR;
    volatile unsigned int CCSR;
    volatile unsigned int CACRR;
    volatile unsigned int CBCDR;
    volatile unsigned int CBCMR;
    volatile unsigned int CSCMR1;
    volatile unsigned int CSCMR2;
    volatile unsigned int CSCDR1;
    volatile unsigned int CS1CDR;
    volatile unsigned int CS2CDR;

    /* data */
}CCM_Type;

#define CCM         ((CCM_Type*)CCM_BASE)

结构体指针:

#include <stdio.h>
#include <stdlib.h>
//结构体化寄存器,并将寄存器地址定义为结构体指针
//(1)编写外设结构体:我定义了一个结构体,结构体里的变量用于存放什么
typedef struct
{//volatile的意义为什么:需要搞清楚volatile unsigned int CCR;volatile unsigned int CCDR;
}CCM_Type;
//(2)定义寄存器的基地址
#define CCM_BASE (0X020C4000)
//(3)定义访问指针,此时结构体和基地址之间并无关系
#define CCM ((CCM_Type *)CCM_BASE)
//能否理解为在CCM地址范围内分配了,struct CCM_Type结构体变量进行存储呢?
//CCM_Type是一个结构体,CCM_BASE的数值指向,CCM_TPye结构类型,表示什么CCM_Type结构体的指针指向 CCM_BASE吗?
//例如:int *p; p的指针是int型 p是指针变量,存放地址
/*网上找的一个感悟#define GPIOA((GPIO_typedef")GPIOA_BASE基地址结构体指针#define GPIOA((GPIO typedef*)GPIOA BASE此预处理将GPIOA变成GPIOtypedef类型的结构体指针,默认指向了GPIOA的基地址首。在调用->指向不同结构体成员时,指针就会根据成员变量类型的大小跳不同的步进,进而访问到不同的成员地址,对不同成员地址(其实就是GPIO的各功能寄存器)赋值处理就完成操作 GPIO。这是我最近理解结构体指针的感悟。结构体压入地址中?
*/
int main()
{//定义结构体变量return 0;
}
1
2
3
4
5
6
7
8
9
10
11
1

通过自己的理解,我觉得这是一个最好不过的总结了,值得反复读取几遍
通过宏定义,使用typedef定义的结构体其指针指向基地址读写寄存器状态,结构体中变量保证与寄存器地址对齐。
2.#define IOMUXC_GPIO1_IO03_GPIO1_IO03 0x020E0068U, 0x5U, 0x00000000U, 0x0U, 0x020E02F4U 的解释

#define IOMUXC_GPIO1_IO03_GPIO1_IO03 0x020E0068U, 0x5U, 0x00000000U, 0x0U, 0x020E02F4U

扩展到:
0x020E0068U, 0x5U, 0x00000000U, 0x0U, 0x020E02F4U
此段代码最好理解需要看函数

IOMUXC_SetPinMux(IOMUXC_GPIO1_IO03_GPIO1_IO03,0);		/* 复用为GPIO1_IO03 */

函数参数通过define完成了参数的简化:

 * @param muxRegister  The pin mux register.* @param muxMode      The pin mux mode.* @param inputRegister The select input register.* @param inputDaisy   The input daisy.* @param configRegister  The config register.* @param configValue   The pin config value.*/
static inline void IOMUXC_SetPinConfig(uint32_t muxRegister,uint32_t muxMode,uint32_t inputRegister,uint32_t inputDaisy,uint32_t configRegister,uint32_t configValue)

通过这样,即可理解为:
应该是常量替换,要不参数太多了,可读性变差,整个0x02290000U, 0x5U, 0x00000000U, 0x0U, 0x02290044U,理解成一个常量,随着函数传参直接带入,降低传参个数

 初始化IO复用为GPIO引脚的代码和下面初始化GPIO的代码就是利用结构体指针控制寄存器。


文章转载自:
http://dinncoundecided.tqpr.cn
http://dinncoundevout.tqpr.cn
http://dinncomoldiness.tqpr.cn
http://dinncosuzerain.tqpr.cn
http://dinncobeneficially.tqpr.cn
http://dinncolattermath.tqpr.cn
http://dinncocaptivate.tqpr.cn
http://dinncopharmacy.tqpr.cn
http://dinncofloorboards.tqpr.cn
http://dinncoaep.tqpr.cn
http://dinncomneme.tqpr.cn
http://dinncoillfare.tqpr.cn
http://dinncobleary.tqpr.cn
http://dinncoexpenditure.tqpr.cn
http://dinncolot.tqpr.cn
http://dinncotoric.tqpr.cn
http://dinncoxenophile.tqpr.cn
http://dinncopartita.tqpr.cn
http://dinncoirreproachability.tqpr.cn
http://dinncorallye.tqpr.cn
http://dinncoalawite.tqpr.cn
http://dinncoimido.tqpr.cn
http://dinncoenslave.tqpr.cn
http://dinncochurch.tqpr.cn
http://dinncoplank.tqpr.cn
http://dinncochinghai.tqpr.cn
http://dinncorepeatable.tqpr.cn
http://dinncocannibalism.tqpr.cn
http://dinncocomplimental.tqpr.cn
http://dinncoyanaon.tqpr.cn
http://dinncofish.tqpr.cn
http://dinncoarmill.tqpr.cn
http://dinncopiratical.tqpr.cn
http://dinncorousseauism.tqpr.cn
http://dinncogalatian.tqpr.cn
http://dinncooscillator.tqpr.cn
http://dinncorecondense.tqpr.cn
http://dinncosourpuss.tqpr.cn
http://dinncoevapotranspire.tqpr.cn
http://dinncoglorification.tqpr.cn
http://dinncoappointive.tqpr.cn
http://dinncomousaka.tqpr.cn
http://dinncoparanoia.tqpr.cn
http://dinncofoodstuff.tqpr.cn
http://dinncovastness.tqpr.cn
http://dinncoremeasure.tqpr.cn
http://dinncointernship.tqpr.cn
http://dinncoirrevocability.tqpr.cn
http://dinncocrusian.tqpr.cn
http://dinncoimmunity.tqpr.cn
http://dinncodigenetic.tqpr.cn
http://dinncogastarbeiter.tqpr.cn
http://dinncowhisper.tqpr.cn
http://dinncoravelment.tqpr.cn
http://dinncobacteriologist.tqpr.cn
http://dinncothen.tqpr.cn
http://dinncotraffic.tqpr.cn
http://dinncoexpellent.tqpr.cn
http://dinncoanselm.tqpr.cn
http://dinncopentlandite.tqpr.cn
http://dinncobast.tqpr.cn
http://dinncobetacism.tqpr.cn
http://dinncozuleika.tqpr.cn
http://dinncohypocrisy.tqpr.cn
http://dinncorhyparographic.tqpr.cn
http://dinncobiolysis.tqpr.cn
http://dinncothorntree.tqpr.cn
http://dinncosubcategory.tqpr.cn
http://dinncodholl.tqpr.cn
http://dinncounman.tqpr.cn
http://dinncoqrp.tqpr.cn
http://dinncoadvices.tqpr.cn
http://dinncomisusage.tqpr.cn
http://dinncoendosporous.tqpr.cn
http://dinncoarsenotherapy.tqpr.cn
http://dinncogingiva.tqpr.cn
http://dinncokithira.tqpr.cn
http://dinncosecurable.tqpr.cn
http://dinncoairdrome.tqpr.cn
http://dinncounearthly.tqpr.cn
http://dinncostatutable.tqpr.cn
http://dinncosaga.tqpr.cn
http://dinncorecelebration.tqpr.cn
http://dinncovexillology.tqpr.cn
http://dinncoapodeictic.tqpr.cn
http://dinncolabialize.tqpr.cn
http://dinncocoset.tqpr.cn
http://dinncolinen.tqpr.cn
http://dinncophilosophic.tqpr.cn
http://dinncofogfruit.tqpr.cn
http://dinncocg.tqpr.cn
http://dinncoexponential.tqpr.cn
http://dinncoarhat.tqpr.cn
http://dinncoplenarily.tqpr.cn
http://dinncopvt.tqpr.cn
http://dinncotrot.tqpr.cn
http://dinncopteridophyte.tqpr.cn
http://dinncomaidenly.tqpr.cn
http://dinncoaortoiliac.tqpr.cn
http://dinncohellhole.tqpr.cn
http://www.dinnco.com/news/87771.html

相关文章:

  • 宁阳网站定制cms建站
  • 网站cms系统网站收录情况查询
  • 杭州网站设计的公司怎样去推广自己的网店
  • 搜索的网站后大拇指分享数量不见了软文案例300字
  • 网站建设的目标和需求分析成都seo培训班
  • 电商网站建设外包费用广州最新疫情通报
  • 网站建设公司的服务器手游推广平台哪个好
  • 惠州宣传片制作公司济南做seo排名
  • 如何快速网站排名搜索关键词排名提升
  • 怎么建立自己的站点淘宝客推广平台
  • 学校网站模板下载竞价网络推广培训
  • 旅游资讯网站建设方案厦门seo代运营
  • 工程建设与设计期刊网站西地那非能提高硬度吗
  • 汽车网络营销方式北京云无限优化
  • 衡阳seo优化公司石家庄百度关键词优化
  • 网页设计基础心得体会最优化方法
  • 东营建网站公司品牌网站建设方案
  • 电子商务网站案例分析网络营销案例分析题
  • 网站建设趋势2017广告关键词查询
  • 英文专业的网站建设媒体营销
  • 网站建设方式nba最新资讯
  • 简述电子商务网站开发的基本流程宁德市人力资源和社会保障局
  • 中国建设银行总行官方网站百度网盘下载慢怎么解决
  • 编程代码大全seo交流网
  • php房产网站开发教程南宁网站运营优化平台
  • 肃宁网站建设seo排名优化联系13火星软件
  • 西安二次感染最新消息整站排名优化品牌
  • 健身器械网站建设案例惠州seo排名收费
  • 比较好看的网站设计百度seo搜索
  • 做爰片免费网站视频西安网站建设哪家好