mirror of
https://github.com/goldenfishs/MRobot.git
synced 2026-02-04 18:00:19 +08:00
修代码
This commit is contained in:
parent
04729c066a
commit
485fa366cd
@ -22,8 +22,7 @@ static void (*SPI_Callback[BSP_SPI_NUM][BSP_SPI_CB_NUM])(void);
|
|||||||
|
|
||||||
/* Private function -------------------------------------------------------- */
|
/* Private function -------------------------------------------------------- */
|
||||||
static BSP_SPI_t SPI_Get(SPI_HandleTypeDef *hspi) {
|
static BSP_SPI_t SPI_Get(SPI_HandleTypeDef *hspi) {
|
||||||
if (hspi->Instance == SPI1)
|
/* AUTO GENERATED SPI_GET */
|
||||||
return BSP_SPI_BMI088;
|
|
||||||
else
|
else
|
||||||
return BSP_SPI_ERR;
|
return BSP_SPI_ERR;
|
||||||
}
|
}
|
||||||
@ -96,8 +95,7 @@ void HAL_SPI_AbortCpltCallback(SPI_HandleTypeDef *hspi) {
|
|||||||
/* Exported functions ------------------------------------------------------- */
|
/* Exported functions ------------------------------------------------------- */
|
||||||
SPI_HandleTypeDef *BSP_SPI_GetHandle(BSP_SPI_t spi) {
|
SPI_HandleTypeDef *BSP_SPI_GetHandle(BSP_SPI_t spi) {
|
||||||
switch (spi) {
|
switch (spi) {
|
||||||
case BSP_SPI_BMI088:
|
/* AUTO GENERATED BSP_SPI_GET_HANDLE */
|
||||||
return &hspi1;
|
|
||||||
default:
|
default:
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -13,6 +13,9 @@ def png_to_ico(png_path, ico_path=None, sizes=[(256,256), (128,128), (64,64), (3
|
|||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
# 直接写死路径
|
# 直接写死路径
|
||||||
png = r"C:\Mac\Home\Documents\R\MRobot\img\m1.png"
|
# png = r"C:\Mac\Home\Documents\R\MRobot\img\rps.png"
|
||||||
ico = r"c:\Mac\Home\Documents\R\MRobot\img\M1.ico"
|
# ico = r"c:\Mac\Home\Documents\R\MRobot\img\M1.ico"
|
||||||
|
png = "/Users/lvzucheng/Documents/R/MRobot/rps.png"
|
||||||
|
ico = "/Users/lvzucheng/Documents/R/MRobot/rps.ico"
|
||||||
|
|
||||||
png_to_ico(png, ico)
|
png_to_ico(png, ico)
|
||||||
Loading…
Reference in New Issue
Block a user