{"action":"created","issue":{"url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/2709","repository_url":"https://api.github.com/repos/RT-Thread/rt-thread","labels_url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/2709/labels{/name}","comments_url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/2709/comments","events_url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/2709/events","html_url":"https://github.com/RT-Thread/rt-thread/issues/2709","id":446927731,"node_id":"MDU6SXNzdWU0NDY5Mjc3MzE=","number":2709,"title":"[stm32f10x-HAL] SPI 驱动编译 SPI_TypeDef is undefined","user":{"login":"wuhanstudio","id":15157070,"node_id":"MDQ6VXNlcjE1MTU3MDcw","avatar_url":"https://avatars1.githubusercontent.com/u/15157070?v=4","gravatar_id":"","url":"https://api.github.com/users/wuhanstudio","html_url":"https://github.com/wuhanstudio","followers_url":"https://api.github.com/users/wuhanstudio/followers","following_url":"https://api.github.com/users/wuhanstudio/following{/other_user}","gists_url":"https://api.github.com/users/wuhanstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhanstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhanstudio/subscriptions","organizations_url":"https://api.github.com/users/wuhanstudio/orgs","repos_url":"https://api.github.com/users/wuhanstudio/repos","events_url":"https://api.github.com/users/wuhanstudio/events{/privacy}","received_events_url":"https://api.github.com/users/wuhanstudio/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2019-05-22T04:30:58Z","updated_at":"2019-05-22T05:55:27Z","closed_at":"2019-05-22T05:55:27Z","author_association":"CONTRIBUTOR","body":"使用 stm32f10x-HAL 如果使用了硬件 SPI 就会编译出错，虽然只要在 drv_spi.h 包含一个头文件就可以了，添加的头文件可以直接查看定义就找到了。\r\n\r\n![TIM图片20190507152504](https://user-images.githubusercontent.com/15157070/57311946-32b29500-711f-11e9-90fe-4a2d2bb35279.png)\r\n\r\n不知道这是不是官方 bsp 考虑到不同板子需要包含的头文件不同，所以特意没有包含头文件。\r\n\r\n但是这样会导致添加硬件 SPI 就会编译出错，这样会不会不大好 "},"comment":{"url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/comments/494662739","html_url":"https://github.com/RT-Thread/rt-thread/issues/2709#issuecomment-494662739","issue_url":"https://api.github.com/repos/RT-Thread/rt-thread/issues/2709","id":494662739,"node_id":"MDEyOklzc3VlQ29tbWVudDQ5NDY2MjczOQ==","user":{"login":"wuhanstudio","id":15157070,"node_id":"MDQ6VXNlcjE1MTU3MDcw","avatar_url":"https://avatars1.githubusercontent.com/u/15157070?v=4","gravatar_id":"","url":"https://api.github.com/users/wuhanstudio","html_url":"https://github.com/wuhanstudio","followers_url":"https://api.github.com/users/wuhanstudio/followers","following_url":"https://api.github.com/users/wuhanstudio/following{/other_user}","gists_url":"https://api.github.com/users/wuhanstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/wuhanstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wuhanstudio/subscriptions","organizations_url":"https://api.github.com/users/wuhanstudio/orgs","repos_url":"https://api.github.com/users/wuhanstudio/repos","events_url":"https://api.github.com/users/wuhanstudio/events{/privacy}","received_events_url":"https://api.github.com/users/wuhanstudio/received_events","type":"User","site_admin":false},"created_at":"2019-05-22T05:55:27Z","updated_at":"2019-05-22T05:55:27Z","author_association":"CONTRIBUTOR","body":"> stm32f10x-HAL 该 BSP 已经逐渐不再维护了，推荐使用 stm32 目录下的 BSP。\r\n> \r\n> https://github.com/RT-Thread/rt-thread/tree/master/bsp/stm32\r\n\r\n原来如此，谢谢"}}
{"actor":{"display_login":"wuhanstudio"}}