Skip to content

Commit 7f7b52f

Browse files
authored
Merge pull request #4325 from sheltonyu/developer
1.add can and on-chip-flash drivers 2.fixed c++ compiler error
2 parents 7ed6644 + bb28784 commit 7f7b52f

File tree

16 files changed

+1337
-8
lines changed

16 files changed

+1337
-8
lines changed

bsp/at32/Libraries/AT32_Std_Driver/AT32F4xx_StdPeriph_Driver/inc/at32f4xx_ertc.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
#ifndef __AT32F4xx_ERTC_H
1212
#define __AT32F4xx_ERTC_H
1313

14+
#ifdef __cplusplus
15+
extern "C" {
16+
#endif
1417

1518
/* Includes ------------------------------------------------------------------*/
1619
#include "at32f4xx.h"

bsp/at32/Libraries/rt_drivers/SConscript

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ if GetDepend('BSP_USING_SRAM'):
4343
if GetDepend('BSP_USING_RTC'):
4444
src += ['drv_rtc.c']
4545

46+
if GetDepend('BSP_USING_ON_CHIP_FLASH'):
47+
src += ['drv_flash.c']
48+
4649
if GetDepend(['BSP_USING_WDT']):
4750
src += ['drv_wdt.c']
4851

52+
if GetDepend(['BSP_USING_CAN']):
53+
src += ['drv_can.c']
54+
4955
if GetDepend(['BSP_USING_SDIO']):
5056
src += ['drv_sdio.c']
5157

0 commit comments

Comments
 (0)