This repository has been archived by the owner on Jul 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: cert-provsioning: add nRF52840
Add board files and documentation to support nRF52840dk in this sample. Signed-off-by: Mike Szczys <[email protected]>
- Loading branch information
Showing
3 changed files
with
103 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
samples/certificate_provisioning/boards/nrf52840dk_nrf52840.conf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# WiFi | ||
CONFIG_WIFI=y | ||
CONFIG_WIFI_ESP_AT=y | ||
CONFIG_WIFI_ESP_AT_MDM_RX_BUF_COUNT=40 | ||
|
||
CONFIG_NET_L2_WIFI_SHELL=y | ||
CONFIG_GOLIOTH_SAMPLE_WIFI=y | ||
|
||
# General config | ||
CONFIG_HEAP_MEM_POOL_SIZE=4096 | ||
|
||
# MCU Manager | ||
CONFIG_MCUBOOT_BOOTUTIL_LIB=y | ||
CONFIG_MCUMGR_MGMT_NOTIFICATION_HOOKS=y | ||
CONFIG_MCUMGR_GRP_FS_FILE_ACCESS_HOOK=y | ||
|
||
# Allow reboot from shell after loading certificates | ||
CONFIG_REBOOT=y |
31 changes: 31 additions & 0 deletions
31
samples/certificate_provisioning/boards/nrf52840dk_nrf52840.overlay
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (C) 2021 Golioth, Inc. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
&uart1_default { | ||
cts-rts { | ||
psels = <NRF_PSEL(UART_CTS, 1, 3)>, | ||
<NRF_PSEL(UART_RTS, 1, 4)>; | ||
}; | ||
}; | ||
|
||
&uart1_sleep { | ||
cts-rts { | ||
psels = <NRF_PSEL(UART_CTS, 1, 3)>, | ||
<NRF_PSEL(UART_RTS, 1, 4)>; | ||
low-power-enable; | ||
}; | ||
}; | ||
|
||
&uart1 { | ||
status = "okay"; | ||
hw-flow-control; | ||
|
||
esp_wifi: esp-wifi { | ||
compatible = "espressif,esp-at"; | ||
power-gpios = <&gpio1 5 (GPIO_ACTIVE_HIGH | GPIO_OPEN_DRAIN)>; | ||
status = "okay"; | ||
}; | ||
}; |