[bsp][mm32] 修复编译问题 (#7780)
Co-authored-by: Supper Thomas <78900636@qq.com>
This commit is contained in:
parent
af01d1fd1c
commit
9c14c518db
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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']
|
||||||
|
|
|
@ -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)
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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'
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue