add initial FreeRTOS support

git-svn-id: svn://db.shs.com.ru/pip@685 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
2019-02-05 00:53:14 +00:00
parent 763de789b0
commit 3721ec2e3d
4 changed files with 13 additions and 9 deletions

View File

@@ -17,8 +17,12 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "pisystemtests.h"
#include "piconfig.h"
#ifndef PIP_FREERTOS
# include "piconfig.h"
#endif
namespace PISystemTests {
@@ -32,7 +36,7 @@ namespace PISystemTests {
PISystemTests::PISystemTestReader::PISystemTestReader() {
#ifndef WINDOWS
#if !defined(WINDOWS) && !defined(FREERTOS)
PIConfig conf(PIStringAscii("/etc/pip.conf"), PIIODevice::ReadOnly);
//conf.setReopenEnabled(false);
time_resolution_ns = conf.getValue(PIStringAscii("time_resolution_ns"), 1);
@@ -40,3 +44,5 @@ PISystemTests::PISystemTestReader::PISystemTestReader() {
usleep_offset_us = conf.getValue(PIStringAscii("usleep_offset_us"), 60);
#endif
}