Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
ebbc431
feat:add port for cygnet (STM32L433)
bsatrom Nov 5, 2024
fe12f2b
resolve linker error
bsatrom Nov 6, 2024
5a3f9d7
update LD files for cygnet
bsatrom Nov 7, 2024
dd30006
update Makefile for STM32L433 TinyUSB driver support
bsatrom Nov 7, 2024
7e0c9a2
EOF
bsatrom Nov 7, 2024
680489a
final feature toggling to fit everything in flash
bsatrom Nov 8, 2024
dd5cedf
turn off random to trim out a bit of space
bsatrom Nov 8, 2024
38e179f
Bump cyw43-driver module to v1.0.4 plus to match SDK 2.0.0.
eightycc Oct 31, 2024
8b448a3
Add global GCC version check
jepler Nov 1, 2024
af097d7
these ports currently use older gcc versions
jepler Nov 1, 2024
b0099a5
Fix gcc version on broadcom again
jepler Nov 1, 2024
925ba15
use ADC_TEMPERATURE_CHANNEL_NUM instead of hard-coded channel '4'
bablokb Nov 2, 2024
c5328c8
RP2350: need cache flush in microcontroller.nvm
dhalbert Nov 1, 2024
0dab8de
Throw TypeError when json-serializing invalid types
jepler Nov 4, 2024
7d6dcc2
Fix `ring_waveform_loop_start` typo in frequency calculation.
relic-se Nov 4, 2024
a22f4f9
Fix default value of `synthio.Note.amplitude` in documentation.
relic-se Nov 4, 2024
1dc74d5
Add support for `synthio.BlockInput` on `synthio.Note.waveform_loop_s…
relic-se Nov 4, 2024
256faac
Make conversion of `mp_float_t` to `uint32_t` for waveform_loop value…
relic-se Nov 4, 2024
f1153ce
Update `ring_frequency` and `ring_bend` with `MP_ARG_KW_ONLY`.
relic-se Nov 4, 2024
1db7b7e
Update loop docstrings to demonstrate `BlockInput` implementation.
relic-se Nov 4, 2024
19f0d5c
Updated expected results for synthesizer_note test.
relic-se Nov 4, 2024
53ab31a
Reboot to normal mode upon fs wipe
bill88t Nov 3, 2024
5e98739
Fix various issues detected by zizmor
jepler Nov 3, 2024
47d0d18
fix yaml syntax error
jepler Nov 4, 2024
481b0e7
more yaml syntax fixes
jepler Nov 4, 2024
f3aacf5
mbedtls: avoid function that only exists on rp2040
jepler Nov 5, 2024
5e18ba9
Fix error with NULL sample handling in `audiofilters.Filter`.
relic-se Nov 4, 2024
38ffdec
Fix 16-bit unsigned integer silence within audio effects.
relic-se Nov 5, 2024
ce3252e
Translated using Weblate (Indonesian)
py7hon Nov 5, 2024
a335fa0
make the default variant 'coverage'
jepler Nov 7, 2024
600ab36
Add audiodelays & audioeffects to unix coverage port
jepler Nov 5, 2024
a97a287
Fix raspberrypi bootloop when using serial REPL by removing
eightycc Nov 8, 2024
d38ddb5
update pins and flash filesystem format for L433
bsatrom Dec 18, 2024
d220285
re-add uf2
bsatrom Dec 18, 2024
c2055e4
add msc back
bsatrom Dec 18, 2024
971a8fc
flesh out configuration
bsatrom Dec 26, 2024
294f586
update for USB
bsatrom Dec 30, 2024
6d50534
clocks cleanup
bsatrom Jan 2, 2025
2f12252
usb endpoints cleanup
bsatrom Jan 2, 2025
69087ba
stm32l4: Set proper USB and HAL tick interrupt priorities for L433
devin-ai-integration[bot] Jan 29, 2025
bcb39bd
Fix formatting in documentation and code style
devin-ai-integration[bot] Jan 29, 2025
fee1e69
stm32l4: Fix formatting in peripheral header files
devin-ai-integration[bot] Jan 29, 2025
28718f2
ci: Add null check for workflow information in ci_changes_per_commit.py
devin-ai-integration[bot] Jan 29, 2025
efa4908
ci: Improve error handling in ci_changes_per_commit.py
devin-ai-integration[bot] Jan 29, 2025
25dfe5c
ci: Improve pagination error handling in ci_changes_per_commit.py
devin-ai-integration[bot] Jan 29, 2025
2f96fe7
Revert changes from PR #5
devin-ai-integration[bot] Jan 29, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 18 additions & 5 deletions .github/workflows/build-board-custom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,21 +42,29 @@ jobs:
run: |
git clone --filter=tree:0 https://github.com/adafruit/circuitpython.git $GITHUB_WORKSPACE
- name: Checkout head / tag
env:
TAG: ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}
run: |
git checkout ${{ inputs.version == 'latest' && 'HEAD' || inputs.version }}
git checkout "$TAG"
- name: fork compatibility
if: github.repository_owner != 'adafruit'
env:
REPO: ${{ github.repository }}
run: |
git remote add fork https://github.com/${{github.repository}}.git
git remote add fork "https://github.com/$REPO.git"
git fetch fork --filter=tree:0
- name: branch compatibility
if: inputs.branch != 'main' && inputs.version == 'latest' && github.repository_owner == 'adafruit'
env:
BRANCH: ${{ inputs.branch }}
run: |
git checkout ${{inputs.branch}}
git checkout "$BRANCH"
- name: branch compatibility (fork)
if: inputs.branch != '' && inputs.version == 'latest' && github.repository_owner != 'adafruit'
env:
BRANCH: ${{ inputs.branch }}
run: |
git checkout -b fork-branch fork/${{inputs.branch}}
git checkout -b fork-branch "fork/$BRANCH"
- name: Set up identifier
if: inputs.debug || inputs.flags != ''
run: |
Expand Down Expand Up @@ -101,7 +109,12 @@ jobs:
riscv64-unknown-elf-gcc --version || true
mkfs.fat --version || true
- name: Build board
run: make -j4 ${{ inputs.flags }} BOARD=${{ inputs.board }} DEBUG=${{ inputs.debug && '1' || '0' }} TRANSLATION=${{ inputs.language }}
env:
TRANSLATION: ${{ inputs.language }}
BOARD: ${{ inputs.board }}
FLAGS: ${{ inputs.flags }}
DEBUG: ${{ inputs.debug && '1' || '0' }}
run: make -j4 $FLAGS BOARD="$BOARD" DEBUG=$DEBUG TRANSLATION="$TRANSLATION"
working-directory: ports/${{ steps.set-up-port.outputs.port }}
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/build-boards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false

- name: Set up python
uses: actions/setup-python@v5
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/build-mpy-cross.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand All @@ -57,9 +58,12 @@ jobs:
run: make -C mpy-cross -j4 -f Makefile.${{ matrix.mpy-cross }}

- name: Set output
env:
EX: ${{ env[format('EX_{0}', matrix.mpy-cross)] || matrix.mpy-cross }}
OS: ${{ env[format('OS_{0}', matrix.mpy-cross)] }}"
run: |
echo >> $GITHUB_ENV "EX=${{ env[format('EX_{0}', matrix.mpy-cross)] || matrix.mpy-cross }}"
echo >> $GITHUB_ENV "OS=${{ env[format('OS_{0}', matrix.mpy-cross)] }}"
echo >> $GITHUB_ENV "EX=$EX"
echo >> $GITHUB_ENV "OS=$OS"

- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
20 changes: 14 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -66,15 +67,19 @@ jobs:
EXCLUDE_COMMIT: ${{ github.event.pull_request.head.sha }}
- name: Set head sha (pull)
if: github.event_name == 'pull_request'
run: echo "HEAD_SHA=${{ github.event.pull_request.head.sha }}" >> $GITHUB_ENV
env:
HEAD_SHA: ${{ github.event.pull_request.head.sha }}
run: echo "HEAD_SHA=$HEAD_SHA" >> $GITHUB_ENV
- name: Set base sha (pull)
if: github.event_name == 'pull_request'
run: git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
env:
SHA: ${{ steps.get-last-commit-with-checks.outputs.commit_sha || github.event.pull_request.base.sha }}
- name: Set head sha (push)
if: github.event_name == 'push'
run: echo "HEAD_SHA=${{ github.event.after }}" >> $GITHUB_ENV
env:
SHA: ${{ github.event.after }}
run: echo "HEAD_SHA=$SHA" >> $GITHUB_ENV
- name: Set base sha (push)
if: github.event_name == 'push'
run: git cat-file -e $SHA && echo "BASE_SHA=$SHA" >> $GITHUB_ENV || true
Expand Down Expand Up @@ -114,6 +119,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -149,9 +155,9 @@ jobs:
(github.event_name == 'push' && github.ref == 'refs/heads/main' && github.repository_owner == 'adafruit') ||
(github.event_name == 'release' && (github.event.action == 'published' || github.event.action == 'rerequested'))
run: |
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env.CP_VERSION }}-universal --no-progress --region us-east-1
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env.CP_VERSION }}-arm64 --no-progress --region us-east-1
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-${{ env.CP_VERSION }}-x64 --no-progress --region us-east-1
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross-macos-universal s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-universal --no-progress --region us-east-1
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build-arm64/mpy-cross-arm64 s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-arm64 --no-progress --region us-east-1
[ -z "$AWS_ACCESS_KEY_ID" ] || aws s3 cp mpy-cross/build/mpy-cross s3://adafruit-circuit-python/bin/mpy-cross/macos/mpy-cross-macos-"${CP_VERSION}"-x64 --no-progress --region us-east-1
env:
AWS_PAGER: ''
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
Expand All @@ -170,6 +176,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand All @@ -188,7 +195,7 @@ jobs:
name: stubs
path: circuitpython-stubs/dist/*
- name: Test Documentation Build (HTML)
run: sphinx-build -E -W -b html -D version=${{ env.CP_VERSION }} -D release=${{ env.CP_VERSION }} . _build/html
run: sphinx-build -E -W -b html -D version="$CP_VERSION" -D release="$CP_VERSION" . _build/html
- uses: actions/upload-artifact@v4
with:
name: docs-html
Expand Down Expand Up @@ -271,6 +278,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up submodules
uses: ./.github/actions/deps/submodules
- name: build mpy-cross
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/create-website-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
submodules: false
show-progress: false
fetch-depth: 1
persist-credentials: false
- name: Set up python
uses: actions/setup-python@v5
with:
Expand Down
13 changes: 6 additions & 7 deletions lib/mbedtls_config/mbedtls_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,13 @@

#if CIRCUITPY_SSL_MBEDTLS

#include "py/runtime.h"
#include "mbedtls_config.h"
#include "mbedtls/entropy_poll.h"

#include "hardware/rtc.h"
#include "shared/timeutils/timeutils.h"
#include "shared-bindings/os/__init__.h"

#include "hardware/rtc.h"
#include "shared/timeutils/timeutils.h"
#include "shared-bindings/time/__init__.h"

extern uint8_t rosc_random_u8(size_t cycles);

Expand All @@ -46,9 +44,10 @@ int mbedtls_hardware_poll(void *data, unsigned char *output, size_t len, size_t
}

time_t rp2_rtctime_seconds(time_t *timer) {
datetime_t t;
rtc_get_datetime(&t);
return timeutils_seconds_since_epoch(t.year, t.month, t.day, t.hour, t.min, t.sec);
mp_obj_t datetime = mp_load_attr(MP_STATE_VM(rtc_time_source), MP_QSTR_datetime);
timeutils_struct_time_t tm;
struct_time_to_tm(datetime, &tm);
return timeutils_seconds_since_epoch(tm.tm_year, tm.tm_mon, tm.tm_mday, tm.tm_hour, tm.tm_min, tm.tm_sec);
}

#endif
Loading
Loading