add a few overlays
This commit is contained in:
21
bl5340_dvk_nrf5340_cpuapp.overlay
Normal file
21
bl5340_dvk_nrf5340_cpuapp.overlay
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.
|
||||||
|
|
||||||
|
// You can also use the buttons in the sidebar to perform actions on nodes.
|
||||||
|
// Actions currently available include:
|
||||||
|
|
||||||
|
// * Enabling / disabling the node
|
||||||
|
// * Adding the bus to a bus
|
||||||
|
// * Removing the node
|
||||||
|
// * Connecting ADC channels
|
||||||
|
|
||||||
|
// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
|
||||||
|
// You can also visit the nRF DeviceTree extension documentation at https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/ncs_configure_app.html#devicetree-support-in-the-extension
|
||||||
|
|
||||||
|
&uart0_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 0, 8)>,
|
||||||
|
<NRF_PSEL(UART_RX, 0, 13)>,
|
||||||
|
<NRF_PSEL(UART_RTS, 0, 19)>,
|
||||||
|
<NRF_PSEL(UART_CTS, 0, 21)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
18
nrf5340_audio_dk_nrf5340_cpuapp.overlay
Normal file
18
nrf5340_audio_dk_nrf5340_cpuapp.overlay
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
// To get started, press Ctrl+Space to bring up the completion menu and view the available nodes.
|
||||||
|
|
||||||
|
// You can also use the buttons in the sidebar to perform actions on nodes.
|
||||||
|
// Actions currently available include:
|
||||||
|
|
||||||
|
// * Enabling / disabling the node
|
||||||
|
// * Adding the bus to a bus
|
||||||
|
// * Removing the node
|
||||||
|
// * Connecting ADC channels
|
||||||
|
|
||||||
|
// For more help, browse the DeviceTree documentation at https://docs.zephyrproject.org/latest/guides/dts/index.html
|
||||||
|
// You can also visit the nRF DeviceTree extension documentation at https://docs.nordicsemi.com/bundle/nrf-connect-vscode/page/guides/ncs_configure_app.html#devicetree-support-in-the-extension
|
||||||
|
|
||||||
|
&uart0_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 0, 11)>, <NRF_PSEL(UART_RTS, 1, 7)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
15
nrf5340dk_nrf5340_cpuapp.overlay
Normal file
15
nrf5340dk_nrf5340_cpuapp.overlay
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
/* 1. We overwrite the pin control helper node */
|
||||||
|
&uart0_default {
|
||||||
|
group1 {
|
||||||
|
psels = <NRF_PSEL(UART_TX, 0, 3)>,
|
||||||
|
<NRF_PSEL(UART_RX, 0, 11)>;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
/* 2. Apply it to the UART peripheral */
|
||||||
|
&uart0 {
|
||||||
|
status = "okay";
|
||||||
|
pinctrl-0 = <&uart0_default>;
|
||||||
|
pinctrl-names = "default";
|
||||||
|
current-speed = <115200>;
|
||||||
|
};
|
||||||
6
prj.conf
6
prj.conf
@@ -1,2 +1,8 @@
|
|||||||
CONFIG_SERIAL=y
|
CONFIG_SERIAL=y
|
||||||
CONFIG_UART_INTERRUPT_DRIVEN=y
|
CONFIG_UART_INTERRUPT_DRIVEN=y
|
||||||
|
|
||||||
|
# use internal 32kHz oscillator
|
||||||
|
CONFIG_CLOCK_CONTROL_NRF_K32SRC_RC=y
|
||||||
|
# select desired accuracy (more calibrations would be nececcary if smaller) - I think the 32KHz oscillator is only needed for receive
|
||||||
|
CONFIG_CLOCK_CONTROL_NRF_K32SRC_250PPM=y
|
||||||
|
CONFIG_NFCT_PINS_AS_GPIOS=y
|
||||||
Reference in New Issue
Block a user