Skip to content

Commit

Permalink
Add init/loop frame for SA/HAL
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Jun 7, 2015
1 parent 96b70c8 commit 9778429
Show file tree
Hide file tree
Showing 6 changed files with 89 additions and 1 deletion.
3 changes: 2 additions & 1 deletion firmware/src/hal/platforms/arduino/hal-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,12 @@ Copyright (C) 2015 OLogN Technologies AG

void setup()
{
// sa_main_init();
}

void loop()
{

// sa_main_loop();
}

#endif
1 change: 1 addition & 0 deletions firmware/src/hal/platforms/arduino/hal-main.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Copyright (C) 2015 OLogN Technologies AG
#define __HAL_PLATFORM_ARDUINO_MAIN_H__

#include <Arduino.h>
#include "../../../sa-main.h"
#include "hal-time-convertions.h"

#endif // __HAL_PLATFORM_ARDUINO_MAIN_H__
Expand Down
33 changes: 33 additions & 0 deletions firmware/src/hal/platforms/win-lnx-common/hal-main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

#ifdef WINLNXCOMMON

#include "hal-main.h"

int main(int argc, char *argv[])
{
// sa_main_init();

for (;;) {
// sa_main_loop();
}

return 0;
}

#endif
1 change: 1 addition & 0 deletions firmware/src/hal/platforms/win-lnx-common/hal-main.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Copyright (C) 2015 OLogN Technologies AG
#if !defined __HAL_PLATFORM_WINLNXCOMMON_MAIN_H__
#define __HAL_PLATFORM_WINLNXCOMMON_MAIN_H__

#include "../../../sa-main.h"
#include "hal-time-convertions.h"

#endif // __HAL_PLATFORM_WINLNXCOMMON_MAIN_H__
Expand Down
28 changes: 28 additions & 0 deletions firmware/src/sa-main.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

#include "sa-main.h"

void sa_main_init()
{

}

void sa_main_loop()
{

}
24 changes: 24 additions & 0 deletions firmware/src/sa-main.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
/*******************************************************************************
Copyright (C) 2015 OLogN Technologies AG
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*******************************************************************************/

#if !defined __SA_MAIN_H__
#define __SA_MAIN_H__

void sa_main_init();
void sa_main_loop();

#endif // __SA_MAIN_H__

0 comments on commit 9778429

Please sign in to comment.