mirror of
https://github.com/korneliuszo/lumiax-controller.git
synced 2026-07-06 01:41:12 +02:00
Move to target board
This commit is contained in:
@@ -36,15 +36,15 @@
|
||||
|
||||
uart0_default: uart0_default {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 9)>,
|
||||
<NRF_PSEL(UART_RX, 0, 11)>;
|
||||
psels = <NRF_PSEL(UART_TX, 0, 21)>,
|
||||
<NRF_PSEL(UART_RX, 0, 22)>;
|
||||
};
|
||||
};
|
||||
|
||||
uart0_sleep: uart0_sleep {
|
||||
group1 {
|
||||
psels = <NRF_PSEL(UART_TX, 0, 9)>,
|
||||
<NRF_PSEL(UART_RX, 0, 11)>;
|
||||
psels = <NRF_PSEL(UART_TX, 0, 21)>,
|
||||
<NRF_PSEL(UART_RX, 0, 22)>;
|
||||
low-power-enable;
|
||||
};
|
||||
};
|
||||
|
||||
@@ -23,8 +23,6 @@
|
||||
led0 = &led0;
|
||||
led1 = &led1;
|
||||
led2 = &led2;
|
||||
led3 = &led3;
|
||||
led4 = &led4;
|
||||
sw0 = &button0;
|
||||
sw1 = &button1;
|
||||
watchdog0 = &wdt0;
|
||||
@@ -44,14 +42,6 @@
|
||||
gpios = <&gpio0 20 0>;
|
||||
label = "Red LED 2";
|
||||
};
|
||||
led3: led_3 {
|
||||
gpios = <&gpio0 21 0>;
|
||||
label = "Red LED 3";
|
||||
};
|
||||
led4: led_4 {
|
||||
gpios = <&gpio0 22 0>;
|
||||
label = "Red LED 4";
|
||||
};
|
||||
};
|
||||
|
||||
buttons {
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
#include <zephyr/device.h>
|
||||
#include <zephyr/bluetooth/bluetooth.h>
|
||||
#include <zephyr/modbus/modbus.h>
|
||||
#include <zephyr/drivers/gpio.h>
|
||||
|
||||
#include "main_modules.hpp"
|
||||
#include "printt.h"
|
||||
@@ -106,6 +107,12 @@ int main(void)
|
||||
{
|
||||
k_mutex_init(®_data.mut);
|
||||
|
||||
{
|
||||
const device * dev = DEVICE_DT_GET(DT_NODELABEL(gpio0));
|
||||
gpio_pin_configure(dev, 23, GPIO_OUTPUT);
|
||||
gpio_pin_set(dev, 23, 1);
|
||||
}
|
||||
|
||||
if(!tlay2.Init())
|
||||
return 1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user