-
Notifications
You must be signed in to change notification settings - Fork 8
MKS Robin E3 conf and overlay #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
birkanozer
wants to merge
3
commits into
OpenAstroTech:main
Choose a base branch
from
birkanozer:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,18 @@ | ||
| CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=72000000 | ||
| CONFIG_CORTEX_M_SYSTICK=y | ||
|
|
||
| CONFIG_USB_DEVICE_STACK=y | ||
| CONFIG_USB_DEVICE_INITIALIZE_AT_BOOT=n | ||
| CONFIG_USB_DEVICE_VID=0x1209 | ||
| CONFIG_USB_DEVICE_PID=0x0AF0 | ||
| CONFIG_USB_DEVICE_PRODUCT="OpenAstroFirmware" | ||
| CONFIG_USB_DEVICE_MANUFACTURER="OpenAstroTech" | ||
|
|
||
| CONFIG_USB_CDC_ACM=y | ||
| CONFIG_USB_CDC_ACM_RINGBUF_SIZE=512 | ||
|
|
||
| CONFIG_USB_COMPOSITE_DEVICE=y | ||
|
|
||
| # CONFIG_USB_DEVICE_LOG_LEVEL_INF=y | ||
| # CONFIG_USB_DRIVER_LOG_LEVEL_INF=y | ||
| CONFIG_USB_CDC_ACM_LOG_LEVEL_OFF=y | ||
This file contains hidden or 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,115 @@ | ||
| / { | ||
| chosen { | ||
| // Console and control interfaces | ||
| zephyr,console = &usart3; | ||
| oaf,uart-control = &cdc_acm_uart0; | ||
|
|
||
| // OpenAstroFirmware specific device mappings | ||
| oaf,ra-stepper-step = &ra_step; | ||
| oaf,ra-stepper-dir = &ra_dir; | ||
| oaf,ra-stepper-en = &ra_en; | ||
| oaf,dec-stepper-step = &dec_step; | ||
| oaf,dec-stepper-dir = &dec_dir; | ||
| oaf,dec-stepper-en = &dec_en; | ||
| oaf,alt-stepper-step = &alt_step; | ||
| oaf,alt-stepper-dir = &alt_dir; | ||
| oaf,alt-stepper-en = &alt_en; | ||
| oaf,az-stepper-step = &az_step; | ||
| oaf,az-stepper-dir = &az_dir; | ||
| oaf,az-stepper-en = &az_en; | ||
| oaf,focus-stepper-step = &focus_step; | ||
| oaf,focus-stepper-dir = &focus_dir; | ||
| oaf,focus-stepper-en = &focus_en; | ||
|
|
||
| // Sensor mappings | ||
| oaf,ra-home-sensor = &ra_homing; | ||
| oaf,dec-home-sensor = &dec_homing; | ||
| oaf,ra-endstop-east = &ra_endstop_east; | ||
| oaf,dec-endstop-up = &dec_endstop_up; | ||
|
|
||
|
|
||
| // Communication interfaces | ||
| oaf,gps-uart = &usart1; | ||
| oaf,external-i2c = &i2c1; | ||
|
|
||
| // Status LED | ||
| oaf,status-led = &status_led; | ||
| }; | ||
|
|
||
| /* Mount Control Configuration */ | ||
| mount_controller { | ||
| compatible = "oaf,mount-controller"; | ||
|
|
||
| /* RA Axis Configuration */ | ||
| ra-axis { | ||
| step-gpio = <&ra_step>; | ||
| dir-gpio = <&ra_dir>; | ||
| enable-gpio = <&ra_en>; | ||
| diag-gpio = <&ra_diag>; | ||
| home-sensor = <&ra_homing>; | ||
| endstop-east = <&ra_endstop_east>; | ||
|
|
||
| steps-per-revolution = <3200>; | ||
| gear-ratio = <144>; | ||
| max-speed = <1000>; | ||
| acceleration = <500>; | ||
| }; | ||
|
|
||
| /* DEC Axis Configuration */ | ||
| dec-axis { | ||
| step-gpio = <&dec_step>; | ||
| dir-gpio = <&dec_dir>; | ||
| enable-gpio = <&dec_en>; | ||
| diag-gpio = <&dec_diag>; | ||
| home-sensor = <&dec_homing>; | ||
| endstop-up = <&dec_endstop_up>; | ||
|
|
||
| steps-per-revolution = <3200>; | ||
| gear-ratio = <54>; | ||
| max-speed = <1000>; | ||
| acceleration = <500>; | ||
| }; | ||
|
|
||
| /* Focus/Alt Configuration */ | ||
| focus-axis { | ||
| step-gpio = <&focus_step>; | ||
| dir-gpio = <&focus_dir>; | ||
| enable-gpio = <&focus_en>; | ||
| diag-gpio = <&focus_diag>; | ||
|
|
||
| steps-per-revolution = <3200>; | ||
| max-speed = <500>; | ||
| acceleration = <250>; | ||
| }; | ||
|
|
||
| status = "okay"; | ||
| }; | ||
|
|
||
| }; | ||
|
|
||
| // Configuration for the CDC ACM UART | ||
| &zephyr_udc0 { | ||
| cdc_acm_uart0: cdc_acm_uart0 { | ||
| compatible = "zephyr,cdc-acm-uart"; | ||
| }; | ||
| }; | ||
|
|
||
| // GPS UART configuration | ||
| &usart1 { | ||
| current-speed = <9600>; | ||
| status = "okay"; | ||
| }; | ||
|
|
||
| // Additional ADC channel for LCD keypad | ||
| &adc1 { | ||
| #address-cells = <1>; | ||
| #size-cells = <0>; | ||
|
|
||
| channel@10 { | ||
| reg = <10>; | ||
| zephyr,gain = "ADC_GAIN_1"; | ||
| zephyr,reference = "ADC_REF_INTERNAL"; | ||
| zephyr,acquisition-time = <ADC_ACQ_TIME_DEFAULT>; | ||
| zephyr,resolution = <12>; | ||
| }; | ||
| }; |
This file contains hidden or 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 hidden or 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,5 @@ | ||
| # Copyright (c) 2021 Nordic Semiconductor ASA | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| config BOARD_ROBIN_E3 | ||
| select SOC_STM32F103XE |
This file contains hidden or 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,7 @@ | ||
| # Copyright (c) 2021 Nordic Semiconductor ASA | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| board_runner_args(jlink "--device=STM32F103XB" "--speed=4000") | ||
|
|
||
| include(${ZEPHYR_BASE}/boards/common/openocd.board.cmake) | ||
| include(${ZEPHYR_BASE}/boards/common/jlink.board.cmake) |
This file contains hidden or 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,5 @@ | ||
| board: | ||
| name: robin_e3 | ||
| vendor: mks | ||
| socs: | ||
| - name: stm32f103xe |
Binary file not shown.
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These seem like a project level configs