-
Notifications
You must be signed in to change notification settings - Fork 5.3k
[WIP][🏅BSP][stm32] 添加野火stm32f767开发板bsp #2058
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
armink
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
非常棒,这么快就搞出来了一个新的 BSP,还是一个全新的 F7 系列,多谢你的贡献。
另外, HAL/CMSIS/DSP_Lib 不知道在你这里用到没有,如果没有就先移除吧,这个文件夹占用的体积太大了;
更多内容, @SummerGGift 负责 review
| #if defined(SOC_SERIES_STM32F1) || defined(SOC_SERIES_STM32L4) || defined(SOC_SERIES_STM32F4) | ||
| #define UART_INSTANCE_CLEAR_FUNCTION __HAL_UART_CLEAR_FLAG | ||
| #elif defined(SOC_SERIES_STM32F7) | ||
| #define UART_INSTANCE_CLEAR_FUNCTION __HAL_UART_CLEAR_IT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 这很强势
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从官方的代码中学到的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greedyhao 有加入到 STM32 BSP 内测群吗?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
从官方的代码中学到的
很棒,我们这就运行一下
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@greedyhao 你在我们官方的 BSP 体验 QQ 群里吗? 340822587
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
刚刚申请加群了 @armink @SummerGGift
补全了必要的hal库,stm32f767-fire的sram大小更正为512
| #ifdef RT_USING_SPI | ||
|
|
||
| #if defined(BSP_USING_SPI1) || defined(BSP_USING_SPI2) || defined(BSP_USING_SPI3) || defined(BSP_USING_SPI4) || defined(BSP_USING_SPI5) | ||
| #define BSP_USING_SPI1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上面两个 #define 好像不应该有,是在 menuconfig 里选的
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
上面两个 #define 好像不应该有,是在 menuconfig 里选的
之前测试的时候忘记删除了
| #define RT_USING_DEVICE_IPC | ||
| #define RT_PIPE_BUFSZ 512 | ||
| #define RT_USING_SERIAL | ||
| #define RT_SERIAL_USING_DMA |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个 DMA 关掉吧,默认提交的工程应该是驱动功能比较小的配置,参考其他 BSP。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个DMA在我这无法用menuconfig关闭,只能用menuconfig开启,得手动删除,不知道什么原因
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
哦,我知道了,不是你的问题,是最近在设备框架新增了 DMA 模式开关,那是可以保留
| { | ||
| rt_pin_mode(LED0_PIN, PIN_MODE_OUTPUT); | ||
| rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT); | ||
| // rt_pin_mode(LED1_PIN, PIN_MODE_OUTPUT); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为何要注释呢?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
忘记删除了
| config BSP_USING_QSPI_FLASH | ||
| bool "Enable QSPI FLASH (W25Q128 spi5)" | ||
| select BSP_USING_SPI5 | ||
| bool "Enable QSPI FLASH" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Enable QSPI FLASH (W25Q128 qspi1)
SummerGift
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
该 BSP 可以合并了,其他细节内容可以合并后续修改。
No description provided.