Skip to content

Conversation

sajattack
Copy link
Member

@sajattack sajattack commented Dec 30, 2018

Huge PR sorry. Some of the api had to change a bit just due to the differences in which peripherals need to be passed in for clock initialization. It's been so long I can't remember everything I changed but I got the blinky working and I'm so happy.

Fixes #38

@sajattack sajattack requested a review from wez December 30, 2018 05:26
@sajattack
Copy link
Member Author

sajattack commented Dec 30, 2018

blinky-gif

@sajattack sajattack changed the title Samd51 Add SAMD51 HAL Dec 31, 2018
@sajattack
Copy link
Member Author

I'm testing UART now and it doesn't seem to be working.

@wez
Copy link
Member

wez commented Dec 31, 2018

Nice! I'm a combination of traveling and sick (great combo over the holidays :-/) so I'm not sure how much focused time I'll have to review this over the next week or so, but I am looking forward to it!

@sajattack
Copy link
Member Author

Ok, take your time. The problem with my UART seems to be in the baud register calculation. My scale factor is ending up as -16220875724 which is not a u64.

@sajattack sajattack mentioned this pull request Jan 21, 2019
@sajattack
Copy link
Member Author

@wez I think this is finally ready.

@sajattack
Copy link
Member Author

sajattack commented Feb 25, 2019

All this and so much more awaits.
image

@sajattack
Copy link
Member Author

sajattack commented Feb 25, 2019

Happycat

@djmcgill djmcgill merged commit efaa858 into atsamd-rs:master Mar 2, 2019
kaizensparc pushed a commit to kaizensparc/atsamd that referenced this pull request Dec 24, 2021
* 568 errors

* rebase in wez's pac

* clock51.rs mostly? done

* fix gpio

* almost done? sercoms

* everything compiles! (but probably doesn't work yet)

* update metro m4 board def

* in the middle of fixing the svd and clock stuff

* fix the syncbusy pac

I still think it's kind of weird that each genctrl has is_gclkn()
because doesn't gclk.genctrl[n] refer to a specific gclk?

* working clock-based blinky omfg

* slight cleanup

* put metro m0 README back

I accidentally overwrote the m0 README with the m4 README at some point
in prior commits.

* actually put the m0 readme back for realzies

the last commit deleted it instead of putting it back XD

* add enums to the samd51 svd

* add the rest of the '51 svds

* rebase to build on stable and minor fixes

* fix sdhc0 hc1r svd

* fix the build

* new metro m4 examples and a few changes to attempt to fix clocks/sercoms

* clocks running at the right speed, sercoms and timers still not initializing properly

* feature-gate pin functions i-n

* gclk0 runs at 120mhz not 48, fixes delay (still off a bit)

* fixup comment

* remove line enabling osculp32k no matter what is selected

* fix clocks once and for all 🙏

* fix sercoms

* enable interrupts for uart rx

* clean up some commented out code

* correct PCHCTRLm

* disable lto to allow for release builds, and fix svd some more

* regen pac, clean up warnings

* add metro_m4 to build script

* kinda hacky fix for build script

* add thumbv7em-none-eabi to travis

* hf

* comment correction

* Update README.md 

Changes related to architecture and requiring nightly

* add feature for commonalities of samd51 chips

* Update README.md

* generate the pac directory if none exists

* Revert "generate the pac directory if none exists"

This reverts commit 05ec5cb.

* fix spi example

* update doc comments to refer to samd51

* hal version bump

* board version bumps

* bump hal dependency for all boards
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants