Skip to content

Commit

Permalink
Merge pull request #2459 from particle-iot/feature/sc-101094/esomx-hi…
Browse files Browse the repository at this point in the history
…l-support

[gen3][esomx] ESOMX board support on HIL / Concourse
  • Loading branch information
scott-brust committed Jun 17, 2022
2 parents f0cba93 + 16e3c3f commit ecd8bef
Show file tree
Hide file tree
Showing 9 changed files with 29 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .buildpackrc
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export PRERELEASE_PLATFORMS=( argon boron bsom b5som tracker )
# added to both it will be considered a prerelease

# Platforms which require modules to be prebuilt
export MODULAR_PLATFORMS=( argon boron bsom b5som tracker )
export MODULAR_PLATFORMS=( argon boron bsom b5som tracker esomx)

1 change: 1 addition & 0 deletions build/create_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class ModuleFunction(IntEnum):
class Platform(IntEnum):
ARGON = 12
BORON = 13
ESOMX = 15
ASOM = 22
BSOM = 23
B5SOM = 25
Expand Down
5 changes: 3 additions & 2 deletions build/make_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function display_help ()
usage: make_release.sh [--debug] [--help]
[--output-directory=<binary_output_directory>]
[--platform=<all|argon|asom|boron|bsom...
|b5som|tracker>]
|b5som|tracker|esomx>]
[--publish=<semantic_version_string>] [--tests]
Generate the binaries for a versioned release of the Device OS. This utility
Expand Down Expand Up @@ -129,7 +129,7 @@ function valid_platform()
platform=$1

# Validate platform (result of expression returned to caller)
[ "$platform" = "all" ] || [ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ]
[ "$platform" = "all" ] || [ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ] || [ "$platform" = "esomx" ]
}

if !(valid_platform $PLATFORM); then
Expand All @@ -151,6 +151,7 @@ if [ $PLATFORM = "all" ]; then
release_platform "bsom"
release_platform "b5som"
release_platform "tracker"
release_platform "esomx"
else
release_platform "$PLATFORM"
fi
Expand Down
2 changes: 1 addition & 1 deletion build/release-publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ function valid_platform()
platform=$1

# Validate platform (result of expression returned to caller)
[ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ]
[ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ] || [ "$platform" = "esomx" ]
}

# Identify the absolute directory
Expand Down
7 changes: 5 additions & 2 deletions build/release-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ usage: release-tests.sh [--dryrun] [--help]
[--filename=<test_parameter_file.json>]
--output-directory=<binary_output_directory>
--platform=<argon|asom|boron|bsom...
|b5som|tracker>
|b5som|tracker|esomx>
--version=<semver_version_string>
Generate the testing binaries belonging to a given platform.
Expand Down Expand Up @@ -107,7 +107,7 @@ function valid_platform ()
platform=$1

# Validate platform (result of expression returned to caller)
[ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ]
[ "$platform" = "argon" ] || [ "$platform" = "asom" ] || [ "$platform" = "boron" ] || [ "$platform" = "bsom" ] || [ "$platform" = "b5som" ] || [ "$platform" = "tracker" ] || [ "$platform" = "esomx" ]
}

# Handle invalid arguments
Expand Down Expand Up @@ -136,6 +136,9 @@ case "$PLATFORM" in
"boron")
PLATFORM_ID="13"
;;
"esomx")
PLATFORM_ID="15"
;;
"asom")
PLATFORM_ID="22"
;;
Expand Down
14 changes: 11 additions & 3 deletions build/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ function display_help ()
echo '
usage: release.sh [--output-directory=<binary_output_directory>]
(--platform=<argon|asom|boron|bsom...
|b5som>...
| --platform-id=<12|13|22|23|25|26>)
|b5som|esomx>...
| --platform-id=<12|13|15|22|23|25|26>)
[--debug] [--help] [--tests]
Generate the binaries for a versioned release of the Device OS. This utility
Expand Down Expand Up @@ -218,6 +218,10 @@ elif [ ! -z $PLATFORM ]; then
PLATFORM_ID="13"
GEN3=true
;;
"esomx")
PLATFORM_ID="15"
GEN3=true
;;
"asom")
PLATFORM_ID="22"
GEN3=true
Expand Down Expand Up @@ -249,6 +253,10 @@ else
PLATFORM="boron"
GEN3=true
;;
15)
PLATFORM="esomx"
GEN3=true
;;
22)
PLATFORM="asom"
GEN3=true
Expand Down Expand Up @@ -305,7 +313,7 @@ rm -rf $ABSOLUTE_TARGET_DIRECTORY/
#########################

# GEN3
if [ $PLATFORM_ID -eq 12 ] || [ $PLATFORM_ID -eq 13 ] || [ $PLATFORM_ID -eq 22 ] || [ $PLATFORM_ID -eq 23 ] || [ $PLATFORM_ID -eq 25 ] || [ $PLATFORM_ID -eq 26 ]; then
if [ $PLATFORM_ID -eq 12 ] || [ $PLATFORM_ID -eq 13 ] || [ $PLATFORM_ID -eq 15 ] || [ $PLATFORM_ID -eq 22 ] || [ $PLATFORM_ID -eq 23 ] || [ $PLATFORM_ID -eq 25 ] || [ $PLATFORM_ID -eq 26 ]; then
# Configure
if [ $DEBUG = true ]; then
cd ../main
Expand Down
2 changes: 1 addition & 1 deletion ci/cf_generate_message.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ EOF
)

fields=""
for p in Argon Boron BSoM B5SoM Tracker GCC Newhal; do
for p in Argon Boron BSoM B5SoM Tracker ESoMX GCC Newhal; do
if echo -e "${failures}" | grep -q "PLATFORM=\"${p,,}\""; then
msg=":scrum_closed: $p\\n"
else
Expand Down
8 changes: 4 additions & 4 deletions ci/enumerate_build_matrix.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,12 @@ MAKE=runmake
# define build matrix dimensions
# "" means execute execute the $MAKE command without that var specified
DEBUG_BUILD=( y n )
PLATFORM=( argon boron asom bsom b5som )
PLATFORM_BOOTLOADER=( argon boron asom bsom b5som tracker )
PLATFORM=( argon boron asom bsom b5som esomx )
PLATFORM_BOOTLOADER=( argon boron asom bsom b5som tracker esomx )
APP=( "" tinker product_id_and_version)
TEST=( wiring/api wiring/no_fixture wiring/no_fixture_long_running )

MODULAR_PLATFORM=( argon boron asom bsom b5som tracker )
MODULAR_PLATFORM=( argon boron asom bsom b5som tracker esomx )

filterPlatform PLATFORM
filterPlatform MODULAR_PLATFORM
Expand Down Expand Up @@ -147,7 +147,7 @@ do
do
# Gen 3 overflows with modular DEBUG_BUILD=y, so skip those
if [[ "$db" = "y" ]]; then
if [[ "$p" = "argon" ]] || [[ "$p" = "boron" ]] || [[ "$p" = "asom" ]] || [[ "$p" = "bsom" ]] || [[ "$p" = "b5som" ]] || [[ "$p" = "tracker" ]]; then
if [[ "$p" = "argon" ]] || [[ "$p" = "boron" ]] || [[ "$p" = "asom" ]] || [[ "$p" = "bsom" ]] || [[ "$p" = "b5som" ]] || [[ "$p" = "tracker" ]] || [[ "$p" = "esomx" ]]; then
continue
fi
fi
Expand Down
2 changes: 2 additions & 0 deletions user/tests/wiring/no_fixture_long_running/pwm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ const PinMapping pwm_pins[] = {
// cause problems if the RGB led is enabled.
// PWM HAL also is not interrupt safe and RGB pins are modified in SysTick
PIN(D2), PIN(D3), PIN(D4), PIN(D5), PIN(D6), /* PIN(D7), */ PIN(D8), PIN(A0), PIN(A1), PIN(A2), PIN(A3), PIN(A4), PIN(A5) /* , PIN(RGBR), PIN(RGBG), PIN(RGBB) */
#elif (PLATFORM_ID == PLATFORM_ESOMX)
PIN(D0) // TODO: Other PWM pins
#else
#error "Unsupported platform"
#endif
Expand Down

0 comments on commit ecd8bef

Please sign in to comment.