Merge pull request #5577 from mysterywolf/bspl0

This commit is contained in:
guo 2022-01-28 17:43:18 +08:00 committed by GitHub
commit 909b464e78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 13 additions and 12 deletions

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = '' LPATH = ''
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g' CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/' EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -g -O0' CFLAGS += ' -g -O2'
AFLAGS += ' -g' AFLAGS += ' -g'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -165,7 +165,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' --debug' CFLAGS += ' --debug'
CFLAGS += ' -On' CFLAGS += ' -Oh'
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = '' LPATH = ''
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g' CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/' EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -g -O0' CFLAGS += ' -g -O2'
AFLAGS += ' -g' AFLAGS += ' -g'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' --debug' CFLAGS += ' --debug'
CFLAGS += ' -On' CFLAGS += ' -Oh'
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = '' LPATH = ''
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g' CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/' EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -g -O0' CFLAGS += ' -g -O2'
AFLAGS += ' -g' AFLAGS += ' -g'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' --debug' CFLAGS += ' --debug'
CFLAGS += ' -On' CFLAGS += ' -Oh'
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'

View File

@ -11,6 +11,7 @@ menu "Onboard Peripheral Drivers"
config BSP_USING_USB_TO_USART config BSP_USING_USB_TO_USART
bool "Enable USB TO USART (uart2)" bool "Enable USB TO USART (uart2)"
select BSP_USING_UART
select BSP_USING_UART2 select BSP_USING_UART2
default y default y

View File

@ -52,7 +52,7 @@ if PLATFORM == 'gcc':
LPATH = '' LPATH = ''
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -O0 -gdwarf-2 -g' CFLAGS += ' -O2 -gdwarf-2 -g'
AFLAGS += ' -gdwarf-2' AFLAGS += ' -gdwarf-2'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -83,7 +83,7 @@ elif PLATFORM == 'armcc':
EXEC_PATH += '/ARM/ARMCC/bin/' EXEC_PATH += '/ARM/ARMCC/bin/'
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' -g -O0' CFLAGS += ' -g -O2'
AFLAGS += ' -g' AFLAGS += ' -g'
else: else:
CFLAGS += ' -O2' CFLAGS += ' -O2'
@ -164,7 +164,7 @@ elif PLATFORM == 'iar':
if BUILD == 'debug': if BUILD == 'debug':
CFLAGS += ' --debug' CFLAGS += ' --debug'
CFLAGS += ' -On' CFLAGS += ' -Oh'
else: else:
CFLAGS += ' -Oh' CFLAGS += ' -Oh'