generated from zephyrproject-rtos/example-application
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Technoculture/port_to_olimex
feat: ported, example-sensor, blink app may have issues
- Loading branch information
Showing
22 changed files
with
218 additions
and
136 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
pull_request: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
|
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
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 |
---|---|---|
|
@@ -8,5 +8,4 @@ | |
CONFIG_DEBUG_OPTIMIZATIONS=y | ||
|
||
# logging | ||
CONFIG_LOG=y | ||
CONFIG_APP_LOG_LEVEL_DBG=y | ||
CONFIG_APP_LOG_LEVEL_DBG=y |
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 |
---|---|---|
|
@@ -5,3 +5,7 @@ | |
|
||
CONFIG_SENSOR=y | ||
CONFIG_BLINK=y | ||
|
||
# logging | ||
CONFIG_LOG=y | ||
CONFIG_LOG_BACKEND_UART_AUTOSTART=y |
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
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
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,8 @@ | ||
# Copyright (c) 2021 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# config BOARD_ENABLE_DCDC | ||
# bool "Enable DCDC mode" | ||
# select SOC_DCDC_NRF52X | ||
# default y | ||
# depends on BOARD_CUSTOM_PLANK |
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,6 @@ | ||
# Copyright (c) 2017, Erwin Rol <[email protected]> | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
config BOARD_PANOMIC_BOARD | ||
bool "Use Olimex STM32 E407 Board" | ||
select SOC_STM32F407XG |
6 changes: 3 additions & 3 deletions
6
boards/vendor/custom_plank/README.md → boards/technoculture/panomic_board/README.md
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# Custom Plank Board | ||
# OlimexF407 Board | ||
|
||
`custom_plank` board is used to demonstrate how to create custom boards. It is | ||
`olimex f407` board is used to demonstrate how to create custom boards. It is | ||
in fact a simplified version of the nRF52840-DK board, so the | ||
`firmware-template` can be run on that development kit when using | ||
`custom_plank`. | ||
`olimex f407`. |
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,6 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
board_runner_args(jlink "--device=STM32F407ZG" "--speed=4000") | ||
|
||
include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
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
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,141 @@ | ||
/* | ||
* Copyright (c) 2021 Nordic Semiconductor ASA | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
/dts-v1/; | ||
#include <st/f4/stm32f407Xg.dtsi> | ||
#include <st/f4/stm32f407z(e-g)tx-pinctrl.dtsi> | ||
#include <zephyr/dt-bindings/input/input-event-codes.h> | ||
|
||
/ { | ||
model = "Panomic Board"; | ||
compatible = "technoculture,panomic_board"; | ||
|
||
chosen { | ||
zephyr,console = &usart3; | ||
zephyr,shell-uart = &usart3; | ||
zephyr,sram = &sram0; | ||
zephyr,flash = &flash0; | ||
zephyr,ccm = &ccm0; | ||
}; | ||
|
||
leds { | ||
compatible = "gpio-leds"; | ||
green_led_1: led_1 { | ||
gpios = <&gpioc 14 GPIO_ACTIVE_HIGH>; // is actually 13: TODO fix jugaad | ||
label = "LED1"; | ||
}; | ||
}; | ||
|
||
blink_led: blink-led { | ||
compatible = "blink-gpio-led"; | ||
led-gpios = <&gpioc 13 GPIO_ACTIVE_HIGH>; | ||
blink-period-ms = <1000>; | ||
}; | ||
|
||
gpio_keys { | ||
compatible = "gpio-keys"; | ||
user_button: button { | ||
label = "Key"; | ||
gpios = <&gpioa 0 GPIO_ACTIVE_LOW>; | ||
zephyr,code = <INPUT_KEY_0>; | ||
}; | ||
}; | ||
|
||
example_sensor: example-sensor { | ||
compatible = "zephyr,example-sensor"; | ||
input-gpios = <&gpiob 11 (GPIO_PULL_UP | GPIO_ACTIVE_LOW)>; | ||
}; | ||
|
||
aliases { | ||
led0 = &green_led_1; | ||
sw0 = &user_button; | ||
}; | ||
|
||
}; | ||
|
||
&clk_lsi { | ||
status = "okay"; | ||
}; | ||
|
||
&clk_hse { | ||
clock-frequency = <DT_FREQ_M(12)>; | ||
status = "okay"; | ||
}; | ||
|
||
&pll { | ||
div-m = <12>; | ||
mul-n = <336>; | ||
div-p = <2>; | ||
div-q = <7>; | ||
clocks = <&clk_hse>; | ||
status = "okay"; | ||
}; | ||
|
||
&rcc { | ||
clocks = <&pll>; | ||
clock-frequency = <DT_FREQ_M(168)>; | ||
ahb-prescaler = <1>; | ||
apb1-prescaler = <4>; | ||
apb2-prescaler = <2>; | ||
}; | ||
|
||
&usart1 { | ||
pinctrl-0 = <&usart1_tx_pb6 &usart1_rx_pb7>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; | ||
|
||
&usart3 { | ||
pinctrl-0 = <&usart3_tx_pb10 &usart3_rx_pb11>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; | ||
|
||
&usart6 { | ||
pinctrl-0 = <&usart6_tx_pc6 &usart6_rx_pc7>; | ||
pinctrl-names = "default"; | ||
current-speed = <115200>; | ||
status = "okay"; | ||
}; | ||
|
||
&rtc { | ||
clocks = <&rcc STM32_CLOCK_BUS_APB1 0x10000000>, | ||
<&rcc STM32_SRC_LSI RTC_SEL(2)>; | ||
status = "okay"; | ||
}; | ||
|
||
&rng { | ||
status = "okay"; | ||
}; | ||
|
||
/* Only one interface should be enabled at a time: usbotg_fs or usbotg_hs */ | ||
usb_otg1: &usbotg_fs { | ||
pinctrl-0 = <&usb_otg_fs_dm_pa11 &usb_otg_fs_dp_pa12>; | ||
pinctrl-names = "default"; | ||
status = "disabled"; | ||
}; | ||
|
||
zephyr_udc0: &usbotg_hs { | ||
pinctrl-0 = <&usb_otg_hs_dm_pb14 &usb_otg_hs_dp_pb15>; | ||
pinctrl-names = "default"; | ||
status = "okay"; | ||
}; | ||
|
||
&mac { | ||
status = "okay"; | ||
pinctrl-0 = <ð_mdc_pc1 | ||
ð_rxd0_pc4 | ||
ð_rxd1_pc5 | ||
ð_ref_clk_pa1 | ||
ð_mdio_pa2 | ||
ð_col_pa3 | ||
ð_crs_dv_pa7 | ||
ð_tx_en_pg11 | ||
ð_txd0_pg13 | ||
ð_txd1_pg14>; | ||
pinctrl-names = "default"; | ||
}; |
12 changes: 7 additions & 5 deletions
12
boards/vendor/custom_plank/custom_plank.yaml → ...oculture/panomic_board/panomic_board.yaml
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 |
---|---|---|
@@ -1,16 +1,18 @@ | ||
# Copyright (c) 2021 Nordic Semiconductor ASA | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
identifier: custom_plank | ||
name: Custom-Plank | ||
vendor: vendor | ||
identifier: panomic_board | ||
name: Panomic-Board | ||
vendor: technoculture | ||
type: mcu | ||
arch: arm | ||
ram: 256 | ||
ram: 128 | ||
flash: 1024 | ||
toolchain: | ||
- zephyr | ||
- gnuarmemb | ||
- xtools | ||
supported: | ||
- gpio | ||
- counter | ||
- usb_device | ||
- gpio |
22 changes: 22 additions & 0 deletions
22
boards/technoculture/panomic_board/panomic_board_defconfig
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,22 @@ | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
# Enable MPU | ||
CONFIG_ARM_MPU=y | ||
|
||
# Enable HW stack protection | ||
CONFIG_HW_STACK_PROTECTION=y | ||
|
||
CONFIG_SERIAL=y | ||
|
||
# console | ||
CONFIG_CONSOLE=y | ||
CONFIG_UART_CONSOLE=y | ||
|
||
# enable GPIO | ||
CONFIG_GPIO=y | ||
|
||
# Enable Clocks | ||
CONFIG_CLOCK_CONTROL=y | ||
|
||
# enable pin controller | ||
CONFIG_PINCTRL=y |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.