Fix Fysetc S6 FLASH_PAGE_SIZE and test build (#16560)
This commit is contained in:
committed by
Scott Lahteine
parent
bfe4ceedd1
commit
fc773c2784
@ -1,5 +1,5 @@
|
||||
from os.path import join
|
||||
Import("env", "projenv")
|
||||
Import("env")
|
||||
|
||||
import os,shutil
|
||||
from SCons.Script import DefaultEnvironment
|
||||
|
@ -149,7 +149,7 @@ extern "C" {
|
||||
/* HAL configuration */
|
||||
#define HSE_VALUE 12000000U
|
||||
|
||||
#define FLASH_PAGE_SIZE uint32(4 * 1024)
|
||||
#define FLASH_PAGE_SIZE (4U * 1024U)
|
||||
|
||||
#ifdef __cplusplus
|
||||
} // extern "C"
|
||||
|
@ -34,6 +34,7 @@ case $TESTENV in
|
||||
f1) TESTENV='STM32F103RE' ;;
|
||||
f4) TESTENV='STM32F4' ;;
|
||||
f7) TESTENV='STM32F7' ;;
|
||||
s6) TESTENV='FYSETC_S6' ;;
|
||||
teensy) TESTENV='teensy31' ;;
|
||||
t31) TESTENV='teensy31' ;;
|
||||
t32) TESTENV='teensy31' ;;
|
||||
|
15
buildroot/share/tests/FYSETC_S6-tests
Normal file
15
buildroot/share/tests/FYSETC_S6-tests
Normal file
@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
#
|
||||
# Build tests for FYSETC_S6
|
||||
#
|
||||
|
||||
# exit on first failure
|
||||
set -e
|
||||
|
||||
# Build examples
|
||||
restore_configs
|
||||
use_example_configs FYSETC/S6
|
||||
exec_test $1 $2 "FYSETC S6 Example"
|
||||
|
||||
# cleanup
|
||||
restore_configs
|
Reference in New Issue
Block a user