Ver código fonte

[bsp][mm32] 修复编译问题 (#7780)

Co-authored-by: Supper Thomas <78900636@qq.com>
zhkag 2 anos atrás
pai
commit
9c14c518db

+ 1 - 1
bsp/mm32f103x/drivers/board.h

@@ -11,7 +11,7 @@
 #ifndef BOARD_H__
 #define BOARD_H__
 #include <rtthread.h>
-#include <hal_device.h>
+#include <HAL_device.h>
 
 #define SRAM_SIZE 0x5000
 

+ 1 - 1
bsp/mm32f327x/Libraries/SConscript

@@ -2,7 +2,7 @@ from building import *
 import rtconfig
 cwd     = GetCurrentDir()
 src = ['MM32F327x/Source/system_mm32f327x.c']
-CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include',  cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_lib/Inc']
+CPPPATH = [cwd + '/CMSIS/KEIL_CORE', cwd + '/MM32F327x/Include',  cwd + '/MM32F327x/Source', cwd + '/MM32F327x/HAL_Lib/Inc']
 
 src += Glob('MM32F327x/HAL_lib/src/*.c')
 CPPDEFINES = ['USE_STDPERIPH_DRIVER']

+ 1 - 1
bsp/mm32f327x/applications/main.c

@@ -10,7 +10,7 @@
 
 #include <rtthread.h>
 #include <rtdevice.h>
-#include "HAL_device.h"
+#include "hal_device.h"
 /* defined the LED pin: PA15 */
 #define LED_PIN    38
 int main(void)

+ 1 - 1
bsp/mm32f327x/drivers/drv_uart.c

@@ -7,7 +7,7 @@
  * Date           Author       Notes
  * 2021-08-05     mazhiyuan   first version
  */
-#include <HAL_device.h>
+#include <hal_device.h>
 #include <rtdevice.h>
 #include "drv_uart.h"
 #include <hal_gpio.h>

+ 1 - 1
bsp/mm32l07x/drivers/board.h

@@ -11,7 +11,7 @@
 #ifndef BOARD_H__
 #define BOARD_H__
 #include <rtthread.h>
-#include <hal_device.h>
+#include <HAL_device.h>
 
 #define SRAM_SIZE 0x2000
 

+ 1 - 1
bsp/mm32l07x/rtconfig.py

@@ -42,7 +42,7 @@ if PLATFORM == 'gcc':
     OBJDUMP = PREFIX + 'objdump'
     OBJCPY = PREFIX + 'objcopy'
 
-    DEVICE = ' -mcpu=' + CPU + '-mthumb -ffunction-sections -fdata-sections -Wall'
+    DEVICE = ' -mcpu=' + CPU + ' -mthumb -ffunction-sections -fdata-sections -Wall'
     CFLAGS = DEVICE + ' -std=c99'
     AFLAGS = ' -c' + DEVICE + ' -x assembler-with-cpp -Wa,-mimplicit-it=thumb '
     LFLAGS = DEVICE + ' -Wl,--gc-sections,-Map=rtthread.map,-cref,-u,Reset_Handler -T drivers/linker_scripts/link.lds'

+ 1 - 1
bsp/mm32l3xx/drivers/board.h

@@ -11,7 +11,7 @@
 #ifndef BOARD_H__
 #define BOARD_H__
 #include <rtthread.h>
-#include <hal_device.h>
+#include <HAL_device.h>
 
 #define SRAM_SIZE 0x5000