add some code
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
// Copyright 2018-2020 spressif Systems (Shanghai) PTE 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.
|
||||
|
||||
// This file include defenitions that are emulate esp-idf error codes
|
||||
|
||||
#ifndef _esp_attr_h_
|
||||
#define _esp_attr_h_
|
||||
|
||||
|
||||
#endif // _esp_attr_h_
|
||||
@@ -0,0 +1,29 @@
|
||||
// Copyright 2018-2020 spressif Systems (Shanghai) PTE 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.
|
||||
|
||||
// This file include defenitions that are emulate esp-idf error codes
|
||||
|
||||
#ifndef _esp_err_h_
|
||||
#define _esp_err_h_
|
||||
|
||||
#include <stdlib.h>
|
||||
typedef int esp_err_t;
|
||||
|
||||
#define ESP_OK 0
|
||||
|
||||
#ifndef M_PI
|
||||
#define M_PI 3.14159265358979323846
|
||||
#endif // M_PI
|
||||
|
||||
#endif // _esp_err_h_
|
||||
@@ -0,0 +1,24 @@
|
||||
// Copyright 2018-2020 spressif Systems (Shanghai) PTE 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.
|
||||
|
||||
// This file include defenitions that are emulate esp-idf error codes
|
||||
|
||||
#ifndef _esp_log_h_
|
||||
#define _esp_log_h_
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#define ESP_LOGD
|
||||
|
||||
#endif // _esp_log_h_
|
||||
@@ -0,0 +1,4 @@
|
||||
#ifndef _sdkconfig_h_
|
||||
#define _sdkconfig_h_
|
||||
|
||||
#endif // _sdkconfig_h_
|
||||
Reference in New Issue
Block a user