mirror of
https://github.com/espressif/ESP8266_RTOS_SDK.git
synced 2025-05-22 01:27:11 +08:00
feat(driver): Update to use apache license
This commit is contained in:
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
#include "freertos/portmacro.h"
|
#include "freertos/portmacro.h"
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
#include "freertos/portmacro.h"
|
#include "freertos/portmacro.h"
|
||||||
|
@ -1,13 +1,17 @@
|
|||||||
/******************************************************************************
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* Copyright 2013-2014 Espressif Systems (Wuxi)
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* FileName: i2c_master.c
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Description: i2c master API
|
//
|
||||||
*
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* Modification history:
|
//
|
||||||
* 2014/3/12, v1.0 create this file.
|
// 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.
|
||||||
|
|
||||||
#include "c_types.h"
|
#include "c_types.h"
|
||||||
#include "esp8266/ets_sys.h"
|
#include "esp8266/ets_sys.h"
|
||||||
#include "esp_misc.h"
|
#include "esp_misc.h"
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
/**
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* spi_interface.c
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Defines and Macros for the SPI.
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Copyright @ 2015 Espressif System Co., Ltd.
|
//
|
||||||
* All Rights Reserved.
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
//
|
||||||
* Redistribution and use in source and binary forms, with or without
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* modification, are NOT permitted except as agreed by
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* Espressif System Co., Ltd.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
// limitations under the License.
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
* @file spi_interface.c
|
* @file spi_interface.c
|
||||||
* @brief Defines and Macros for the SPI.
|
* @brief Defines and Macros for the SPI.
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "esp_common.h"
|
#include "esp_common.h"
|
||||||
|
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __GPIO_H__
|
#ifndef __GPIO_H__
|
||||||
#define __GPIO_H__
|
#define __GPIO_H__
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __HW_TIMER_H__
|
#ifndef __HW_TIMER_H__
|
||||||
#define __HW_TIMER_H__
|
#define __HW_TIMER_H__
|
||||||
|
@ -1,3 +1,17 @@
|
|||||||
|
// Copyright 2018 Espressif 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.
|
||||||
|
|
||||||
#ifndef __I2C_MASTER_H__
|
#ifndef __I2C_MASTER_H__
|
||||||
#define __I2C_MASTER_H__
|
#define __I2C_MASTER_H__
|
||||||
|
|
||||||
|
@ -1,19 +1,17 @@
|
|||||||
/**
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* spi_interface.h
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Defines and Macros for the SPI.
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Copyright @ 2015 Espressif System Co., Ltd.
|
//
|
||||||
* All Rights Reserved.
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
*
|
//
|
||||||
* Redistribution and use in source and binary forms, with or without
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* modification, are NOT permitted except as agreed by
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* Espressif System Co., Ltd.
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* Unless required by applicable law or agreed to in writing, software
|
// limitations under the License.
|
||||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
*/
|
|
||||||
/**
|
/**
|
||||||
* @file spi_interface.h
|
* @file spi_interface.h
|
||||||
* @brief Defines and Macros for the SPI.
|
* @brief Defines and Macros for the SPI.
|
||||||
|
@ -1,7 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* Copyright (c) 2010 - 2011 Espressif System
|
//
|
||||||
*
|
// 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 SPI_REGISTER_H_INCLUDED
|
#ifndef SPI_REGISTER_H_INCLUDED
|
||||||
#define SPI_REGISTER_H_INCLUDED
|
#define SPI_REGISTER_H_INCLUDED
|
||||||
|
@ -1,26 +1,16 @@
|
|||||||
/*
|
// Copyright 2018 Espressif Systems (Shanghai) PTE LTD
|
||||||
* ESPRSSIF MIT License
|
//
|
||||||
*
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* Copyright (c) 2015 <ESPRESSIF SYSTEMS (SHANGHAI) PTE LTD>
|
// you may not use this file except in compliance with the License.
|
||||||
*
|
// You may obtain a copy of the License at
|
||||||
* Permission is hereby granted for use on ESPRESSIF SYSTEMS ESP8266 only, in which case,
|
//
|
||||||
* it is free of charge, to any person obtaining a copy of this software and associated
|
// http://www.apache.org/licenses/LICENSE-2.0
|
||||||
* documentation files (the "Software"), to deal in the Software without restriction, including
|
//
|
||||||
* without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
// Unless required by applicable law or agreed to in writing, software
|
||||||
* and/or sell copies of the Software, and to permit persons to whom the Software is furnished
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
||||||
* to do so, subject to the following conditions:
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||||
*
|
// See the License for the specific language governing permissions and
|
||||||
* The above copyright notice and this permission notice shall be included in all copies or
|
// limitations under the License.
|
||||||
* substantial portions of the Software.
|
|
||||||
*
|
|
||||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
||||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
|
|
||||||
* FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
|
|
||||||
* COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
|
|
||||||
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
|
||||||
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef __UART_H__
|
#ifndef __UART_H__
|
||||||
#define __UART_H__
|
#define __UART_H__
|
||||||
|
Reference in New Issue
Block a user