Skip to content

Commit

Permalink
samples: cellular: at_client sample nrf92
Browse files Browse the repository at this point in the history
Support at_client sample on nrf9280.

Signed-off-by: Andreas Moltumyr <[email protected]>
  • Loading branch information
anhmolt committed Aug 26, 2024
1 parent 64aca26 commit 91eaa58
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
CONFIG_NRFS_MRAM_SERVICE_ENABLED=n
CONFIG_DCACHE=n
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/* Specify uart to use for at_host */
/ {
chosen {
ncs,at-host-uart = &uart136;
};
};

/* Ensure access to shared memory */
&shared_ram20_region {
compatible = "nordic,owned-memory";
perm-read;
perm-write;
};

&pinctrl {
uart136_default {
group1 {
psels = <NRF_PSEL(UART_TX, 0, 4)>;
};
};
};
5 changes: 5 additions & 0 deletions samples/cellular/at_client/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
#include <stdio.h>
#include <string.h>
#include <modem/nrf_modem_lib.h>

#ifndef CONFIG_SOC_SERIES_NRF92X
#include <zephyr/drivers/uart.h>
#include <zephyr/drivers/clock_control.h>
#include <zephyr/drivers/clock_control/nrf_clock_control.h>
Expand All @@ -22,6 +24,7 @@ void enable_xtal(void)
sys_notify_init_spinwait(&cli.notify);
(void)onoff_request(clk_mgr, &cli);
}
#endif /* CONFIG_SOC_SERIES_NRF92X */

int main(void)
{
Expand All @@ -34,7 +37,9 @@ int main(void)
printk("Modem library initialization failed, error: %d\n", err);
return 0;
}
#ifndef CONFIG_SOC_SERIES_NRF92X
enable_xtal();
#endif /* CONFIG_SOC_SERIES_NRF92X */
printk("Ready\n");

return 0;
Expand Down

0 comments on commit 91eaa58

Please sign in to comment.