Jerry is now split to several components: core, libc, plugins.
The components are build independently and then are linked with main module corresponding to target platform. Core is supposed to be platform-independent, while libc and plugins are dependent on specific architecture / platform. The commit disables unit tests building and running during precommit. That is supposed to be fixed in a subsequent commit. Also, the commit disables building and running valgrind targets during precommit. Build is supposed to be turned on by an option that should be introduced later. Valgrind-checked runs are supposed to be performed in asynchronous mode.
This commit is contained in:
@@ -15,9 +15,10 @@
|
||||
|
||||
#pragma GCC optimize "O0"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "actuators.h"
|
||||
#include "common-io.h"
|
||||
#include "jerry-libc.h"
|
||||
|
||||
#ifdef __TARGET_HOST
|
||||
/**
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#ifndef ACTUATORS_H
|
||||
#define ACTUATORS_H
|
||||
|
||||
#include "jrt.h"
|
||||
#include <stdint.h>
|
||||
|
||||
void led_toggle (uint32_t);
|
||||
void led_on (uint32_t);
|
||||
|
||||
@@ -15,34 +15,43 @@
|
||||
|
||||
#pragma GCC optimize "O0"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include "actuators.h"
|
||||
#include "common-io.h"
|
||||
#include "jerry-libc.h"
|
||||
|
||||
#include "mcu-headers.h"
|
||||
|
||||
int
|
||||
digital_read (uint32_t arg1 __unused, uint32_t arg2 __unused)
|
||||
digital_read (uint32_t arg1, uint32_t arg2)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ("Digital read operation is not implemented.");
|
||||
(void) arg1;
|
||||
(void) arg2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
digital_write (uint32_t arg1 __unused, uint32_t arg2 __unused)
|
||||
digital_write (uint32_t arg1, uint32_t arg2)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ("Digital write operation is not implemented.");
|
||||
(void) arg1;
|
||||
(void) arg2;
|
||||
}
|
||||
|
||||
int
|
||||
analog_read (uint32_t arg1 __unused, uint32_t arg2 __unused)
|
||||
analog_read (uint32_t arg1, uint32_t arg2)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ("Analog read operation is not implemented.");
|
||||
(void) arg1;
|
||||
(void) arg2;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
void
|
||||
analog_write (uint32_t arg1 __unused, uint32_t arg2 __unused)
|
||||
analog_write (uint32_t arg1, uint32_t arg2)
|
||||
{
|
||||
JERRY_UNIMPLEMENTED ("Analog write operation is not implemented.");
|
||||
(void) arg1;
|
||||
(void) arg2;
|
||||
}
|
||||
|
||||
#ifdef __TARGET_HOST
|
||||
|
||||
@@ -16,7 +16,7 @@
|
||||
#ifndef COMMON_IO_H
|
||||
#define COMMON_IO_H
|
||||
|
||||
#include "jrt.h"
|
||||
#include <stdint.h>
|
||||
|
||||
int digital_read (uint32_t, uint32_t);
|
||||
void digital_write (uint32_t, uint32_t);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2014 Samsung Electronics Co., Ltd.
|
||||
/* Copyright 2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,6 +13,16 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#pragma GCC optimize "O0"
|
||||
#include "actuators.h"
|
||||
#include "common-io.h"
|
||||
#include "init.h"
|
||||
|
||||
#include "sensors.h"
|
||||
void
|
||||
plugin_device_stm_init (void)
|
||||
{
|
||||
#if defined (__TARGET_MCU_STM32F3) || defined (__TARGET_MCU_STM32F4)
|
||||
initialize_sys_tick ();
|
||||
initialize_leds ();
|
||||
initialize_timer ();
|
||||
#endif /* __TARGET_MCU_STM32F3 || __TARGET_MCU_STM32F4 */
|
||||
} /* plugin_device_stm_init */
|
||||
@@ -1,4 +1,4 @@
|
||||
/* Copyright 2014-2015 Samsung Electronics Co., Ltd.
|
||||
/* Copyright 2015 Samsung Electronics Co., Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -13,9 +13,9 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef SENSORS_H
|
||||
#define SENSORS_H
|
||||
#ifndef INIT_H
|
||||
#define INIT_H
|
||||
|
||||
#include "jrt.h"
|
||||
extern void plugin_device_stm_init (void);
|
||||
|
||||
#endif /* SENSORS_H */
|
||||
#endif /* INIT_H */
|
||||
Reference in New Issue
Block a user