Skip to content

Commit b97735c

Browse files
committed
Remove BSP from variants.
You may still use BSP in variants as an option, however
1 parent e881f5b commit b97735c

File tree

37 files changed

+95
-22075
lines changed

37 files changed

+95
-22075
lines changed

boards.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ amap3blackboard.build.mcu=cortex-m4
3030
amap3blackboard.build.f_cpu=48000000L
3131
amap3blackboard.build.core=arduino
3232
amap3blackboard.build.defs=
33-
amap3blackboard.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
33+
amap3blackboard.build.includes=-I{build.variant.path}/config
3434
amap3blackboard.build.libs=
3535
amap3blackboard.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
3636
amap3blackboard.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
@@ -50,7 +50,7 @@ amap3nano.build.mcu=cortex-m4
5050
amap3nano.build.f_cpu=48000000L
5151
amap3nano.build.core=arduino
5252
amap3nano.build.defs=
53-
amap3nano.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
53+
amap3nano.build.includes=-I{build.variant.path}/config
5454
amap3nano.build.libs=
5555
amap3nano.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
5656
amap3nano.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
@@ -70,7 +70,7 @@ amap3mega.build.mcu=cortex-m4
7070
amap3mega.build.f_cpu=48000000L
7171
amap3mega.build.core=arduino
7272
amap3mega.build.defs=
73-
amap3mega.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
73+
amap3mega.build.includes=-I{build.variant.path}/config
7474
amap3mega.build.libs=
7575
amap3mega.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
7676
amap3mega.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
@@ -110,7 +110,7 @@ edge.build.mcu=cortex-m4
110110
edge.build.f_cpu=48000000L
111111
edge.build.core=arduino
112112
edge.build.defs=
113-
edge.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
113+
edge.build.includes=-I{build.variant.path}/config
114114
edge.build.libs=
115115
edge.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
116116
edge.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
@@ -129,7 +129,7 @@ edgeV2.build.mcu=cortex-m4
129129
edgeV2.build.f_cpu=48000000L
130130
edgeV2.build.core=arduino
131131
edgeV2.build.defs=
132-
edgeV2.build.includes=-I{build.variant.path}/bsp -I{build.variant.path}/config
132+
edgeV2.build.includes=-I{build.variant.path}/config
133133
edgeV2.build.libs=
134134
edgeV2.build.extra_flags=-DPART_apollo3 -DAM_PACKAGE_BGA -DAM_PART_APOLLO3
135135
edgeV2.build.ldscript={build.variant.path}/linker_scripts/gcc/flash_with_bootloader.ld
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Variant BSP
2+
The Board Support Package (BSP) is a feature of the AmbiqSuite SDK that allows you to:
3+
- define names and default configurations for pins
4+
- write globally-accessible routines for common functions
5+
6+
These features are potentially useful when:
7+
- designing an Apollo3-based board for a custom purpose where pin functions will be mainly static
8+
- using AmbiqSuite examples within Arduino
9+
10+
For an example of a BSP see the AmbiqSuite release 2.1.0 SDK under 'SDK/boards/Apollo3_EVB/bsp'
11+
12+
To include BSP files (i.e. am_bsp.h, am_bsp.c, am_bsp_pins.h, am_bsp_pins.c, as well as
13+
bsp_pins.src and pinconfig.py) add " -I{build.variant.path}/bsp" to the board definition in
14+
boards.txt as part of the board.build.includes parameter.
15+

0 commit comments

Comments
 (0)