Initial commit with basic project structure and Firebeetle 2 board definition

This commit is contained in:
2025-06-29 12:13:32 +02:00
parent 6b86f5edf4
commit a55c5601c0
205 changed files with 8183 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
/*
* Copyright (c) 2022 Grant Ramsay <grant.ramsay@hotmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include <zephyr/init.h>
#include <zephyr/drivers/gpio.h>
#define IP101GRI_RESET_N_PIN 5
static int board_esp32_ethernet_kit_init(void)
{
const struct device *gpio = DEVICE_DT_GET(DT_NODELABEL(gpio0));
if (!device_is_ready(gpio)) {
return -ENODEV;
}
/* Enable the Ethernet phy */
int res = gpio_pin_configure(
gpio, IP101GRI_RESET_N_PIN,
GPIO_OUTPUT | GPIO_OUTPUT_INIT_HIGH);
return res;
}
SYS_INIT(board_esp32_ethernet_kit_init, PRE_KERNEL_2, CONFIG_GPIO_INIT_PRIORITY);