Porównaj commity

...

5 Commity

Autor SHA1 Wiadomość Data
vecais-dumais-laacis e71463a71f
Merge 4b7143e845 into 2fd087b246 2024-04-24 05:58:46 +03:00
Jiang Jiang Jian 2fd087b246 Merge branch 'fix/ieee802154_include_header_issue_v5.1' into 'release/v5.1'
Fix/ieee802154 include header issue (backport v5.1)

See merge request espressif/esp-idf!30331
2024-04-22 15:40:14 +08:00
xiaqilin f0d0463a93 fix(ieee802154): fix ieee802154 next operation acquire lock in interrupt 2024-04-18 11:34:25 +08:00
xiaqilin 4528d2299d fix(ieee802154): fix ieee802154 include header file issue and unused value issue 2024-04-18 11:33:51 +08:00
vdl 4b7143e845 allows provisioner node to use esp_ble_mesh_server_model_send_msg 2023-10-08 18:17:14 +03:00
3 zmienionych plików z 13 dodań i 5 usunięć

Wyświetl plik

@ -77,6 +77,10 @@ uint8_t bt_mesh_get_device_role(struct bt_mesh_model *model, bool srv_send)
bt_mesh_client_user_data_t *client = NULL; bt_mesh_client_user_data_t *client = NULL;
if (srv_send) { if (srv_send) {
if (IS_ENABLED(CONFIG_BLE_MESH_PROVISIONER) && bt_mesh_is_provisioner_en()) {
BT_DBG("Message is sent by a provisioner(server) model");
return PROVISIONER;
}
BT_DBG("Message is sent by a server model"); BT_DBG("Message is sent by a server model");
return NODE; return NODE;
} }

Wyświetl plik

@ -362,7 +362,9 @@ static IRAM_ATTR void next_operation(void)
enable_rx(); enable_rx();
} else { } else {
ieee802154_set_state(IEEE802154_STATE_IDLE); ieee802154_set_state(IEEE802154_STATE_IDLE);
#if !CONFIG_IEEE802154_TEST
ieee802154_sleep(); ieee802154_sleep();
#endif
} }
} }
} }

Wyświetl plik

@ -8,6 +8,8 @@
#include <stdint.h> #include <stdint.h>
#include <stdbool.h> #include <stdbool.h>
#include "sdkconfig.h"
#include "soc/soc_caps.h"
#include "esp_ieee802154_dev.h" #include "esp_ieee802154_dev.h"
#include "hal/ieee802154_ll.h" #include "hal/ieee802154_ll.h"
#include "esp_timer.h" #include "esp_timer.h"
@ -172,7 +174,7 @@ extern ieee802154_probe_info_t g_ieee802154_probe;
*/ */
void ieee802154_assert_print(void); void ieee802154_assert_print(void);
#define IEEE802154_ASSERT(a) do { \ #define IEEE802154_ASSERT(a) do { \
if(!(a)) { \ if(unlikely(!(a))) { \
ieee802154_assert_print(); \ ieee802154_assert_print(); \
assert(a); \ assert(a); \
} \ } \
@ -280,9 +282,9 @@ void ieee802154_set_txrx_pti(ieee802154_txrx_scene_t txrx_scene);
#endif // !CONFIG_IEEE802154_TEST && CONFIG_ESP_COEX_SW_COEXIST_ENABLE || CONFIG_EXTERNAL_COEX_ENABLE #endif // !CONFIG_IEEE802154_TEST && CONFIG_ESP_COEX_SW_COEXIST_ENABLE || CONFIG_EXTERNAL_COEX_ENABLE
/** /**
* @brief Convert the frequence to the index of channel. * @brief Convert the frequency to the index of channel.
* *
* @param[in] freq The frequence where the radio is processing. * @param[in] freq The frequency where the radio is processing.
* *
* @return * @return
* The channel index. * The channel index.
@ -291,12 +293,12 @@ void ieee802154_set_txrx_pti(ieee802154_txrx_scene_t txrx_scene);
uint8_t ieee802154_freq_to_channel(uint8_t freq); uint8_t ieee802154_freq_to_channel(uint8_t freq);
/** /**
* @brief Convert the index of channel to the frequence. * @brief Convert the index of channel to the frequency.
* *
* @param[in] channel The index of channel where the radio is processing. * @param[in] channel The index of channel where the radio is processing.
* *
* @return * @return
* The frequence. * The frequency.
* *
*/ */
uint8_t ieee802154_channel_to_freq(uint8_t channel); uint8_t ieee802154_channel_to_freq(uint8_t channel);