-
Notifications
You must be signed in to change notification settings - Fork 2k
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
boards: add pyboard v1.1 support #11080
Conversation
@kaspar030 nice!! Comments so far:
|
Fixed, led was not set up and its macro had the wrong pin number.
fixed. |
Now also all issues pointed out by Murdock are fixed. @emmanuelsearch could you take another look? |
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.
Some minor nits, otherwise it's good :)
boards/pyboard/Makefile.features
Outdated
@@ -0,0 +1,13 @@ | |||
# Put defined MCU peripherals here (in alphabetical order) | |||
#FEATURES_PROVIDED += periph_dma |
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.
There is no configuration provided for DMA, so I think this should be removed. Same for PWM.
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.
done
@@ -0,0 +1,32 @@ | |||
/* | |||
* Copyright (C) 2019 Inria |
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.
Inria has no copyright on this file.
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.
actually @kaspar030 IIRC you're doing this work paid by Inria + FU collaboration so should the copyright not be instead Copyright (C) 2019 Inria
and Copyright (C) 2019 FU Berlin
where copyright is applicable?
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.
ok, make sense.
boards/pyboard/include/board.h
Outdated
* @file | ||
* @brief Board specific definitions for the pyboard board | ||
* | ||
* @author Alexandre Abadie <alexandre.abadie@inria.fr> |
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.
Thanks, but you can remove me (and Inria) from the list of authors and copyrights.
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.
(same comment as above)
boards/pyboard/include/periph_conf.h
Outdated
@@ -0,0 +1,187 @@ | |||
/* | |||
* Copyright (C) 2017 Inria |
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.
Invalid copyright
works like a charm now! |
@kaspar030 can you address the minor comments of @aabadie and squash? |
@aabadie I've re-used a lot of the files that you created, thus I kept the authorship. It was impressively easy to get this board working, with all the stm infrastructure in place! But ok, you're out again, so complaints go to me first. 😉 |
boards/pyboard/doc.txt
Outdated
- press reset button | ||
|
||
## Flash as usual: | ||
$ BOARD=pyboard make flash" |
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.
one last thing: I think this line won't render very well in the generated documentation. There should be a blank line before.
Also note that there's an extra "
at the end of the line.
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.
thanks for actually looking at the docs. fixed & amended.
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.
Looks good to me now.
Un-tested ACK. I let @emmanuelsearch give a last try and merge.
retested, works, let's go. |
Just found out about the |
I thought the same when reviewing but I didn't want to add more delay on this when I ACK'ed this PR. I'll update the related boards (nz32-sc151, bluepill, spark-core) and open a PR tomorrow. |
From the docs:
Overview
This port adds basic support for the MicroPython pyboard.
Currently the support is pretty minimal, and you might miss many features that
the original firmware offers. E.g., the board won't show up via USB as either
serial or mass storage device.
In order to get serial output, connect an USB/serial adapter to USART1 RX/TX
(Pins X9 / X10).
How to flash
put board into DFU mode:
Flash as usual:
Testing procedure
Run the usual tests on a pyboard.
Issues/PRs references
None.