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

46 lines
1.4 KiB
C

/* Copyright 2014 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 MCU_HEADERS_H
#define MCU_HEADERS_H
#ifdef __TARGET_MCU
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wpedantic"
#pragma GCC diagnostic ignored "-Wsign-conversion"
# ifdef __TARGET_MCU_STM32F4
# include "stm32f4xx_conf.h"
# include "stm32f4xx.h"
# define LED_GREEN 0
# define LED_ORANGE 1
# define LED_RED 2
# define LED_BLUE 3
# elif defined (__TARGET_MCU_STM32F3)
# include "stm32f30x_conf.h"
# include "stm32f30x.h"
# define LED_GREEN 0
# define LED_ORANGE 1
# define LED_RED 2
# define LED_BLUE 3
# else /* !__TARGET_MCU_STM32F4 && !__TARGET_MCU_STM32F3 */
# error "!__TARGET_MCU_STM32F4 && !__TARGET_MCU_STM32F3"
# endif /* !__TARGET_MCU_STM32F4 && !__TARGET_MCU_STM32F3 */
#pragma GCC diagnostic pop
#endif /* __TARGET_MCU */
#endif /* !MCU_HEADERS_H */