diff options
Diffstat (limited to 'targets/baremetal-sdk/esp8266-rtos-sdk/include')
3 files changed, 86 insertions, 0 deletions
diff --git a/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_extapi.h b/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_extapi.h new file mode 100644 index 00000000..5c0c4e5b --- /dev/null +++ b/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_extapi.h @@ -0,0 +1,30 @@ +/* Copyright JS Foundation and other contributors, http://js.foundation + * + * 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 __JERRY_EXTAPI_H__ +#define __JERRY_EXTAPI_H__ + +#define JERRY_STANDALONE_EXIT_CODE_OK (0) +#define JERRY_STANDALONE_EXIT_CODE_FAIL (1) + +#include "jerryscript.h" + +JERRY_C_API_BEGIN + +void js_register_functions (void); + +JERRY_C_API_END + +#endif /* __JERRY_EXTAPI_H__ */ diff --git a/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_run.h b/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_run.h new file mode 100644 index 00000000..51bc136c --- /dev/null +++ b/targets/baremetal-sdk/esp8266-rtos-sdk/include/jerry_run.h @@ -0,0 +1,32 @@ +/* Copyright JS Foundation and other contributors, http://js.foundation + * + * 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 __JERRY_RUN_H__ +#define __JERRY_RUN_H__ + +#include <stdint.h> + +#include "jerryscript.h" + +JERRY_C_API_BEGIN + +void js_entry (void); +int js_eval (const char *source_p, const size_t source_size); +int js_loop (uint32_t ticknow); +void js_exit (void); + +JERRY_C_API_END + +#endif /* __JERRY_RUN_H__ */ diff --git a/targets/baremetal-sdk/esp8266-rtos-sdk/include/user_config.h b/targets/baremetal-sdk/esp8266-rtos-sdk/include/user_config.h new file mode 100644 index 00000000..dd948fe5 --- /dev/null +++ b/targets/baremetal-sdk/esp8266-rtos-sdk/include/user_config.h @@ -0,0 +1,24 @@ +/* Copyright JS Foundation and other contributors, http://js.foundation + * + * 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 __USER_CONFIG_H__ +#define __USER_CONFIG_H__ + + +/* number of stack items, x4 for bytes */ +#define JERRY_STACK_SIZE 2000 + + +#endif /* __USER_CONFIG_H__ */ |