OpenEdv-开源电子网

 找回密码
 立即注册
正点原子全套STM32/Linux/FPGA开发资料,上千讲STM32视频教程免费下载...
查看: 2820|回复: 1

SEMC_Init函数中几个参数的意思作用是什么

[复制链接]

2

主题

5

帖子

0

精华

新手上路

积分
35
金钱
35
注册时间
2018-6-9
在线时间
1 小时
发表于 2018-6-9 21:15:28 | 显示全部楼层 |阅读模式
SEMC_Init(SEMC,&semc_configure); -------->
  /* Configure Queue 0/1 for AXI bus. */
    if (configure->queueWeight.queueaWeight)
    {
        base->BMCR0 = (uint32_t)(configure->queueWeight.queueaWeight);
    }
    if (configure->queueWeight.queuebWeight)
    {
        base->BMCR1 = (uint32_t)(configure->queueWeight.queuebWeight);
    }


寄存器BMCR0/BMCR1中几个字段的作用是什么(红色字体)?谢谢
/*! @brief SEMC AXI queue a weight setting. */
typedef struct _semc_queuea_weight
{
    uint32_t qos : 4;              /*!< weight of qos for queue 0 . */
    uint32_t aging : 4;            /*!< weight of aging for queue 0.*/
    uint32_t slaveHitSwith : 8;    /*!< weight of read/write switch for queue 0.*/
    uint32_t slaveHitNoswitch : 8; /*!< weight of read/write no switch for queue 0  .*/
} semc_queuea_weight_t;

/*! @brief SEMC AXI queue b weight setting. */
typedef struct _semc_queueb_weight
{
    uint32_t qos : 4;           /*!< weight of qos for queue 1. */
    uint32_t aging : 4;         /*!< weight of aging for queue 1.*/
    uint32_t slaveHitSwith : 8; /*!< weight of read/write switch for queue 1.*/
    uint32_t weightPagehit : 8; /*!< weight of page hit for queue 1 only .*/
    uint32_t bankRotation : 8;  /*!< weight of bank rotation for queue 1 only .*/
} semc_queueb_weight_t;


正点原子逻辑分析仪DL16劲爆上市
回复

使用道具 举报

2

主题

5

帖子

0

精华

新手上路

积分
35
金钱
35
注册时间
2018-6-9
在线时间
1 小时
 楼主| 发表于 2018-6-19 08:39:37 | 显示全部楼层
正点原子团队们 请帮忙回复下  上面的作用是什么?谢谢~~~
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则



关闭

原子哥极力推荐上一条 /2 下一条

正点原子公众号

QQ|手机版|OpenEdv-开源电子网 ( 粤ICP备12000418号-1 )

GMT+8, 2024-5-24 04:22

Powered by OpenEdv-开源电子网

© 2001-2030 OpenEdv-开源电子网

快速回复 返回顶部 返回列表