Ruben Ayrapetyan 718bbe26f9 Refinement of project structure.
- components renaming and moving:
   - liballocator -> mem;
   - libcoreint -> vm;
   - libecmaobjects -> ecma/base;
   - libecmaoperations -> ecma/operations;
   - libecmabuiltins -> ecma/builtins;
   - libjsparser -> parser/js;
   - libintstructs -> parser/collections;
   - liboptimizer -> parser/js;
   - libperipherals -> ../plugins/lib_device_stm;
   - libruntime -> jrt;
 - generated.h now is created as intermediate during build;
 - benchmarks -> tests/benchmarks;
 - docs -> documentation;
 - demo-applications removed (loop_demo.js -> tests/blinky.js).
2015-02-10 19:00:32 +03:00

45 lines
1.1 KiB
C

/* Copyright 2014-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.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef COMMON_IO_H
#define COMMON_IO_H
#include "jrt.h"
int digital_read (uint32_t, uint32_t);
void digital_write (uint32_t, uint32_t);
int analog_read (uint32_t, uint32_t);
void analog_write (uint32_t, uint32_t);
void wait_ms (uint32_t);
#ifdef __TARGET_MCU
void fake_exit (void);
void initialize_timer (void);
void initialize_sys_tick (void);
void SysTick_Handler (void);
void time_tick_decrement (void);
void wait_1ms (void);
void set_sys_tick_counter (uint32_t);
uint32_t get_sys_tick_counter (void);
#endif
#endif /* COMMON_IO_H */