add presets and new radio config
This commit is contained in:
37
CMakePresets.json
Normal file
37
CMakePresets.json
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"version": 2,
|
||||
"cmakeMinimumRequired": {
|
||||
"major": 3,
|
||||
"minor": 20
|
||||
},
|
||||
"configurePresets": [
|
||||
{
|
||||
"name": "build_bl54_radio0",
|
||||
"displayName": "Build for nRF54l15 DK nRF54l15 Application",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build_bl54_radio0",
|
||||
"cacheVariables": {
|
||||
"NCS_TOOLCHAIN_VERSION": "NONE",
|
||||
"BOARD": "nrf54l15dk/nrf54l15/cpuapp",
|
||||
"EXTRA_CONF_FILE": "iso.conf;internal_osc.conf",
|
||||
"CONF_FILE": "prj.conf",
|
||||
"DTC_OVERLAY_FILE": "bl54l15_radio0_new.overlay",
|
||||
"BOARD_ROOT": "${sourceDir}/"
|
||||
}
|
||||
},
|
||||
{
|
||||
"name": "build_bl54_radio1",
|
||||
"displayName": "Build for nRF54l15 DK nRF54l15 Application",
|
||||
"generator": "Ninja",
|
||||
"binaryDir": "${sourceDir}/build_bl54_radio1",
|
||||
"cacheVariables": {
|
||||
"NCS_TOOLCHAIN_VERSION": "NONE",
|
||||
"BOARD": "nrf54l15dk/nrf54l15/cpuapp",
|
||||
"EXTRA_CONF_FILE": "iso.conf;internal_osc.conf",
|
||||
"CONF_FILE": "prj.conf",
|
||||
"DTC_OVERLAY_FILE": "bl54l15_radio1.overlay",
|
||||
"BOARD_ROOT": "${sourceDir}/"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
44
bl54l15_radio0_new.overlay
Normal file
44
bl54l15_radio0_new.overlay
Normal file
@@ -0,0 +1,44 @@
|
||||
&uart20 {
|
||||
compatible = "nordic,nrf-uarte";
|
||||
status = "okay";
|
||||
current-speed = <1000000>;
|
||||
hw-flow-control;
|
||||
};
|
||||
|
||||
|
||||
&pinctrl {
|
||||
uart20_default: uart20_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 1, 5)>,
|
||||
<NRF_PSEL(UART_RTS, 1, 4)>;
|
||||
};
|
||||
group2 {
|
||||
psels = <NRF_PSEL(UART_RX, 1, 7)>,
|
||||
<NRF_PSEL(UART_CTS, 1, 6)>;
|
||||
bias-pull-up;
|
||||
};
|
||||
};
|
||||
|
||||
uart20_sleep: uart20_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 1, 5)>,
|
||||
<NRF_PSEL(UART_RX, 1, 4)>,
|
||||
<NRF_PSEL(UART_RTS, 1, 7)>,
|
||||
<NRF_PSEL(UART_CTS, 1, 6)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
/ {
|
||||
chosen {
|
||||
//zephyr,console = &uart20;
|
||||
//zephyr,shell-uart = &uart20;
|
||||
//zephyr,uart-mcumgr = &uart0;
|
||||
//zephyr,bt-mon-uart = &uart0;
|
||||
zephyr,bt-c2h-uart = &uart20;
|
||||
};
|
||||
};
|
||||
&power {
|
||||
status = "okay";
|
||||
};
|
||||
11
hci.code-workspace
Normal file
11
hci.code-workspace
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"folders": [
|
||||
{
|
||||
"path": "../echo_bot"
|
||||
},
|
||||
{
|
||||
"path": "."
|
||||
}
|
||||
],
|
||||
"settings": {}
|
||||
}
|
||||
Reference in New Issue
Block a user