找回密码
 注册
关于网站域名变更的通知
查看: 235|回复: 1
打印 上一主题 下一主题

哪位大神有用过LL库?咨询一下问题

[复制链接]
  • TA的每日心情
    难过
    2019-11-20 15:02
  • 签到天数: 1 天

    [LV.1]初来乍到

    跳转到指定楼层
    1#
    发表于 2020-5-27 15:39 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式

    EDA365欢迎您登录!

    您需要 登录 才可以下载或查看,没有帐号?注册

    x
    我在keil中添加了代码,配置引脚之后拉高引脚。没有反应,用的内部时钟。代码如下:- G/ e5 c% y+ j  Y& e8 d7 \

    9 n1 o1 R# B: [1 n* I" n
    • void LCD_GPIO_Init(void)
    • {
    •         LL_GPIO_InitTypeDef GPIO_InitStruct = {0};
    •         LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOA);
    •         LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOB);
    •         LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOC);
    •         LL_AHB2_GRP1_EnableClock(LL_AHB2_GRP1_PERIPH_GPIOH);
    •         GPIO_InitStruct.Pin = data_DB;
    •         GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
    •         GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
    •         GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_MEDIUM;
    •         LL_GPIO_Init(GPIOA, &GPIO_InitStruct);
    •         GPIO_InitStruct.Pin = RET|EN_LED;
    •         GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
    •         GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
    •         GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_MEDIUM;
    •         LL_GPIO_Init(GPIOB, &GPIO_InitStruct);
    •         GPIO_InitStruct.Pin = RS|RW|E;
    •         GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
    •         GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
    •         GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_MEDIUM;
    •         LL_GPIO_Init(GPIOC, &GPIO_InitStruct);
    •         GPIO_InitStruct.Pin = CS1|CS2;
    •         GPIO_InitStruct.Mode = LL_GPIO_MODE_OUTPUT;
    •         GPIO_InitStruct.OutputType = LL_GPIO_OUTPUT_PUSHPULL;
    •         GPIO_InitStruct.Speed = LL_GPIO_SPEED_FREQ_MEDIUM;
    •         LL_GPIO_Init(GPIOH, &GPIO_InitStruct);
    •         LL_GPIO_SetOutputPin(GPIOB,EN_LED);//EN_LED= 1
    • }
      & v! c/ w% U+ {( z" F7 |

    7 w: s* `$ e% n4 k  }5 a

    该用户从未签到

    2#
    发表于 2020-5-27 16:21 | 只看该作者
    内部时钟使能了吗?
    您需要登录后才可以回帖 登录 | 注册

    本版积分规则

    关闭

    推荐内容上一条 /1 下一条

    EDA365公众号

    关于我们|手机版|EDA365电子论坛网 ( 粤ICP备18020198号-1 )

    GMT+8, 2025-7-1 05:56 , Processed in 0.078125 second(s), 23 queries , Gzip On.

    深圳市墨知创新科技有限公司

    地址:深圳市南山区科技生态园2栋A座805 电话:19926409050

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