mirror of
https://github.com/espressif/esp-idf.git
synced 2024-10-05 20:47:46 -04:00
Merge branch 'feature/add_ieee802154_timer' into 'master'
ieee802154: Add ieee802154 timer APIs See merge request espressif/esp-idf!15752
This commit is contained in:
commit
117bb79ec2
@ -1,16 +1,8 @@
|
||||
// Copyright 2021 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.
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
@ -321,6 +313,21 @@ bool esp_ieee802154_get_rx_when_idle(void);
|
||||
*/
|
||||
esp_err_t esp_ieee802154_energy_detect(uint32_t duration);
|
||||
|
||||
/**
|
||||
* @brief Start the one-shot timer 0 in IEEE 802.15.4 subsystem.
|
||||
*
|
||||
* @param[in] interval The timer interval in microseconds.
|
||||
*
|
||||
*/
|
||||
void esp_ieee802154_timer0_start(uint32_t interval);
|
||||
|
||||
/**
|
||||
* @brief Start the one-shot timer 1 in IEEE 802.15.4 subsystem.
|
||||
*
|
||||
* @param[in] interval The timer interval in 625 microseconds.
|
||||
*
|
||||
*/
|
||||
void esp_ieee802154_timer1_start(uint32_t interval);
|
||||
|
||||
/** Below are the events generated by IEEE 802.15.4 subsystem, which are in ISR context **/
|
||||
/**
|
||||
@ -380,6 +387,18 @@ extern void esp_ieee802154_transmit_sfd_done(uint8_t *frame);
|
||||
*/
|
||||
extern void esp_ieee802154_energy_detect_done(int8_t power);
|
||||
|
||||
/**
|
||||
* @brief The timer 0 has expired.
|
||||
*
|
||||
*/
|
||||
extern void esp_ieee802154_timer0_done(void);
|
||||
|
||||
/**
|
||||
* @brief The timer 1 has expired.
|
||||
*
|
||||
*/
|
||||
extern void esp_ieee802154_timer1_done(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -1,16 +1,8 @@
|
||||
// Copyright 2021 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.
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
|
@ -1 +1 @@
|
||||
Subproject commit 387c762a711ca70a1b86d66716736f162a52ff4a
|
||||
Subproject commit 816f6b8f87bbfededdeda68c0340aa90999507f2
|
@ -1488,8 +1488,6 @@ components/idf_test/include/esp32h2/idf_performance_target.h
|
||||
components/idf_test/include/esp32s2/idf_performance_target.h
|
||||
components/idf_test/include/esp32s3/idf_performance_target.h
|
||||
components/idf_test/include/idf_performance.h
|
||||
components/ieee802154/include/esp_ieee802154.h
|
||||
components/ieee802154/include/esp_ieee802154_types.h
|
||||
components/jsmn/include/jsmn.h
|
||||
components/jsmn/src/jsmn.c
|
||||
components/linux/include/sys/queue.h
|
||||
|
Loading…
Reference in New Issue
Block a user