add initial FreeRTOS support
git-svn-id: svn://db.shs.com.ru/pip@685 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user