Espruino/targets/esp32/jswrap_esp32.h
2017-04-04 18:39:24 +12:00

27 lines
976 B
C

/*
* This file is part of Espruino, a JavaScript interpreter for Microcontrollers
*
* Copyright (C) 2015 Gordon Williams <gw@pur3.co.uk>
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* ----------------------------------------------------------------------------
* This file is designed to be parsed during the build process
*
* Contains ESP32 board specific function definitions.
* ----------------------------------------------------------------------------
*/
#ifndef TARGETS_ES32_JSWRAP_ESP32_H_
#define TARGETS_ESP32_JSWRAP_ESP32_H_
#include "jsvar.h"
#include "jspin.h"
//===== ESP32 Library
JsVar *jswrap_ESP32_getState();
JsVar *jswrap_ESP32_setBoot(JsVar *jsPartitionName);
void jswrap_ESP32_reboot();
void jswrap_ESP32_setAtten(Pin pin,int atten);
#endif /* TARGETS_ESP32_JSWRAP_ESP32_H_ */