Skip to content

Commit 5c513ec

Browse files
committed
- fix typos comments in board.h;
- fix Incorrect libraries_path_prefix when a local "./libraries" directory exists;
1 parent d6c67ad commit 5c513ec

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

bsp/xuantie/xiaohui/c908x/SConstruct

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ Export('rtconfig')
3434
SDK_ROOT = os.path.abspath('./')
3535

3636
if os.path.exists(SDK_ROOT + '/libraries'):
37-
libraries_path_prefix = SDK_ROOT + '../libraries'
37+
libraries_path_prefix = os.path.normpath(os.path.join(SDK_ROOT, '..', 'libraries'))
3838
else:
39-
libraries_path_prefix = os.path.dirname(SDK_ROOT) + '/../libraries'
39+
libraries_path_prefix = os.path.normpath(os.path.join(os.path.dirname(SDK_ROOT), '..', 'libraries'))
4040

4141
SDK_LIB = libraries_path_prefix
4242
Export('SDK_LIB')

bsp/xuantie/xiaohui/c908x/board/board.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
/*
20-
This is an example board.h for Board Compment, New Board should flow the macro defines.
20+
This is an example board.h for Board Component, New Board should follow the macro defines.
2121
*/
2222

2323
#ifndef __BOARD_H__
@@ -44,7 +44,7 @@ extern "C" {
4444
· WIFI
4545
· BT
4646
· AUDIO
47-
BOARD_XXX Macro descripted below should be defined if the board support.
47+
BOARD_XXX Macro described below should be defined if the board support.
4848
*/
4949

5050
/****************************************************************************/
@@ -120,8 +120,8 @@ extern "C" {
120120
// UART
121121

122122
/*
123-
The total supported uart numbers on this board, 0 meas No uart support.
124-
the BOARD_UART<x>_XXX, x in rang of (0, BOARD_UART_NUM - 1)
123+
The total supported uart numbers on this board, 0 means No uart support.
124+
the BOARD_UART<x>_XXX, x in range of (0, BOARD_UART_NUM - 1)
125125
*/
126126
#ifndef BOARD_UART_NUM
127127
#define BOARD_UART_NUM (1)

0 commit comments

Comments
 (0)