Skip to content

Dev #1

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
wants to merge 39 commits into
base: fake-master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
9127440
初始化At32
Oct 29, 2022
563b0bc
初始化At32
Oct 30, 2022
0b3fa62
start build
Oct 30, 2022
1811c15
start build
Oct 30, 2022
65796fc
start build
Oct 30, 2022
5d30790
start build
Oct 30, 2022
15a8319
commit_20221030
tcdddd Oct 30, 2022
6809695
初始化At32
Oct 29, 2022
d5151bf
commit_20221030
tcdddd Oct 30, 2022
2534a3d
commit_20221031
tcdddd Oct 30, 2022
40edeb4
commit_20221031-TMR、DMA
tcdddd Oct 31, 2022
977f3d6
commit_20221104-TMR、DMA
tcdddd Nov 4, 2022
18483bb
MAKE file OK,编译通不过,语法错误待解决
Nov 19, 2022
1cb7e50
固件编译成功,各项功能待调试
Nov 22, 2022
5bc9aa2
固件编译成功,各项功能待调试
Nov 23, 2022
d11bea7
Merge branch 'iNavFlight:master' into port-to-at32
shanggl Nov 27, 2022
6ffa2fc
修改DMA弹性映射
Nov 27, 2022
25337fd
初始化At32
Oct 30, 2022
a2a999b
move to wsl
shanggl Nov 29, 2022
9a41e04
fix flash usb-vcp spi adc
shanggl Nov 29, 2022
452566e
修改spi速率、us传输间隔
shanggl Nov 29, 2022
211b1f7
Merge remote-tracking branch 'origin/port-to-at32' into dev
Nov 30, 2022
c6e26fc
Merge remote-tracking branch 'inavl/port-2-at32' into dev
Nov 30, 2022
712fe47
解决I2C读取BUG,BMP280可正常读数
Dec 2, 2022
877f375
修正加速度记校准,气压计识别不正确,测试MSP合包发送
Dec 4, 2022
6757514
解决地面站不显示传感器,包校验不通过问题
Dec 5, 2022
a4f0c47
修复DMA映射BUG,by 二木山人,代提交
Dec 6, 2022
12125ea
修改DMA通道,代二木山人提交
Dec 7, 2022
02ac3dd
修改DMA_RAM,BL的CMAKE文件
Dec 13, 2022
bfa02f4
add NEUTRONRCF435AIO
Dec 13, 2022
0a12a6a
调整舵机输出定义
Dec 15, 2022
b5d2300
加入6D驱动
Dec 17, 2022
2471ceb
修正输出定义,打开BIM270支持
Dec 28, 2022
403c170
fix EMSRPROTO2 MOTOR OUTPUT BUG
shanggl Jan 7, 2023
5542818
fix NEUTRONRCF435AIO I2C COFNIG
shanggl Jan 7, 2023
ebdc281
modify i2c time out
shanggl Jan 7, 2023
74478d8
fix type conv warnning
shanggl Jan 7, 2023
a639c26
fix compile unused var warnning
shanggl Jan 7, 2023
d5244fa
add NEUTRONFCF435MINI QFN48 target
shanggl Jan 28, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Empty file modified .dockerignore
100644 → 100755
Empty file.
Empty file modified .gitattributes
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/Bug_report.md
100644 → 100755
Empty file.
Empty file modified .github/ISSUE_TEMPLATE/Feature_request.md
100644 → 100755
Empty file.
Empty file modified .github/issue_label_bot.yaml
100644 → 100755
Empty file.
22 changes: 11 additions & 11 deletions .github/no-response.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Configuration for probot-no-response - https://github.com/probot/no-response

# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 3
# Label requiring a response
responseRequiredLabel: Missing Information
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because the information we asked
to be provided when opening it was not supplied by the original author.
With only the information that is currently in the issue, we don't have
# Configuration for probot-no-response - https://github.com/probot/no-response
# Number of days of inactivity before an Issue is closed for lack of response
daysUntilClose: 3
# Label requiring a response
responseRequiredLabel: Missing Information
# Comment to post when closing an Issue for lack of response. Set to `false` to disable
closeComment: >
This issue has been automatically closed because the information we asked
to be provided when opening it was not supplied by the original author.
With only the information that is currently in the issue, we don't have
enough information to take action.
Empty file modified .github/stale.yml
100644 → 100755
Empty file.
108 changes: 54 additions & 54 deletions .github/workflows/ci.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,54 +1,54 @@
name: Build firmware
# Don't enable CI on push, just on PR. If you
# are working on the main repo and want to trigger
# a CI build submit a draft PR.
on: pull_request

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
id: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Setup environment
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
# This is the hash of the commit for the PR
# when the action is triggered by PR, empty otherwise
COMMIT_ID=${{ github.event.pull_request.head.sha }}
# This is the hash of the commit when triggered by push
# but the hash of refs/pull/<n>/merge, which is different
# from the hash of the latest commit in the PR, that's
# why we try github.event.pull_request.head.sha first
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/^[ \t]+|[ \t\)]+$/, "", $2); print $2 }')
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
echo "BUILD_NAME=inav-${VERSION}-${BUILD_SUFFIX}" >> $GITHUB_ENV
- uses: actions/cache@v1
with:
path: downloads
key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}}
- name: Build targets (${{ matrix.id }})
run: mkdir -p build && cd build && cmake -DWARNINGS_AS_ERRORS=ON -DCI_JOB_INDEX=${{ matrix.id }} -DCI_JOB_COUNT=${{ strategy.job-total }} -DBUILD_SUFFIX=${{ env.BUILD_SUFFIX }} -G Ninja .. && ninja ci
- name: Upload artifacts
uses: actions/upload-artifact@v2-preview
with:
name: ${{ env.BUILD_NAME }}.zip
path: ./build/*.hex

test:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Run Tests
run: mkdir -p build && cd build && cmake -DTOOLCHAIN=none -G Ninja .. && ninja check
name: Build firmware
# Don't enable CI on push, just on PR. If you
# are working on the main repo and want to trigger
# a CI build submit a draft PR.
on: pull_request
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
id: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Setup environment
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
run: |
# This is the hash of the commit for the PR
# when the action is triggered by PR, empty otherwise
COMMIT_ID=${{ github.event.pull_request.head.sha }}
# This is the hash of the commit when triggered by push
# but the hash of refs/pull/<n>/merge, which is different
# from the hash of the latest commit in the PR, that's
# why we try github.event.pull_request.head.sha first
COMMIT_ID=${COMMIT_ID:-${{ github.sha }}}
BUILD_SUFFIX=ci-$(date '+%Y%m%d')-$(git rev-parse --short ${COMMIT_ID})
VERSION=$(grep project CMakeLists.txt|awk -F VERSION '{ gsub(/^[ \t]+|[ \t\)]+$/, "", $2); print $2 }')
echo "BUILD_SUFFIX=${BUILD_SUFFIX}" >> $GITHUB_ENV
echo "BUILD_NAME=inav-${VERSION}-${BUILD_SUFFIX}" >> $GITHUB_ENV
- uses: actions/cache@v1
with:
path: downloads
key: ${{ runner.os }}-downloads-${{ hashFiles('CMakeLists.txt') }}-${{ hashFiles('**/cmake/*')}}
- name: Build targets (${{ matrix.id }})
run: mkdir -p build && cd build && cmake -DWARNINGS_AS_ERRORS=ON -DCI_JOB_INDEX=${{ matrix.id }} -DCI_JOB_COUNT=${{ strategy.job-total }} -DBUILD_SUFFIX=${{ env.BUILD_SUFFIX }} -G Ninja .. && ninja ci
- name: Upload artifacts
uses: actions/upload-artifact@v2-preview
with:
name: ${{ env.BUILD_NAME }}.zip
path: ./build/*.hex
test:
needs: [build]
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install ninja-build
- name: Run Tests
run: mkdir -p build && cd build && cmake -DTOOLCHAIN=none -G Ninja .. && ninja check
54 changes: 27 additions & 27 deletions .github/workflows/docs.yml
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
name: Make sure docs are updated
on:
pull_request:
paths:
- src/main/fc/settings.yaml
- docs/Settings.md
push:
paths:
- src/main/fc/settings.yaml
- docs/Settings.md

jobs:
settings_md:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install python3-yaml
- name: Check that Settings.md is up to date
run: |
cp docs/Settings.md{,.ci}
python3 src/utils/update_cli_docs.py -q
if ! diff -q docs/Settings.md{,.ci} >/dev/null; then
echo "::error ::\"docs/Settings.md\" is not up to date, please run \"src/utils/update_cli_docs.py\""
exit 1
fi
name: Make sure docs are updated
on:
pull_request:
paths:
- src/main/fc/settings.yaml
- docs/Settings.md
push:
paths:
- src/main/fc/settings.yaml
- docs/Settings.md
jobs:
settings_md:
runs-on: ubuntu-18.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: sudo apt-get update && sudo apt-get -y install python3-yaml
- name: Check that Settings.md is up to date
run: |
cp docs/Settings.md{,.ci}
python3 src/utils/update_cli_docs.py -q
if ! diff -q docs/Settings.md{,.ci} >/dev/null; then
echo "::error ::\"docs/Settings.md\" is not up to date, please run \"src/utils/update_cli_docs.py\""
exit 1
fi
Empty file modified .gitignore
100644 → 100755
Empty file.
Empty file modified AUTHORS
100644 → 100755
Empty file.
1 change: 1 addition & 0 deletions CMakeLists.txt
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ set(COMMON_COMPILE_DEFINITIONS
include(openocd)
include(svd)
include(stm32)
include(at32)

add_subdirectory(src)

Expand Down
Empty file modified Dockerfile
100644 → 100755
Empty file.
Empty file modified LICENSE
100644 → 100755
Empty file.
Empty file modified Vagrantfile
100644 → 100755
Empty file.
9 changes: 9 additions & 0 deletions board/at32fc.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Boardconfig for ST-Link/V2 with F4-FC

source [find interface/atlink.cfg]

#transport select hla_swd

source [find target/at32f437xM.cfg]

reset_config none separate
Empty file modified board/f4fc.cfg
100644 → 100755
Empty file.
Empty file modified board/f7fc.cfg
100644 → 100755
Empty file.
Empty file modified board/h7fc.cfg
100644 → 100755
Empty file.
Empty file modified cmake/GetGitRevisionDescription.cmake
100644 → 100755
Empty file.
Empty file modified cmake/GetGitRevisionDescription.cmake.in
100644 → 100755
Empty file.
Empty file modified cmake/arm-none-eabi-checks.cmake
100644 → 100755
Empty file.
Empty file modified cmake/arm-none-eabi.cmake
100644 → 100755
Empty file.
33 changes: 33 additions & 0 deletions cmake/at32-bootloader.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
main_sources(BOOTLOADER_SOURCES
common/log.c
common/log.h
common/printf.c
common/printf.h
common/string_light.c
common/string_light.h
common/typeconversion.c
common/typeconversion.h

drivers/bus.c
drivers/bus_busdev_i2c.c
drivers/bus_busdev_spi.c
drivers/bus_i2c_soft.c
drivers/io.c
drivers/light_led.c
drivers/persistent.c
drivers/rcc.c
drivers/serial.c
drivers/system.c
drivers/time.c
drivers/timer.c
drivers/flash_m25p16.c
drivers/flash_w25n01g.c
drivers/flash.c

fc/firmware_update_common.c
fc/firmware_update_common.h

target/common_hardware.c
)

list(APPEND BOOTLOADER_SOURCES ${MAIN_DIR}/src/bl/bl_main.c)
6 changes: 6 additions & 0 deletions cmake/at32-stdperiph.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
main_sources(AT32_STDPERIPH_SRC
drivers/bus_spi_at32f43x.c
drivers/serial_uart_hal_at32f43x.c
)


Loading