Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
66f6455
Kconfig: rename deprecated POSIX API Kconfig options
tmon-nordic Mar 13, 2025
de09127
manifest: update sdk-zephyr and sdk-mcuboot revision
jfischer-no Apr 25, 2025
6ad41a9
manifest: Update sdk-connectedhomeip revision
adigie Apr 30, 2025
6ad2907
net: openthread: rpc: Replace IPPROTO_RAW with ETH_P_ALL
rlubos Mar 11, 2025
550acb6
samples: cellular: modem_shell: Replace IPPROTO_RAW with ETH_P_ALL
rlubos Mar 14, 2025
20bd208
applications: serial_lte_modem: Replace IPPROTO_RAW with ETH_P_ALL
rlubos Mar 17, 2025
c26f594
subsys: cpu_load: prefix CPU_LOAD Kconfig options with NRF
jfischer-no Apr 30, 2025
c27633b
Bluetooth: Controller: Port HCI Command buffer allocation
cvinayak Apr 30, 2025
c927b0d
subsys: dfu: dfu_target: Update for upstream changes
maxd-nordic Apr 30, 2025
dd888b9
Bluetooth: Host: Rename _bt_gatt_ccc to bt_gatt_ccc_managed_user_data
weeTike Apr 30, 2025
214ef92
Samples: Bluetooth: Refactor removed BT_ISO_CHAN_TYPE_CONNECTED
weeTike Apr 30, 2025
a33183f
Bluetooth: rpc: Change signature of bt_conn_get_remote_info
weeTike Apr 30, 2025
2ed5061
Samples: Bluetooth: Explicitly set CONFIG_BT_BUF_EVT_RX_COUNT
weeTike Apr 30, 2025
9e54123
tests: lib: hw_id: upmerge fixes
maxd-nordic Apr 30, 2025
e0a33e1
openthread: Separate OpenThread Kconfigs from L2 layer
ArekBalysNordic Apr 17, 2025
b928fef
Bluetooth: rpc: cast conn to not const
weeTike May 1, 2025
4e07fd6
Bluetooth: Services: Rename BT_GATT_CCC_INITIALIZER
weeTike May 1, 2025
689f8da
kconfig: Remove large default command buffer for 5340
weeTike May 1, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions Kconfig.nrf
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,6 @@ config MCUMGR_TRANSPORT_NETBUF_SIZE
default 2475 if MCUMGR_TRANSPORT_BT_REASSEMBLY
default 1024 if UPDATEABLE_IMAGE_NUMBER > 1

# When using HCI on the nRF5340 we need a larger command buffer.
config BT_BUF_CMD_TX_COUNT
default 10 if SOC_COMPATIBLE_NRF5340_CPUAPP || SOC_COMPATIBLE_NRF5340_CPUNET

config INIT_ARCH_HW_AT_BOOT
default y
help
Expand All @@ -104,9 +100,6 @@ config NORDIC_QSPI_NOR_FLASH_LAYOUT_PAGE_SIZE
chosen Zephyr flash devicetree node to ensure that swapping can be
performed.

config GETOPT
default n

# Temporary hack to be able to build samples and tests on the nRF51L15/nRF54L09 Eng A/nRF54L20 Eng A/nRF7120 FLPR core
config FLASH_BASE_ADDRESS
hex
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ CONFIG_BT_NUS=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_SMP=y
CONFIG_BT_CTLR_RX_BUFFERS=10
CONFIG_BT_BUF_EVT_RX_COUNT=11
CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ CONFIG_BT_BUF_ACL_RX_SIZE=251
CONFIG_BT_NUS=y
CONFIG_BT_GATT_CLIENT=y
CONFIG_BT_SMP=y
CONFIG_BT_BUF_EVT_RX_COUNT=11
CONFIG_BT_BUF_ACL_TX_COUNT=10
CONFIG_BT_BUF_ACL_TX_SIZE=251
CONFIG_BT_CTLR_DATA_LENGTH_MAX=251
Expand Down
4 changes: 2 additions & 2 deletions applications/nrf_desktop/doc/cpu_meas.rst
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ Configuration
*************

To enable this module, use the :ref:`CONFIG_DESKTOP_CPU_MEAS_ENABLE <config_desktop_app_options>` Kconfig option.
This option selects the :kconfig:option:`CONFIG_CPU_LOAD` option.
The :kconfig:option:`CONFIG_CPU_LOAD` option enables the :ref:`cpu_load` library that is used to perform the measurements.
This option selects the :kconfig:option:`CONFIG_NRF_CPU_LOAD` option.
The :kconfig:option:`CONFIG_NRF_CPU_LOAD` option enables the :ref:`cpu_load` library that is used to perform the measurements.

Set the time between subsequent CPU load measurements, in milliseconds, using the :ref:`CONFIG_DESKTOP_CPU_MEAS_PERIOD <config_desktop_app_options>` option.

Expand Down
2 changes: 1 addition & 1 deletion applications/nrf_desktop/src/modules/cpu_meas.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ static void init(void)
/* When this option is enabled, CPU load measurement is periodically
* resetted. Only cpu_meas module should reset the measurement.
*/
BUILD_ASSERT(!IS_ENABLED(CONFIG_CPU_LOAD_LOG_PERIODIC));
BUILD_ASSERT(!IS_ENABLED(CONFIG_NRF_CPU_LOAD_LOG_PERIODIC));

static bool initialized;

Expand Down
21 changes: 18 additions & 3 deletions applications/serial_lte_modem/src/slm_ppp.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#include <modem/pdn.h>
#include <zephyr/modem/ppp.h>
#include <zephyr/modem/backend/uart.h>
#include <zephyr/net/ethernet.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/ppp.h>
#include <zephyr/posix/sys/socket.h>
Expand Down Expand Up @@ -99,16 +100,17 @@ static bool open_ppp_sockets(void)
{
int ret;

ppp_fds[ZEPHYR_FD_IDX] = zsock_socket(AF_PACKET, SOCK_RAW | SOCK_NATIVE,
htons(IPPROTO_RAW));
ppp_fds[ZEPHYR_FD_IDX] = zsock_socket(AF_PACKET, SOCK_DGRAM | SOCK_NATIVE,
htons(ETH_P_ALL));
if (ppp_fds[ZEPHYR_FD_IDX] < 0) {
LOG_ERR("Zephyr socket creation failed (%d).", errno);
return false;
}

ppp_zephyr_dst_addr = (struct sockaddr_ll){
.sll_family = AF_PACKET,
.sll_ifindex = net_if_get_by_iface(ppp_iface)
.sll_ifindex = net_if_get_by_iface(ppp_iface),
.sll_protocol = htons(ETH_P_ALL),
};
ret = zsock_bind(ppp_fds[ZEPHYR_FD_IDX],
(const struct sockaddr *)&ppp_zephyr_dst_addr, sizeof(ppp_zephyr_dst_addr));
Expand Down Expand Up @@ -625,6 +627,19 @@ static void ppp_data_passing_thread(void*, void*, void*)
void *dst_addr = (dst == MODEM_FD_IDX) ? NULL : &ppp_zephyr_dst_addr;
socklen_t addrlen = (dst == MODEM_FD_IDX) ? 0 : sizeof(ppp_zephyr_dst_addr);

if (dst == ZEPHYR_FD_IDX) {
uint8_t type = ppp_data_buf[0] & 0xf0;

if (type == 0x60) {
ppp_zephyr_dst_addr.sll_protocol = htons(ETH_P_IPV6);
} else if (type == 0x40) {
ppp_zephyr_dst_addr.sll_protocol = htons(ETH_P_IP);
} else {
/* Not IP traffic, ignore. */
continue;
}
}

send_ret =
zsock_sendto(fds[dst].fd, ppp_data_buf, len, 0, dst_addr, addrlen);
if (send_ret == -1) {
Expand Down
2 changes: 1 addition & 1 deletion doc/nrf/libraries/debug/cpu_load.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ To precisely measure the sleep period, the module requires the POWER peripheral
The events are connected to a TIMER peripheral using PPI/DPPI.

The sleep period is measured using the TIMER peripheral, which is clocked by default by the high frequency clock.
Alternatively, it can be clocked using low frequency clock (see :kconfig:option:`CONFIG_CPU_LOAD_ALIGNED_CLOCKS`).
Alternatively, it can be clocked using low frequency clock (see :kconfig:option:`CONFIG_NRF_CPU_LOAD_ALIGNED_CLOCKS`).
It is then compared against the system clock, which is clocked by the low frequency clock.
The accuracy of measurements depends on the accuracy of the given clock sources.

Expand Down
2 changes: 1 addition & 1 deletion ext/curl/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ config NRF_CURL_PROMPTLESS

config NRF_CURL
bool "Curl" if !NRF_CURL_PROMPTLESS
depends on POSIX_API && !PTHREAD_IPC && NEWLIB_LIBC
depends on POSIX_API && !POSIX_THREADS && NEWLIB_LIBC
imply NEWLIB_LIBC_FLOAT_PRINTF
help
Curl support for NRF.
Expand Down
2 changes: 1 addition & 1 deletion ext/iperf3/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ config NRF_IPERF3_PROMPTLESS

config NRF_IPERF3
bool "Iperf3 NRF integration" if !NRF_IPERF3_PROMPTLESS
depends on POSIX_API && !PTHREAD_IPC && NEWLIB_LIBC && CJSON_LIB
depends on POSIX_API && !POSIX_THREADS && NEWLIB_LIBC && CJSON_LIB
help
Enable Iperf3 NRF integration

Expand Down
4 changes: 2 additions & 2 deletions include/bluetooth/gatt_pool.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ extern "C" {
#define BT_GATT_POOL_CCC(_gp, _ccc, _ccc_changed, _perm) \
do { \
int _ret; \
_ccc = (struct _bt_gatt_ccc)BT_GATT_CCC_INITIALIZER(\
_ccc = (struct bt_gatt_ccc_managed_user_data)BT_GATT_CCC_MANAGED_USER_DATA_INIT(\
_ccc_changed, NULL, NULL); \
_ret = bt_gatt_pool_ccc_alloc(_gp, &_ccc, _perm); \
__ASSERT_NO_MSG(!_ret); \
Expand Down Expand Up @@ -176,7 +176,7 @@ int bt_gatt_pool_desc_alloc(struct bt_gatt_pool *gp,
* @return 0 or negative error code.
*/
int bt_gatt_pool_ccc_alloc(struct bt_gatt_pool *gp,
struct _bt_gatt_ccc *ccc,
struct bt_gatt_ccc_managed_user_data *ccc,
uint8_t perm);

/** @brief Free the whole dynamically created GATT service.
Expand Down
6 changes: 3 additions & 3 deletions include/bluetooth/services/hids.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ typedef void (*bt_hids_rep_handler_t) (struct bt_hids_rep *rep,
*/
struct bt_hids_inp_rep {
/** CCC descriptor. */
struct _bt_gatt_ccc ccc;
struct bt_gatt_ccc_managed_user_data ccc;

/** Report ID defined in the HIDS Report Map. */
uint8_t id;
Expand Down Expand Up @@ -288,7 +288,7 @@ struct bt_hids_outp_feat_rep {
*/
struct bt_hids_boot_mouse_inp_rep {
/** CCC descriptor. */
struct _bt_gatt_ccc ccc;
struct bt_gatt_ccc_managed_user_data ccc;

/** Index in the service attribute array. */
uint8_t att_ind;
Expand All @@ -301,7 +301,7 @@ struct bt_hids_boot_mouse_inp_rep {
*/
struct bt_hids_boot_kb_inp_rep {
/** CCC descriptor. */
struct _bt_gatt_ccc ccc;
struct bt_gatt_ccc_managed_user_data ccc;

/** Index in the service attribute array. */
uint8_t att_ind;
Expand Down
Loading
Loading