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

Co-authored-by: Supper Thomas <78900636@qq.com>
This commit is contained in:
zhkag 2023-07-05 18:20:08 +08:00 committed by GitHub
parent af01d1fd1c
commit 9c14c518db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

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

View File

@ -2,7 +2,7 @@ from building import *
import rtconfig import rtconfig
cwd = GetCurrentDir() cwd = GetCurrentDir()
src = ['MM32F327x/Source/system_mm32f327x.c'] 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') src += Glob('MM32F327x/HAL_lib/src/*.c')
CPPDEFINES = ['USE_STDPERIPH_DRIVER'] CPPDEFINES = ['USE_STDPERIPH_DRIVER']

View File

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

View File

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

View File

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

View File

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

View File

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