Renamed macro DISABLE_KEEP_ON to RUNNING_TESTSUITE
This commit is contained in:
parent
3f2df608c9
commit
624dca2b97
|
|
@ -62,7 +62,7 @@ main_src = []
|
||||||
# Add to sources either the main executable or a platform test
|
# Add to sources either the main executable or a platform test
|
||||||
if get_option('test') != ''
|
if get_option('test') != ''
|
||||||
main_src += 'tests/platform/'+get_option('test')+'.c'
|
main_src += 'tests/platform/'+get_option('test')+'.c'
|
||||||
def += {'DISABLE_KEEP_ON' : ''}
|
def += {'RUNNING_TESTSUITE' : ''}
|
||||||
else
|
else
|
||||||
main_src += 'openrtx/src/main.c'
|
main_src += 'openrtx/src/main.c'
|
||||||
endif
|
endif
|
||||||
|
|
|
||||||
|
|
@ -44,7 +44,7 @@ void platform_init()
|
||||||
|
|
||||||
gpio_setMode(PTT_SW, INPUT);
|
gpio_setMode(PTT_SW, INPUT);
|
||||||
|
|
||||||
#ifndef DISABLE_KEEP_ON
|
#ifndef RUNNING_TESTSUITE
|
||||||
gpio_setMode(PWR_SW, OUTPUT);
|
gpio_setMode(PWR_SW, OUTPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ void platform_init()
|
||||||
|
|
||||||
gpio_setMode(PTT_SW, INPUT);
|
gpio_setMode(PTT_SW, INPUT);
|
||||||
|
|
||||||
#ifndef DISABLE_KEEP_ON
|
#ifndef RUNNING_TESTSUITE
|
||||||
gpio_setMode(PWR_SW, OUTPUT);
|
gpio_setMode(PWR_SW, OUTPUT);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -46,7 +46,7 @@ void platform_init()
|
||||||
gpio_setMode(PTT_SW, INPUT_PULL_UP);
|
gpio_setMode(PTT_SW, INPUT_PULL_UP);
|
||||||
gpio_setMode(PTT_EXT, INPUT_PULL_UP);
|
gpio_setMode(PTT_EXT, INPUT_PULL_UP);
|
||||||
|
|
||||||
#ifndef DISABLE_KEEP_ON
|
#ifndef RUNNING_TESTSUITE
|
||||||
gpio_setMode(PWR_SW, OUTPUT);
|
gpio_setMode(PWR_SW, OUTPUT);
|
||||||
gpio_setPin(PWR_SW);
|
gpio_setPin(PWR_SW);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -45,7 +45,7 @@ void platform_init()
|
||||||
gpio_setMode(PTT_SW, INPUT_PULL_UP);
|
gpio_setMode(PTT_SW, INPUT_PULL_UP);
|
||||||
gpio_setMode(PTT_EXT, INPUT_PULL_UP);
|
gpio_setMode(PTT_EXT, INPUT_PULL_UP);
|
||||||
|
|
||||||
#ifndef DISABLE_KEEP_ON
|
#ifndef RUNNING_TESTSUITE
|
||||||
gpio_setMode(PWR_SW, OUTPUT);
|
gpio_setMode(PWR_SW, OUTPUT);
|
||||||
gpio_setPin(PWR_SW);
|
gpio_setPin(PWR_SW);
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue