Merge remote-tracking branch 'adafruit/master' into lower_power
This isn't perfect and needs a bit more testing.
This commit is contained in:
commit
bebf27e733
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
@ -200,6 +200,8 @@ jobs:
|
|||||||
- "monster_m4sk"
|
- "monster_m4sk"
|
||||||
- "ndgarage_ndbit6"
|
- "ndgarage_ndbit6"
|
||||||
- "nfc_copy_cat"
|
- "nfc_copy_cat"
|
||||||
|
- "nucleo_f767zi"
|
||||||
|
- "nucleo_h743zi_2"
|
||||||
- "ohs2020_badge"
|
- "ohs2020_badge"
|
||||||
- "openbook_m4"
|
- "openbook_m4"
|
||||||
- "particle_argon"
|
- "particle_argon"
|
||||||
|
@ -1,74 +1,129 @@
|
|||||||
# Contributor Covenant Code of Conduct
|
# Adafruit Community Code of Conduct
|
||||||
|
|
||||||
## Our Pledge
|
## Our Pledge
|
||||||
|
|
||||||
In the interest of fostering an open and welcoming environment, we as
|
In the interest of fostering an open and welcoming environment, we as
|
||||||
contributors and maintainers pledge to making participation in our project and
|
contributors and leaders pledge to making participation in our project and
|
||||||
our community a harassment-free experience for everyone, regardless of age, body
|
our community a harassment-free experience for everyone, regardless of age, body
|
||||||
size, disability, ethnicity, gender identity and expression, level of experience,
|
size, disability, ethnicity, gender identity and expression, level or type of
|
||||||
nationality, personal appearance, race, religion, or sexual identity and
|
experience, education, socio-economic status, nationality, personal appearance,
|
||||||
orientation.
|
race, religion, or sexual identity and orientation.
|
||||||
|
|
||||||
## Our Standards
|
## Our Standards
|
||||||
|
|
||||||
|
We are committed to providing a friendly, safe and welcoming environment for
|
||||||
|
all.
|
||||||
|
|
||||||
Examples of behavior that contributes to creating a positive environment
|
Examples of behavior that contributes to creating a positive environment
|
||||||
include:
|
include:
|
||||||
|
|
||||||
|
* Be kind and courteous to others
|
||||||
* Using welcoming and inclusive language
|
* Using welcoming and inclusive language
|
||||||
* Being respectful of differing viewpoints and experiences
|
* Being respectful of differing viewpoints and experiences
|
||||||
|
* Collaborating with other community members
|
||||||
* Gracefully accepting constructive criticism
|
* Gracefully accepting constructive criticism
|
||||||
* Focusing on what is best for the community
|
* Focusing on what is best for the community
|
||||||
* Showing empathy towards other community members
|
* Showing empathy towards other community members
|
||||||
|
|
||||||
Examples of unacceptable behavior by participants include:
|
Examples of unacceptable behavior by participants include:
|
||||||
|
|
||||||
* The use of sexualized language or imagery and unwelcome sexual attention or
|
* The use of sexualized language or imagery and sexual attention or advances
|
||||||
advances
|
* The use of inappropriate images, including in a community member's avatar
|
||||||
|
* The use of inappropriate language, including in a community member's nickname
|
||||||
|
* Any spamming, flaming, baiting or other attention-stealing behavior
|
||||||
|
* Excessive or unwelcome helping; answering outside the scope of the question
|
||||||
|
asked
|
||||||
* Trolling, insulting/derogatory comments, and personal or political attacks
|
* Trolling, insulting/derogatory comments, and personal or political attacks
|
||||||
|
* Promoting or spreading disinformation, lies, or conspiracy theories against
|
||||||
|
a person, group, organisation, project, or community
|
||||||
* Public or private harassment
|
* Public or private harassment
|
||||||
* Publishing others' private information, such as a physical or electronic
|
* Publishing others' private information, such as a physical or electronic
|
||||||
address, without explicit permission
|
address, without explicit permission
|
||||||
* Other conduct which could reasonably be considered inappropriate in a
|
* Other conduct which could reasonably be considered inappropriate
|
||||||
professional setting
|
|
||||||
|
The goal of the standards and moderation guidelines outlined here is to build
|
||||||
|
and maintain a respectful community. We ask that you don’t just aim to be
|
||||||
|
"technically unimpeachable", but rather try to be your best self.
|
||||||
|
|
||||||
|
We value many things beyond technical expertise, including collaboration and
|
||||||
|
supporting others within our community. Providing a positive experience for
|
||||||
|
other community members can have a much more significant impact than simply
|
||||||
|
providing the correct answer.
|
||||||
|
|
||||||
## Our Responsibilities
|
## Our Responsibilities
|
||||||
|
|
||||||
Project maintainers are responsible for clarifying the standards of acceptable
|
Project leaders are responsible for clarifying the standards of acceptable
|
||||||
behavior and are expected to take appropriate and fair corrective action in
|
behavior and are expected to take appropriate and fair corrective action in
|
||||||
response to any instances of unacceptable behavior.
|
response to any instances of unacceptable behavior.
|
||||||
|
|
||||||
Project maintainers have the right and responsibility to remove, edit, or
|
Project leaders have the right and responsibility to remove, edit, or
|
||||||
reject comments, commits, code, wiki edits, issues, and other contributions
|
reject messages, comments, commits, code, issues, and other contributions
|
||||||
that are not aligned to this Code of Conduct, or to ban temporarily or
|
that are not aligned to this Code of Conduct, or to ban temporarily or
|
||||||
permanently any contributor for other behaviors that they deem inappropriate,
|
permanently any community member for other behaviors that they deem
|
||||||
threatening, offensive, or harmful.
|
inappropriate, threatening, offensive, or harmful.
|
||||||
|
|
||||||
|
## Moderation
|
||||||
|
|
||||||
|
Instances of behaviors that violate the Adafruit Community Code of Conduct
|
||||||
|
may be reported by any member of the community. Community members are
|
||||||
|
encouraged to report these situations, including situations they witness
|
||||||
|
involving other community members.
|
||||||
|
|
||||||
|
You may report in the following ways:
|
||||||
|
|
||||||
|
In any situation, you may send an email to <support@adafruit.com>.
|
||||||
|
|
||||||
|
On the Adafruit Discord, you may send an open message from any channel
|
||||||
|
to all Community Moderators by tagging @community moderators. You may
|
||||||
|
also send an open message from any channel, or a direct message to
|
||||||
|
@kattni#1507, @tannewt#4653, @danh#1614, @cater#2442,
|
||||||
|
@sommersoft#0222, @Mr. Certainly#0472 or @Andon#8175.
|
||||||
|
|
||||||
|
Email and direct message reports will be kept confidential.
|
||||||
|
|
||||||
|
In situations on Discord where the issue is particularly egregious, possibly
|
||||||
|
illegal, requires immediate action, or violates the Discord terms of service,
|
||||||
|
you should also report the message directly to Discord.
|
||||||
|
|
||||||
|
These are the steps for upholding our community’s standards of conduct.
|
||||||
|
|
||||||
|
1. Any member of the community may report any situation that violates the
|
||||||
|
Adafruit Community Code of Conduct. All reports will be reviewed and
|
||||||
|
investigated.
|
||||||
|
2. If the behavior is an egregious violation, the community member who
|
||||||
|
committed the violation may be banned immediately, without warning.
|
||||||
|
3. Otherwise, moderators will first respond to such behavior with a warning.
|
||||||
|
4. Moderators follow a soft "three strikes" policy - the community member may
|
||||||
|
be given another chance, if they are receptive to the warning and change their
|
||||||
|
behavior.
|
||||||
|
5. If the community member is unreceptive or unreasonable when warned by a
|
||||||
|
moderator, or the warning goes unheeded, they may be banned for a first or
|
||||||
|
second offense. Repeated offenses will result in the community member being
|
||||||
|
banned.
|
||||||
|
|
||||||
## Scope
|
## Scope
|
||||||
|
|
||||||
|
This Code of Conduct and the enforcement policies listed above apply to all
|
||||||
|
Adafruit Community venues. This includes but is not limited to any community
|
||||||
|
spaces (both public and private), the entire Adafruit Discord server, and
|
||||||
|
Adafruit GitHub repositories. Examples of Adafruit Community spaces include
|
||||||
|
but are not limited to meet-ups, audio chats on the Adafruit Discord, or
|
||||||
|
interaction at a conference.
|
||||||
|
|
||||||
This Code of Conduct applies both within project spaces and in public spaces
|
This Code of Conduct applies both within project spaces and in public spaces
|
||||||
when an individual is representing the project or its community. Examples of
|
when an individual is representing the project or its community. As a community
|
||||||
representing a project or community include using an official project e-mail
|
member, you are representing our community, and are expected to behave
|
||||||
address, posting via an official social media account, or acting as an appointed
|
accordingly.
|
||||||
representative at an online or offline event. Representation of a project may be
|
|
||||||
further defined and clarified by project maintainers.
|
|
||||||
|
|
||||||
## Enforcement
|
|
||||||
|
|
||||||
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
|
||||||
reported by contacting the project team at support@adafruit.com. All
|
|
||||||
complaints will be reviewed and investigated and will result in a response that
|
|
||||||
is deemed necessary and appropriate to the circumstances. The project team is
|
|
||||||
obligated to maintain confidentiality with regard to the reporter of an incident.
|
|
||||||
Further details of specific enforcement policies may be posted separately.
|
|
||||||
|
|
||||||
Project maintainers who do not follow or enforce the Code of Conduct in good
|
|
||||||
faith may face temporary or permanent repercussions as determined by other
|
|
||||||
members of the project's leadership.
|
|
||||||
|
|
||||||
## Attribution
|
## Attribution
|
||||||
|
|
||||||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
|
||||||
available at [http://contributor-covenant.org/version/1/4][version]
|
version 1.4, available at
|
||||||
|
<https://www.contributor-covenant.org/version/1/4/code-of-conduct.html>,
|
||||||
|
and the [Rust Code of Conduct](https://www.rust-lang.org/en-US/conduct.html).
|
||||||
|
|
||||||
[homepage]: http://contributor-covenant.org
|
For other projects adopting the Adafruit Community Code of
|
||||||
[version]: http://contributor-covenant.org/version/1/4/
|
Conduct, please contact the maintainers of those projects for enforcement.
|
||||||
|
If you wish to use this code of conduct for your own project, consider
|
||||||
|
explicitly mentioning your moderation policy or making a copy with your
|
||||||
|
own moderation policy so as to avoid confusion.
|
||||||
|
1
conf.py
1
conf.py
@ -138,6 +138,7 @@ exclude_patterns = ["**/build*",
|
|||||||
"ports/nrf/peripherals",
|
"ports/nrf/peripherals",
|
||||||
"ports/nrf/usb",
|
"ports/nrf/usb",
|
||||||
"ports/stm/st_driver",
|
"ports/stm/st_driver",
|
||||||
|
"ports/stm/packages",
|
||||||
"ports/stm/peripherals",
|
"ports/stm/peripherals",
|
||||||
"ports/stm/ref",
|
"ports/stm/ref",
|
||||||
"ports/unix",
|
"ports/unix",
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit 19a66d79f0650a15e502464b42e16692365eab36
|
Subproject commit 0d2c083a2fb57a1562d4806775f45273abbfbfae
|
32
locale/ID.po
32
locale/ID.po
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -53,7 +53,7 @@ msgstr "output:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -329,7 +329,7 @@ msgstr ""
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -366,9 +366,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Kedua pin harus mendukung hardware interrut"
|
msgstr "Kedua pin harus mendukung hardware interrut"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -835,6 +835,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -870,7 +875,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -925,7 +930,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Pin tidak valid"
|
msgstr "Pin tidak valid"
|
||||||
|
|
||||||
@ -1040,7 +1045,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1128,7 +1133,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1208,7 +1213,7 @@ msgstr "Pin tidak mempunya kemampuan untuk ADC (Analog Digital Converter)"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1234,11 +1239,6 @@ msgstr ""
|
|||||||
"Tekan tombol apa saja untuk masuk ke dalam REPL. Gunakan CTRL+D untuk reset "
|
"Tekan tombol apa saja untuk masuk ke dalam REPL. Gunakan CTRL+D untuk reset "
|
||||||
"(Reload)"
|
"(Reload)"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2822,12 +2822,12 @@ msgstr "anotasi return harus sebuah identifier"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -53,7 +53,7 @@ msgstr ""
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -327,7 +327,7 @@ msgstr ""
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -362,9 +362,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -824,6 +824,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -859,7 +864,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -914,7 +919,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1029,7 +1034,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1117,7 +1122,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1196,7 +1201,7 @@ msgstr ""
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1220,11 +1225,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2797,12 +2797,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: Pascal Deneaux\n"
|
"Last-Translator: Pascal Deneaux\n"
|
||||||
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
|
"Language-Team: Sebastian Plamauer, Pascal Deneaux\n"
|
||||||
@ -55,7 +55,7 @@ msgstr " Ausgabe:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c erwartet int oder char"
|
msgstr "%%c erwartet int oder char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -329,7 +329,7 @@ msgstr "Array muss Halbwörter enthalten (type 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Array-Werte sollten aus Einzelbytes bestehen."
|
msgstr "Array-Werte sollten aus Einzelbytes bestehen."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -366,9 +366,9 @@ msgstr "Bit depth muss ein Vielfaches von 8 sein."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Beide pins müssen Hardware Interrupts unterstützen"
|
msgstr "Beide pins müssen Hardware Interrupts unterstützen"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr "Die Helligkeit muss zwischen 0 und 1.0 liegen"
|
msgstr "Die Helligkeit muss zwischen 0 und 1.0 liegen"
|
||||||
|
|
||||||
@ -832,6 +832,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -867,7 +872,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Ungültiges Argument"
|
msgstr "Ungültiges Argument"
|
||||||
|
|
||||||
@ -922,7 +927,7 @@ msgstr "Ungültige Phase"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Ungültiger Pin"
|
msgstr "Ungültiger Pin"
|
||||||
|
|
||||||
@ -1038,7 +1043,7 @@ msgstr "Muss eine %q Unterklasse sein."
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1126,7 +1131,7 @@ msgstr "Kein Speicherplatz mehr verfügbar auf dem Gerät"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Keine solche Datei/Verzeichnis"
|
msgstr "Keine solche Datei/Verzeichnis"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1211,7 +1216,7 @@ msgstr "Pin hat keine ADC Funktionalität"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1237,11 +1242,6 @@ msgstr ""
|
|||||||
"Drücke eine Taste um dich mit der REPL zu verbinden. Drücke Strg-D zum neu "
|
"Drücke eine Taste um dich mit der REPL zu verbinden. Drücke Strg-D zum neu "
|
||||||
"laden"
|
"laden"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Pull wird nicht verwendet, wenn die Richtung output ist."
|
msgstr "Pull wird nicht verwendet, wenn die Richtung output ist."
|
||||||
@ -2835,12 +2835,12 @@ msgstr "return annotation muss ein identifier sein"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -53,7 +53,7 @@ msgstr ""
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -327,7 +327,7 @@ msgstr ""
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -362,9 +362,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -824,6 +824,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -859,7 +864,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -914,7 +919,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1029,7 +1034,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1117,7 +1122,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1196,7 +1201,7 @@ msgstr ""
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1220,11 +1225,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2797,12 +2797,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: @sommersoft, @MrCertainly\n"
|
"Language-Team: @sommersoft, @MrCertainly\n"
|
||||||
@ -55,7 +55,7 @@ msgstr ""
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -329,7 +329,7 @@ msgstr ""
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -366,9 +366,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -828,6 +828,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -863,7 +868,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -918,7 +923,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1033,7 +1038,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1121,7 +1126,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1200,7 +1205,7 @@ msgstr "Belay that! Th' Pin be not ADC capable"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1224,11 +1229,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2801,12 +2801,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
32
locale/es.po
32
locale/es.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
|
"PO-Revision-Date: 2018-08-24 22:56-0500\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -55,7 +55,7 @@ msgstr " salida:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c requiere int o char"
|
msgstr "%%c requiere int o char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -331,7 +331,7 @@ msgstr "Array debe contener media palabra (type 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Valores del array deben ser bytes individuales."
|
msgstr "Valores del array deben ser bytes individuales."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -368,9 +368,9 @@ msgstr "Bits depth debe ser múltiplo de 8."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Ambos pines deben soportar interrupciones por hardware"
|
msgstr "Ambos pines deben soportar interrupciones por hardware"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -832,6 +832,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -867,7 +872,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Argumento inválido"
|
msgstr "Argumento inválido"
|
||||||
|
|
||||||
@ -922,7 +927,7 @@ msgstr "Fase inválida"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Pin inválido"
|
msgstr "Pin inválido"
|
||||||
|
|
||||||
@ -1037,7 +1042,7 @@ msgstr "Debe de ser una subclase de %q"
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1125,7 +1130,7 @@ msgstr "No queda espacio en el dispositivo"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "No existe el archivo/directorio"
|
msgstr "No existe el archivo/directorio"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1210,7 +1215,7 @@ msgstr "Pin no tiene capacidad ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1236,11 +1241,6 @@ msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Presiona cualquier tecla para entrar al REPL. Usa CTRL-D para recargar."
|
"Presiona cualquier tecla para entrar al REPL. Usa CTRL-D para recargar."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Pull no se usa cuando la dirección es output."
|
msgstr "Pull no se usa cuando la dirección es output."
|
||||||
@ -2835,12 +2835,12 @@ msgstr "la anotación de retorno debe ser un identificador"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "retorno esperado '%q' pero se obtuvo '%q'"
|
msgstr "retorno esperado '%q' pero se obtuvo '%q'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
|
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
|
||||||
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
|
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
|
||||||
"Language-Team: fil\n"
|
"Language-Team: fil\n"
|
||||||
@ -53,7 +53,7 @@ msgstr " output:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c nangangailangan ng int o char"
|
msgstr "%%c nangangailangan ng int o char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -331,7 +331,7 @@ msgstr "May halfwords (type 'H') dapat ang array"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Array values ay dapat single bytes."
|
msgstr "Array values ay dapat single bytes."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -368,9 +368,9 @@ msgstr "Bit depth ay dapat multiple ng 8."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Ang parehong mga pin ay dapat na sumusuporta sa hardware interrupts"
|
msgstr "Ang parehong mga pin ay dapat na sumusuporta sa hardware interrupts"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -840,6 +840,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -875,7 +880,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Maling argumento"
|
msgstr "Maling argumento"
|
||||||
|
|
||||||
@ -930,7 +935,7 @@ msgstr "Mali ang phase"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Mali ang pin"
|
msgstr "Mali ang pin"
|
||||||
|
|
||||||
@ -1045,7 +1050,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1133,7 +1138,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Walang file/directory"
|
msgstr "Walang file/directory"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1216,7 +1221,7 @@ msgstr "Ang pin ay walang kakayahan sa ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1242,11 +1247,6 @@ msgstr ""
|
|||||||
"Pindutin ang anumang key upang pumasok sa REPL. Gamitin ang CTRL-D upang i-"
|
"Pindutin ang anumang key upang pumasok sa REPL. Gamitin ang CTRL-D upang i-"
|
||||||
"reload."
|
"reload."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Pull hindi ginagamit kapag ang direksyon ay output."
|
msgstr "Pull hindi ginagamit kapag ang direksyon ay output."
|
||||||
@ -2849,12 +2849,12 @@ msgstr "return annotation ay dapat na identifier"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "return umasa ng '%q' pero ang nakuha ay ‘%q’"
|
msgstr "return umasa ng '%q' pero ang nakuha ay ‘%q’"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
32
locale/fr.po
32
locale/fr.po
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: 0.1\n"
|
"Project-Id-Version: 0.1\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2019-04-14 20:05+0100\n"
|
"PO-Revision-Date: 2019-04-14 20:05+0100\n"
|
||||||
"Last-Translator: Pierrick Couturier <arofarn@arofarn.info>\n"
|
"Last-Translator: Pierrick Couturier <arofarn@arofarn.info>\n"
|
||||||
"Language-Team: fr\n"
|
"Language-Team: fr\n"
|
||||||
@ -55,7 +55,7 @@ msgstr " sortie:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c nécessite un entier 'int' ou un caractère 'char'"
|
msgstr "%%c nécessite un entier 'int' ou un caractère 'char'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -335,7 +335,7 @@ msgstr "Le tableau doit contenir des demi-mots (type 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Les valeurs du tableau doivent être des octets simples 'bytes'."
|
msgstr "Les valeurs du tableau doivent être des octets simples 'bytes'."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -372,9 +372,9 @@ msgstr "La profondeur de bit doit être un multiple de 8."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Les deux entrées doivent supporter les interruptions matérielles"
|
msgstr "Les deux entrées doivent supporter les interruptions matérielles"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -843,6 +843,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -879,7 +884,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Argument invalide"
|
msgstr "Argument invalide"
|
||||||
|
|
||||||
@ -936,7 +941,7 @@ msgstr "Phase invalide"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Broche invalide"
|
msgstr "Broche invalide"
|
||||||
|
|
||||||
@ -1052,7 +1057,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1140,7 +1145,7 @@ msgstr "Il n'y a plus d'espace libre sur le périphérique"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Fichier/dossier introuvable"
|
msgstr "Fichier/dossier introuvable"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1230,7 +1235,7 @@ msgstr "La broche ne peut être utilisée pour l'ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1255,11 +1260,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr "Appuyez sur une touche pour entrer sur REPL ou CTRL-D pour recharger."
|
msgstr "Appuyez sur une touche pour entrer sur REPL ou CTRL-D pour recharger."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Le tirage 'pull' n'est pas utilisé quand la direction est 'output'."
|
msgstr "Le tirage 'pull' n'est pas utilisé quand la direction est 'output'."
|
||||||
@ -2881,12 +2881,12 @@ msgstr "l'annotation de return doit être un identifiant"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "return attendait '%q' mais a reçu '%q'"
|
msgstr "return attendait '%q' mais a reçu '%q'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
|
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
|
||||||
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
|
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -53,7 +53,7 @@ msgstr " output:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c necessita di int o char"
|
msgstr "%%c necessita di int o char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -330,7 +330,7 @@ msgstr "Array deve avere mezzoparole (typo 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Valori di Array dovrebbero essere bytes singulari"
|
msgstr "Valori di Array dovrebbero essere bytes singulari"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -368,9 +368,9 @@ msgstr "La profondità di bit deve essere multipla di 8."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Entrambi i pin devono supportare gli interrupt hardware"
|
msgstr "Entrambi i pin devono supportare gli interrupt hardware"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -840,6 +840,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -875,7 +880,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Argomento non valido"
|
msgstr "Argomento non valido"
|
||||||
|
|
||||||
@ -932,7 +937,7 @@ msgstr "Fase non valida"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Pin non valido"
|
msgstr "Pin non valido"
|
||||||
|
|
||||||
@ -1049,7 +1054,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1137,7 +1142,7 @@ msgstr "Non che spazio sul dispositivo"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Nessun file/directory esistente"
|
msgstr "Nessun file/directory esistente"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1225,7 +1230,7 @@ msgstr "Il pin non ha capacità di ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1251,11 +1256,6 @@ msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Premi un qualunque tasto per entrare nel REPL. Usa CTRL-D per ricaricare."
|
"Premi un qualunque tasto per entrare nel REPL. Usa CTRL-D per ricaricare."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2856,12 +2856,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "return aspettava '%q' ma ha ottenuto '%q'"
|
msgstr "return aspettava '%q' ma ha ottenuto '%q'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
32
locale/ko.po
32
locale/ko.po
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
|
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||||
@ -55,7 +55,7 @@ msgstr " 산출:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c 전수(int)또는 캐릭터(char)필요합니다"
|
msgstr "%%c 전수(int)또는 캐릭터(char)필요합니다"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -329,7 +329,7 @@ msgstr ""
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -366,9 +366,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -828,6 +828,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -863,7 +868,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -918,7 +923,7 @@ msgstr "단계가 잘못되었습니다"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "핀이 잘못되었습니다"
|
msgstr "핀이 잘못되었습니다"
|
||||||
|
|
||||||
@ -1033,7 +1038,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1121,7 +1126,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1200,7 +1205,7 @@ msgstr ""
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1224,11 +1229,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2802,12 +2802,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
32
locale/pl.po
32
locale/pl.po
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
|
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
|
||||||
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
|
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
|
||||||
"Language-Team: pl\n"
|
"Language-Team: pl\n"
|
||||||
@ -54,7 +54,7 @@ msgstr " wyjście:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c wymaga int lub char"
|
msgstr "%%c wymaga int lub char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -328,7 +328,7 @@ msgstr "Tablica musi zawierać pół-słowa (typ 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Wartości powinny być bajtami."
|
msgstr "Wartości powinny być bajtami."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -365,9 +365,9 @@ msgstr "Głębia musi być wielokrotnością 8."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Obie nóżki muszą wspierać przerwania sprzętowe"
|
msgstr "Obie nóżki muszą wspierać przerwania sprzętowe"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -829,6 +829,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -864,7 +869,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Zły argument"
|
msgstr "Zły argument"
|
||||||
|
|
||||||
@ -919,7 +924,7 @@ msgstr "Zła faza"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Zła nóżka"
|
msgstr "Zła nóżka"
|
||||||
|
|
||||||
@ -1034,7 +1039,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1122,7 +1127,7 @@ msgstr "Brak miejsca"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Brak pliku/katalogu"
|
msgstr "Brak pliku/katalogu"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1201,7 +1206,7 @@ msgstr "Nóżka nie obsługuje ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1225,11 +1230,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr "Dowolny klawisz aby uruchomić konsolę. CTRL-D aby przeładować."
|
msgstr "Dowolny klawisz aby uruchomić konsolę. CTRL-D aby przeładować."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Podciągnięcie nieużywane w trybie wyjścia."
|
msgstr "Podciągnięcie nieużywane w trybie wyjścia."
|
||||||
@ -2807,12 +2807,12 @@ msgstr "anotacja wartości musi być identyfikatorem"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "return oczekiwał '%q', a jest '%q'"
|
msgstr "return oczekiwał '%q', a jest '%q'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -8,7 +8,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: PACKAGE VERSION\n"
|
"Project-Id-Version: PACKAGE VERSION\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
|
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
|
||||||
"Last-Translator: \n"
|
"Last-Translator: \n"
|
||||||
"Language-Team: \n"
|
"Language-Team: \n"
|
||||||
@ -53,7 +53,7 @@ msgstr " saída:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c requer int ou char"
|
msgstr "%%c requer int ou char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -330,7 +330,7 @@ msgstr "Array deve conter meias palavras (tipo 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -365,9 +365,9 @@ msgstr ""
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Ambos os pinos devem suportar interrupções de hardware"
|
msgstr "Ambos os pinos devem suportar interrupções de hardware"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -833,6 +833,11 @@ msgstr ""
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -868,7 +873,7 @@ msgstr ""
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Argumento inválido"
|
msgstr "Argumento inválido"
|
||||||
|
|
||||||
@ -925,7 +930,7 @@ msgstr "Fase Inválida"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Pino inválido"
|
msgstr "Pino inválido"
|
||||||
|
|
||||||
@ -1041,7 +1046,7 @@ msgstr ""
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1129,7 +1134,7 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1211,7 +1216,7 @@ msgstr "O pino não tem recursos de ADC"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1236,11 +1241,6 @@ msgstr ""
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2819,12 +2819,12 @@ msgstr ""
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -7,7 +7,7 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: circuitpython-cn\n"
|
"Project-Id-Version: circuitpython-cn\n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2020-04-14 17:13-0700\n"
|
"POT-Creation-Date: 2020-04-20 16:57-0700\n"
|
||||||
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
|
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
|
||||||
"Last-Translator: hexthat\n"
|
"Last-Translator: hexthat\n"
|
||||||
"Language-Team: Chinese Hanyu Pinyin\n"
|
"Language-Team: Chinese Hanyu Pinyin\n"
|
||||||
@ -60,7 +60,7 @@ msgstr " shūchū:\n"
|
|||||||
msgid "%%c requires int or char"
|
msgid "%%c requires int or char"
|
||||||
msgstr "%%c xūyào zhěngshù huò char"
|
msgstr "%%c xūyào zhěngshù huò char"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
msgid "%d address pins and %d rgb pins indicate a height of %d, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -334,7 +334,7 @@ msgstr "Shùzǔ bìxū bāohán bàn zìshù (type 'H')"
|
|||||||
msgid "Array values should be single bytes."
|
msgid "Array values should be single bytes."
|
||||||
msgstr "Shùzǔ zhí yīnggāi shì dāngè zì jié."
|
msgstr "Shùzǔ zhí yīnggāi shì dāngè zì jié."
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "At most %d %q may be specified (not %d)"
|
msgid "At most %d %q may be specified (not %d)"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -371,9 +371,9 @@ msgstr "Bǐtè shēndù bìxū shì 8 bèi yǐshàng."
|
|||||||
msgid "Both pins must support hardware interrupts"
|
msgid "Both pins must support hardware interrupts"
|
||||||
msgstr "Liǎng gè yǐn jiǎo dōu bìxū zhīchí yìngjiàn zhōngduàn"
|
msgstr "Liǎng gè yǐn jiǎo dōu bìxū zhīchí yìngjiàn zhōngduàn"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
#: shared-bindings/framebufferio/FramebufferDisplay.c
|
||||||
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr "Liàngdù bìxū wèi 0-1.0"
|
msgstr "Liàngdù bìxū wèi 0-1.0"
|
||||||
|
|
||||||
@ -837,6 +837,11 @@ msgstr "Jiāmì bùzú"
|
|||||||
msgid "Internal define error"
|
msgid "Internal define error"
|
||||||
msgstr "Nèibù dìngyì cuòwù"
|
msgstr "Nèibù dìngyì cuòwù"
|
||||||
|
|
||||||
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Internal error #%d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
#: ports/atmel-samd/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "Invalid %q pin"
|
msgid "Invalid %q pin"
|
||||||
@ -872,7 +877,7 @@ msgstr "Wúxiào de SPI yǐn jiǎo xuǎnzé"
|
|||||||
msgid "Invalid UART pin selection"
|
msgid "Invalid UART pin selection"
|
||||||
msgstr "Wúxiào de UART yǐn jiǎo xuǎnzé"
|
msgstr "Wúxiào de UART yǐn jiǎo xuǎnzé"
|
||||||
|
|
||||||
#: py/moduerrno.c shared-module/_protomatter/Protomatter.c
|
#: py/moduerrno.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid argument"
|
msgid "Invalid argument"
|
||||||
msgstr "Wúxiào de cānshù"
|
msgstr "Wúxiào de cānshù"
|
||||||
|
|
||||||
@ -927,7 +932,7 @@ msgstr "Jiēduàn wúxiào"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
#: ports/atmel-samd/common-hal/touchio/TouchIn.c
|
||||||
#: shared-bindings/pulseio/PWMOut.c shared-module/_protomatter/Protomatter.c
|
#: shared-bindings/pulseio/PWMOut.c shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "Invalid pin"
|
msgid "Invalid pin"
|
||||||
msgstr "Wúxiào de yǐn jiǎo"
|
msgstr "Wúxiào de yǐn jiǎo"
|
||||||
|
|
||||||
@ -1042,7 +1047,7 @@ msgstr "Bìxū shì %q zi lèi."
|
|||||||
msgid "Must provide MISO or MOSI pin"
|
msgid "Must provide MISO or MOSI pin"
|
||||||
msgstr "Bìxū tígōng MISO huò MOSI yǐn jiǎo"
|
msgstr "Bìxū tígōng MISO huò MOSI yǐn jiǎo"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Must use a multiple of 6 rgb pins, not %d"
|
msgid "Must use a multiple of 6 rgb pins, not %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1130,7 +1135,7 @@ msgstr "Shèbèi shàng méiyǒu kònggé"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Méiyǒu cǐ lèi wénjiàn/mùlù"
|
msgstr "Méiyǒu cǐ lèi wénjiàn/mùlù"
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
#: shared-module/rgbmatrix/RGBMatrix.c
|
||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1215,7 +1220,7 @@ msgstr "Pin méiyǒu ADC nénglì"
|
|||||||
msgid "Pin number already reserved by EXTI"
|
msgid "Pin number already reserved by EXTI"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid ""
|
msgid ""
|
||||||
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
"Pinout uses %d bytes per element, which consumes more than the ideal %d "
|
||||||
@ -1239,11 +1244,6 @@ msgstr "Qiánzhuì huǎnchōng qū bìxū zài duī shàng"
|
|||||||
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
msgid "Press any key to enter the REPL. Use CTRL-D to reload."
|
||||||
msgstr "Àn xià rènhé jiàn jìnrù REPL. Shǐyòng CTRL-D chóngxīn jiāzài."
|
msgstr "Àn xià rènhé jiàn jìnrù REPL. Shǐyòng CTRL-D chóngxīn jiāzài."
|
||||||
|
|
||||||
#: shared-module/_protomatter/Protomatter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Protomatter internal error #%d"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/digitalio/DigitalInOut.c
|
#: shared-bindings/digitalio/DigitalInOut.c
|
||||||
msgid "Pull not used when direction is output."
|
msgid "Pull not used when direction is output."
|
||||||
msgstr "Fāngxiàng shūchū shí Pull méiyǒu shǐyòng."
|
msgstr "Fāngxiàng shūchū shí Pull méiyǒu shǐyòng."
|
||||||
@ -2836,12 +2836,12 @@ msgstr "fǎnhuí zhùshì bìxū shì biāozhì fú"
|
|||||||
msgid "return expected '%q' but got '%q'"
|
msgid "return expected '%q' but got '%q'"
|
||||||
msgstr "fǎnhuí yùqí de '%q' dàn huòdéle '%q'"
|
msgstr "fǎnhuí yùqí de '%q' dàn huòdéle '%q'"
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] duplicates another pin assignment"
|
msgid "rgb_pins[%d] duplicates another pin assignment"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_protomatter/Protomatter.c
|
#: shared-bindings/rgbmatrix/RGBMatrix.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "rgb_pins[%d] is not on the same port as clock"
|
msgid "rgb_pins[%d] is not on the same port as clock"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -14,7 +14,7 @@ CIRCUITPY_AUDIOBUSIO = 0
|
|||||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_NETWORK = 0
|
CIRCUITPY_NETWORK = 0
|
||||||
CIRCUITPY_PROTOMATTER = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
CIRCUITPY_PS2IO = 0
|
CIRCUITPY_PS2IO = 0
|
||||||
CIRCUITPY_AUDIOMP3 = 0
|
CIRCUITPY_AUDIOMP3 = 0
|
||||||
|
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
*
|
*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, 2020 Radomir
|
||||||
|
* Dopieralski
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -78,7 +79,7 @@ uint8_t display_init_sequence[] = {
|
|||||||
0xc4, 2, 0x8a, 0xee,
|
0xc4, 2, 0x8a, 0xee,
|
||||||
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
|
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
|
||||||
0x2a, 0, // _INVOFF
|
0x2a, 0, // _INVOFF
|
||||||
0x36, 1, 0xa8, // _MADCTL
|
0x36, 1, 0xa0, // _MADCTL
|
||||||
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 cycle osc equalie,
|
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 cycle osc equalie,
|
||||||
// fix on VTL
|
// fix on VTL
|
||||||
0x3a, 1, 0x05, // COLMOD - 16bit color
|
0x3a, 1, 0x05, // COLMOD - 16bit color
|
||||||
|
@ -17,7 +17,7 @@ CIRCUITPY_AUDIOBUSIO = 0
|
|||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||||
CIRCUITPY_GAMEPAD = 0
|
CIRCUITPY_GAMEPAD = 0
|
||||||
CIRCUITPY_PROTOMATTER = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
CIRCUITPY_PS2IO = 0
|
CIRCUITPY_PS2IO = 0
|
||||||
|
|
||||||
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
||||||
|
@ -19,7 +19,7 @@ CIRCUITPY_AUDIOBUSIO = 0
|
|||||||
CIRCUITPY_DISPLAYIO = 0
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
CIRCUITPY_FRAMEBUFFERIO = 0
|
CIRCUITPY_FRAMEBUFFERIO = 0
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
CIRCUITPY_PROTOMATTER = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
|
|
||||||
# Include these Python libraries in firmware.
|
# Include these Python libraries in firmware.
|
||||||
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
#FROZEN_MPY_DIRS += $(TOP)/frozen/Adafruit_CircuitPython_BusDevice
|
||||||
|
@ -3,7 +3,8 @@
|
|||||||
*
|
*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries, 2020 Radomir
|
||||||
|
* Dopieralski
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
* of this software and associated documentation files (the "Software"), to deal
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
@ -50,7 +51,7 @@ uint8_t display_init_sequence[] = {
|
|||||||
0xc4, 2, 0x8a, 0xee,
|
0xc4, 2, 0x8a, 0xee,
|
||||||
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
|
0xc5, 1, 0x0e, // _VMCTR1 VCOMH = 4V, VOML = -1.1V
|
||||||
0x2a, 0, // _INVOFF
|
0x2a, 0, // _INVOFF
|
||||||
0x36, 1, 0xa0, // _MADCTL bottom to top refresh
|
0x36, 1, 0xa8, // _MADCTL bottom to top refresh
|
||||||
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
|
// 1 clk cycle nonoverlap, 2 cycle gate rise, 3 sycle osc equalie,
|
||||||
// fix on VTL
|
// fix on VTL
|
||||||
0x3a, 1, 0x05, // COLMOD - 16bit color
|
0x3a, 1, 0x05, // COLMOD - 16bit color
|
||||||
|
@ -28,7 +28,7 @@ CIRCUITPY_GAMEPAD = 0
|
|||||||
CIRCUITPY_I2CSLAVE = 0
|
CIRCUITPY_I2CSLAVE = 0
|
||||||
CIRCUITPY_NETWORK = 0
|
CIRCUITPY_NETWORK = 0
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_PROTOMATTER = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
CIRCUITPY_PS2IO = 0
|
CIRCUITPY_PS2IO = 0
|
||||||
CIRCUITPY_USB_HID = 0
|
CIRCUITPY_USB_HID = 0
|
||||||
CIRCUITPY_RTC = 0
|
CIRCUITPY_RTC = 0
|
||||||
|
@ -26,7 +26,7 @@ CIRCUITPY_GAMEPAD = 0
|
|||||||
CIRCUITPY_I2CSLAVE = 0
|
CIRCUITPY_I2CSLAVE = 0
|
||||||
CIRCUITPY_NETWORK = 0
|
CIRCUITPY_NETWORK = 0
|
||||||
CIRCUITPY_TOUCHIO = 0
|
CIRCUITPY_TOUCHIO = 0
|
||||||
CIRCUITPY_PROTOMATTER = 0
|
CIRCUITPY_RGBMATRIX = 0
|
||||||
CIRCUITPY_PS2IO = 0
|
CIRCUITPY_PS2IO = 0
|
||||||
CIRCUITPY_USB_HID = 0
|
CIRCUITPY_USB_HID = 0
|
||||||
|
|
||||||
|
@ -26,12 +26,12 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "common-hal/_protomatter/Protomatter.h"
|
#include "common-hal/rgbmatrix/RGBMatrix.h"
|
||||||
|
|
||||||
#include "samd/timers.h"
|
#include "samd/timers.h"
|
||||||
#include "timer_handler.h"
|
#include "timer_handler.h"
|
||||||
|
|
||||||
void *common_hal_protomatter_timer_allocate() {
|
void *common_hal_rgbmatrix_timer_allocate() {
|
||||||
uint8_t timer_index = find_free_timer();
|
uint8_t timer_index = find_free_timer();
|
||||||
if (timer_index == 0xff) {
|
if (timer_index == 0xff) {
|
||||||
return NULL;
|
return NULL;
|
||||||
@ -49,16 +49,16 @@ static uint8_t tc_index_from_ptr(void* ptr) {
|
|||||||
return 0xff;
|
return 0xff;
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_enable(void* ptr) {
|
void common_hal_rgbmatrix_timer_enable(void* ptr) {
|
||||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||||
if (timer_index == 0xff) {
|
if (timer_index == 0xff) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
set_timer_handler(true, timer_index, TC_HANDLER_PROTOMATTER);
|
set_timer_handler(true, timer_index, TC_HANDLER_RGBMATRIX);
|
||||||
turn_on_clocks(true, timer_index, 1);
|
turn_on_clocks(true, timer_index, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_disable(void* ptr) {
|
void common_hal_rgbmatrix_timer_disable(void* ptr) {
|
||||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||||
if (timer_index == 0xff) {
|
if (timer_index == 0xff) {
|
||||||
return;
|
return;
|
||||||
@ -67,7 +67,7 @@ void common_hal_protomatter_timer_disable(void* ptr) {
|
|||||||
tc_set_enable(ptr, false);
|
tc_set_enable(ptr, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_free(void* ptr) {
|
void common_hal_rgbmatrix_timer_free(void* ptr) {
|
||||||
uint8_t timer_index = tc_index_from_ptr(ptr);
|
uint8_t timer_index = tc_index_from_ptr(ptr);
|
||||||
if (timer_index == 0xff) {
|
if (timer_index == 0xff) {
|
||||||
return;
|
return;
|
@ -24,12 +24,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
|
||||||
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
|
||||||
|
|
||||||
void *common_hal_protomatter_timer_allocate(void);
|
void *common_hal_rgbmatrix_timer_allocate(void);
|
||||||
void common_hal_protomatter_timer_enable(void*);
|
void common_hal_rgbmatrix_timer_enable(void*);
|
||||||
void common_hal_protomatter_timer_disable(void*);
|
void common_hal_rgbmatrix_timer_disable(void*);
|
||||||
void common_hal_protomatter_timer_free(void*);
|
void common_hal_rgbmatrix_timer_free(void*);
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -70,9 +70,9 @@ CIRCUITPY_ULAB = 1
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifndef CIRCUITPY_PROTOMATTER
|
ifndef CIRCUITPY_RGBMATRIX
|
||||||
ifneq ($(CIRCUITPY_SMALL_BUILD),1)
|
ifneq ($(CIRCUITPY_SMALL_BUILD),1)
|
||||||
CIRCUITPY_PROTOMATTER = 1
|
CIRCUITPY_RGBMATRIX = 1
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -70,8 +70,8 @@ void shared_timer_handler(bool is_tc, uint8_t index) {
|
|||||||
frequencyin_interrupt_handler(index);
|
frequencyin_interrupt_handler(index);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
case TC_HANDLER_PROTOMATTER:
|
case TC_HANDLER_RGBMATRIX:
|
||||||
#if CIRCUITPY_PROTOMATTER
|
#if CIRCUITPY_RGBMATRIX
|
||||||
_PM_IRQ_HANDLER();
|
_PM_IRQ_HANDLER();
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
|
@ -30,7 +30,7 @@
|
|||||||
#define TC_HANDLER_PULSEOUT 0x1
|
#define TC_HANDLER_PULSEOUT 0x1
|
||||||
#define TC_HANDLER_PEW 0x2
|
#define TC_HANDLER_PEW 0x2
|
||||||
#define TC_HANDLER_FREQUENCYIN 0x3
|
#define TC_HANDLER_FREQUENCYIN 0x3
|
||||||
#define TC_HANDLER_PROTOMATTER 0x4
|
#define TC_HANDLER_RGBMATRIX 0x4
|
||||||
#define TC_HANDLER_PULSEIN 0x5
|
#define TC_HANDLER_PULSEIN 0x5
|
||||||
|
|
||||||
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler);
|
void set_timer_handler(bool is_tc, uint8_t index, uint8_t timer_handler);
|
||||||
|
61
ports/litex/common-hal/os/__init__.c
Normal file
61
ports/litex/common-hal/os/__init__.c
Normal file
@ -0,0 +1,61 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the MicroPython project, http://micropython.org/
|
||||||
|
*
|
||||||
|
* The MIT License (MIT)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 Sean Cross
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "genhdr/mpversion.h"
|
||||||
|
#include "py/mpconfig.h"
|
||||||
|
#include "py/objstr.h"
|
||||||
|
#include "py/objtuple.h"
|
||||||
|
#include "py/qstr.h"
|
||||||
|
|
||||||
|
STATIC const qstr os_uname_info_fields[] = {
|
||||||
|
MP_QSTR_sysname, MP_QSTR_nodename,
|
||||||
|
MP_QSTR_release, MP_QSTR_version, MP_QSTR_machine
|
||||||
|
};
|
||||||
|
STATIC const MP_DEFINE_STR_OBJ(os_uname_info_sysname_obj, "litex");
|
||||||
|
STATIC const MP_DEFINE_STR_OBJ(os_uname_info_nodename_obj, "litex");
|
||||||
|
STATIC const MP_DEFINE_STR_OBJ(os_uname_info_release_obj, MICROPY_VERSION_STRING);
|
||||||
|
STATIC const MP_DEFINE_STR_OBJ(os_uname_info_version_obj, MICROPY_GIT_TAG " on " MICROPY_BUILD_DATE);
|
||||||
|
STATIC const MP_DEFINE_STR_OBJ(os_uname_info_machine_obj, MICROPY_HW_BOARD_NAME " with " MICROPY_HW_MCU_NAME);
|
||||||
|
|
||||||
|
|
||||||
|
STATIC MP_DEFINE_ATTRTUPLE(
|
||||||
|
os_uname_info_obj,
|
||||||
|
os_uname_info_fields,
|
||||||
|
5,
|
||||||
|
(mp_obj_t)&os_uname_info_sysname_obj,
|
||||||
|
(mp_obj_t)&os_uname_info_nodename_obj,
|
||||||
|
(mp_obj_t)&os_uname_info_release_obj,
|
||||||
|
(mp_obj_t)&os_uname_info_version_obj,
|
||||||
|
(mp_obj_t)&os_uname_info_machine_obj
|
||||||
|
);
|
||||||
|
|
||||||
|
mp_obj_t common_hal_os_uname(void) {
|
||||||
|
return (mp_obj_t)&os_uname_info_obj;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool common_hal_os_urandom(uint8_t* buffer, uint32_t length) {
|
||||||
|
return false;
|
||||||
|
}
|
@ -28,9 +28,12 @@
|
|||||||
#ifndef FPGA_MPCONFIGPORT_H__
|
#ifndef FPGA_MPCONFIGPORT_H__
|
||||||
#define FPGA_MPCONFIGPORT_H__
|
#define FPGA_MPCONFIGPORT_H__
|
||||||
|
|
||||||
#define MICROPY_PY_UJSON (0)
|
|
||||||
#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
|
#define CIRCUITPY_INTERNAL_NVM_SIZE (0)
|
||||||
#define MICROPY_NLR_THUMB (0)
|
#define MICROPY_NLR_THUMB (0)
|
||||||
|
#define MICROPY_PY_COLLECTIONS_ORDEREDDICT (1)
|
||||||
|
#define MICROPY_PY_REVERSE_SPECIAL_METHODS (1)
|
||||||
|
#define MICROPY_PY_UBINASCII (1)
|
||||||
|
#define MICROPY_PY_UJSON (1)
|
||||||
|
|
||||||
#include "py/circuitpy_mpconfig.h"
|
#include "py/circuitpy_mpconfig.h"
|
||||||
|
|
||||||
|
@ -12,20 +12,20 @@ USB_SERIAL_NUMBER_LENGTH = 30
|
|||||||
# Longints can be implemented as mpz, as longlong, or not
|
# Longints can be implemented as mpz, as longlong, or not
|
||||||
LONGINT_IMPL = MPZ
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
#Reduced feature set for early port
|
CIRCUITPY_ANALOGIO = 0
|
||||||
CIRCUITPY_MINIMAL_BUILD = 1
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
|
CIRCUITPY_AUDIOIO = 0
|
||||||
|
CIRCUITPY_BITBANGIO = 0
|
||||||
|
CIRCUITPY_BOARD = 0
|
||||||
|
CIRCUITPY_BUSIO = 0
|
||||||
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
|
CIRCUITPY_I2CSLAVE = 0
|
||||||
|
CIRCUITPY_NVM = 0
|
||||||
|
CIRCUITPY_PULSEIO = 0
|
||||||
|
CIRCUITPY_ROTARYIO = 0
|
||||||
|
CIRCUITPY_RTC = 0
|
||||||
|
|
||||||
# CIRCUITPY_BOARD = 1
|
# Enable USB support
|
||||||
# CIRCUITPY_DIGITALIO = 1
|
|
||||||
# CIRCUITPY_ANALOGIO = 1
|
|
||||||
# CIRCUITPY_MICROCONTROLLER = 1
|
|
||||||
# CIRCUITPY_BUSIO = 1
|
|
||||||
# CIRCUITPY_PULSEIO = 1
|
|
||||||
# CIRCUITPY_OS = 1
|
|
||||||
# CIRCUITPY_STORAGE = 1
|
|
||||||
# CIRCUITPY_RANDOM = 1
|
|
||||||
CIRCUITPY_USB_HID = 1
|
CIRCUITPY_USB_HID = 1
|
||||||
CIRCUITPY_USB_MIDI = 1
|
CIRCUITPY_USB_MIDI = 1
|
||||||
|
|
||||||
#ifeq ($(MCU_SUB_VARIANT), stm32f412zx)
|
|
||||||
#endif
|
|
||||||
|
@ -154,7 +154,7 @@ __attribute__((used, naked)) void Reset_Handler(void) {
|
|||||||
/* Disable MPU */
|
/* Disable MPU */
|
||||||
ARM_MPU_Disable();
|
ARM_MPU_Disable();
|
||||||
|
|
||||||
// Copy all of the code to run from ITCM. Do this while the MPU is disabled because we write
|
// Copy all of the itcm code to run from ITCM. Do this while the MPU is disabled because we write
|
||||||
// protect it.
|
// protect it.
|
||||||
for (uint32_t i = 0; i < ((size_t) &_ld_itcm_size) / 4; i++) {
|
for (uint32_t i = 0; i < ((size_t) &_ld_itcm_size) / 4; i++) {
|
||||||
(&_ld_itcm_destination)[i] = (&_ld_itcm_flash_copy)[i];
|
(&_ld_itcm_destination)[i] = (&_ld_itcm_flash_copy)[i];
|
||||||
|
@ -26,24 +26,24 @@
|
|||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
|
|
||||||
#include "common-hal/_protomatter/Protomatter.h"
|
#include "common-hal/rgbmatrix/RGBMatrix.h"
|
||||||
|
|
||||||
#include "peripherals/nrf/timers.h"
|
#include "peripherals/nrf/timers.h"
|
||||||
|
|
||||||
extern void _PM_IRQ_HANDLER(void);
|
extern void _PM_IRQ_HANDLER(void);
|
||||||
|
|
||||||
void *common_hal_protomatter_timer_allocate() {
|
void *common_hal_rgbmatrix_timer_allocate() {
|
||||||
nrfx_timer_t *timer = nrf_peripherals_allocate_timer_or_throw();
|
nrfx_timer_t *timer = nrf_peripherals_allocate_timer_or_throw();
|
||||||
nrf_peripherals_timer_never_reset(timer);
|
nrf_peripherals_timer_never_reset(timer);
|
||||||
return timer->p_reg;
|
return timer->p_reg;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static void protomatter_event_handler(nrf_timer_event_t event_type, void *p_context) {
|
static void rgbmatrix_event_handler(nrf_timer_event_t event_type, void *p_context) {
|
||||||
_PM_IRQ_HANDLER();
|
_PM_IRQ_HANDLER();
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_enable(void* ptr) {
|
void common_hal_rgbmatrix_timer_enable(void* ptr) {
|
||||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||||
static const nrfx_timer_config_t timer_config = {
|
static const nrfx_timer_config_t timer_config = {
|
||||||
.frequency = NRF_TIMER_FREQ_16MHz,
|
.frequency = NRF_TIMER_FREQ_16MHz,
|
||||||
@ -52,15 +52,15 @@ void common_hal_protomatter_timer_enable(void* ptr) {
|
|||||||
.interrupt_priority = NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY,
|
.interrupt_priority = NRFX_TIMER_DEFAULT_CONFIG_IRQ_PRIORITY,
|
||||||
.p_context = NULL,
|
.p_context = NULL,
|
||||||
};
|
};
|
||||||
nrfx_timer_init(timer, &timer_config, &protomatter_event_handler);
|
nrfx_timer_init(timer, &timer_config, &rgbmatrix_event_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_disable(void* ptr) {
|
void common_hal_rgbmatrix_timer_disable(void* ptr) {
|
||||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||||
nrfx_timer_uninit(timer);
|
nrfx_timer_uninit(timer);
|
||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_protomatter_timer_free(void* ptr) {
|
void common_hal_rgbmatrix_timer_free(void* ptr) {
|
||||||
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
nrfx_timer_t *timer = nrf_peripherals_timer_from_reg(ptr);
|
||||||
nrf_peripherals_free_timer(timer);
|
nrf_peripherals_free_timer(timer);
|
||||||
}
|
}
|
@ -24,12 +24,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
#ifndef MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
|
||||||
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_PROTOMATTER_PROTOMATTER_H
|
#define MICROPY_INCLUDED_ATMEL_SAMD_COMMON_HAL_RGBMATRIX_RGBMATRIX_H
|
||||||
|
|
||||||
void *common_hal_protomatter_timer_allocate(void);
|
void *common_hal_rgbmatrix_timer_allocate(void);
|
||||||
void common_hal_protomatter_timer_enable(void*);
|
void common_hal_rgbmatrix_timer_enable(void*);
|
||||||
void common_hal_protomatter_timer_disable(void*);
|
void common_hal_rgbmatrix_timer_disable(void*);
|
||||||
void common_hal_protomatter_timer_free(void*);
|
void common_hal_rgbmatrix_timer_free(void*);
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -51,7 +51,7 @@ endif
|
|||||||
# frequencyio not yet implemented
|
# frequencyio not yet implemented
|
||||||
CIRCUITPY_FREQUENCYIO = 0
|
CIRCUITPY_FREQUENCYIO = 0
|
||||||
|
|
||||||
CIRCUITPY_PROTOMATTER = 1
|
CIRCUITPY_RGBMATRIX = 1
|
||||||
CIRCUITPY_FRAMEBUFFERIO = 1
|
CIRCUITPY_FRAMEBUFFERIO = 1
|
||||||
|
|
||||||
# nRF52840-specific
|
# nRF52840-specific
|
||||||
|
@ -22,15 +22,14 @@
|
|||||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
# THE SOFTWARE.
|
# THE SOFTWARE.
|
||||||
# DEBUG = 1
|
|
||||||
|
|
||||||
# Select the board to build for.
|
# Select the board to build for.
|
||||||
ifeq ($(BOARD),)
|
ifeq ($(BOARD),)
|
||||||
$(error You must provide a BOARD parameter)
|
$(error You must provide a BOARD parameter)
|
||||||
else
|
else
|
||||||
ifeq ($(wildcard boards/$(BOARD)/.),)
|
ifeq ($(wildcard boards/$(BOARD)/.),)
|
||||||
$(error Invalid BOARD specified)
|
$(error Invalid BOARD specified)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# If the build directory is not given, make it reflect the board name.
|
# If the build directory is not given, make it reflect the board name.
|
||||||
@ -58,26 +57,28 @@ include $(TOP)/py/circuitpy_defns.mk
|
|||||||
|
|
||||||
CROSS_COMPILE = arm-none-eabi-
|
CROSS_COMPILE = arm-none-eabi-
|
||||||
|
|
||||||
#######################################
|
MCU_SERIES_LOWER = $(shell echo $(MCU_SERIES) | tr '[:upper:]' '[:lower:]')
|
||||||
# CFLAGS
|
MCU_VARIANT_LOWER = $(shell echo $(MCU_VARIANT) | tr '[:upper:]' '[:lower:]')
|
||||||
#######################################
|
|
||||||
|
HAL_DIR=st_driver/STM32$(MCU_SERIES)xx_HAL_Driver
|
||||||
|
|
||||||
INC += -I.
|
INC += -I.
|
||||||
INC += -I../..
|
INC += -I../..
|
||||||
INC += -I$(BUILD)
|
INC += -I$(BUILD)
|
||||||
INC += -I$(BUILD)/genhdr
|
INC += -I$(BUILD)/genhdr
|
||||||
INC += -I./st_driver/STM32F4xx_HAL_Driver/Inc
|
INC += -I./$(HAL_DIR)/Inc
|
||||||
INC += -I./st_driver/STM32F4xx_HAL_Driver/Inc/Legacy
|
INC += -I./$(HAL_DIR)/Inc/Legacy
|
||||||
INC += -I./st_driver/CMSIS/Device/ST/STM32F4xx/Include
|
INC += -I./st_driver/CMSIS/Device/ST/STM32$(MCU_SERIES)xx/Include
|
||||||
INC += -I./st_driver/CMSIS/Include
|
INC += -I./st_driver/CMSIS/Include
|
||||||
INC += -I./boards
|
INC += -I./boards
|
||||||
INC += -I./boards/$(BOARD)
|
INC += -I./boards/$(BOARD)
|
||||||
|
INC += -I./hal_conf
|
||||||
INC += -I./peripherals
|
INC += -I./peripherals
|
||||||
|
INC += -I./packages
|
||||||
INC += -I../../lib/mp-readline
|
INC += -I../../lib/mp-readline
|
||||||
INC += -I../../lib/tinyusb/src
|
INC += -I../../lib/tinyusb/src
|
||||||
INC += -I../../supervisor/shared/usb
|
INC += -I../../supervisor/shared/usb
|
||||||
|
|
||||||
|
|
||||||
#Debugging/Optimization
|
#Debugging/Optimization
|
||||||
ifeq ($(DEBUG), 1)
|
ifeq ($(DEBUG), 1)
|
||||||
CFLAGS += -ggdb
|
CFLAGS += -ggdb
|
||||||
@ -87,32 +88,37 @@ else
|
|||||||
CFLAGS += -Os -DNDEBUG
|
CFLAGS += -Os -DNDEBUG
|
||||||
CFLAGS += -ggdb
|
CFLAGS += -ggdb
|
||||||
# TODO: Test with -flto
|
# TODO: Test with -flto
|
||||||
### CFLAGS += -flto
|
# CFLAGS += -flto
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# MCU Series is defined by the HAL package and doesn't need to be specified here
|
||||||
|
C_DEFS = -D$(MCU_PACKAGE) -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER -D$(MCU_VARIANT)
|
||||||
|
|
||||||
C_DEFS = -DMCU_PACKAGE=$(MCU_PACKAGE) -DUSE_HAL_DRIVER -DUSE_FULL_LL_DRIVER -D$(CMSIS_MCU)
|
CFLAGS += $(INC) -Werror -Wall -std=gnu11 $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT) -nostdlib -nostartfiles
|
||||||
|
|
||||||
CFLAGS += $(INC) -Werror -Wall -std=gnu11 -nostdlib $(BASE_CFLAGS) $(C_DEFS) $(CFLAGS_MOD) $(COPT)
|
|
||||||
|
|
||||||
# Undo some warnings.
|
# Undo some warnings.
|
||||||
# STM32 apparently also uses undefined preprocessor variables quite casually,
|
# STM32 HAL uses undefined preprocessor variables, shadowed variables, casts that change alignment reqs
|
||||||
# so we can't do warning checks for these.
|
CFLAGS += -Wno-undef -Wno-shadow -Wno-cast-align
|
||||||
CFLAGS += -Wno-undef
|
|
||||||
# STM32 might do casts that increase alignment requirements.
|
|
||||||
CFLAGS += -Wno-cast-align
|
|
||||||
|
|
||||||
CFLAGS += \
|
CFLAGS += -mthumb -mabi=aapcs-linux
|
||||||
-mthumb \
|
|
||||||
-mabi=aapcs-linux \
|
|
||||||
-mfloat-abi=hard \
|
|
||||||
-mcpu=cortex-m4 \
|
|
||||||
-mfpu=fpv4-sp-d16
|
|
||||||
|
|
||||||
# TODO: check this
|
# Arm core selection
|
||||||
CFLAGS += -D__START=main
|
MCU_FLAGS_F4 = -mcpu=cortex-m4
|
||||||
|
MCU_FLAGS_F7 = -mcpu=cortex-m7
|
||||||
|
MCU_FLAGS_H7 = -mcpu=cortex-m7
|
||||||
|
CFLAGS += $(MCU_FLAGS_$(MCU_SERIES))
|
||||||
|
|
||||||
#need both command and valid file to use uf2 bootloader
|
# Select HAL file for distribution via mpconfigport
|
||||||
|
CFLAGS += -DSTM32_HAL_H='<stm32$(MCU_SERIES_LOWER)xx_hal.h>'
|
||||||
|
|
||||||
|
# Floating point settings
|
||||||
|
ifeq ($(MCU_VARIANT),$(filter $(MCU_VARIANT),STM32F765xx STM32F767xx STM32F769xx STM32H743xx))
|
||||||
|
CFLAGS += -mfpu=fpv5-d16 -mfloat-abi=hard
|
||||||
|
else
|
||||||
|
CFLAGS += -mfpu=fpv4-sp-d16 -mfloat-abi=hard
|
||||||
|
endif
|
||||||
|
|
||||||
|
# Need both command and valid file to use uf2 bootloader
|
||||||
ifndef LD_FILE
|
ifndef LD_FILE
|
||||||
ifneq ($(and $(UF2_BOOTLOADER),$(LD_BOOT)),)
|
ifneq ($(and $(UF2_BOOTLOADER),$(LD_BOOT)),)
|
||||||
LD_FILE = $(LD_BOOT)
|
LD_FILE = $(LD_BOOT)
|
||||||
@ -128,68 +134,70 @@ ifndef BOOTLOADER_OFFSET
|
|||||||
BOOTLOADER_OFFSET := 0x8000000
|
BOOTLOADER_OFFSET := 0x8000000
|
||||||
endif
|
endif
|
||||||
|
|
||||||
LDFLAGS = $(CFLAGS) -fshort-enums -Wl,-nostdlib -Wl,-T,$(LD_FILE) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections -specs=nano.specs
|
LDFLAGS = $(CFLAGS) -fshort-enums -Wl,-nostdlib -Wl,-T,$(LD_FILE) -Wl,-T,$(LD_COMMON) -Wl,-Map=$@.map -Wl,-cref -Wl,-gc-sections -specs=nano.specs
|
||||||
LIBS := -lgcc -lc
|
LIBS := -lgcc -lc
|
||||||
|
|
||||||
LDFLAGS += -mthumb -mcpu=cortex-m4
|
|
||||||
|
|
||||||
# Use toolchain libm if we're not using our own.
|
# Use toolchain libm if we're not using our own.
|
||||||
ifndef INTERNAL_LIBM
|
ifndef INTERNAL_LIBM
|
||||||
LIBS += -lm
|
LIBS += -lm
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# TinyUSB defines
|
# TinyUSB defines
|
||||||
CFLAGS += -DCFG_TUSB_MCU=OPT_MCU_STM32F4 -DCFG_TUD_CDC_RX_BUFSIZE=1024 -DCFG_TUD_CDC_TX_BUFSIZE=1024 -DCFG_TUD_MSC_BUFSIZE=4096 -DCFG_TUD_MIDI_RX_BUFSIZE=128 -DCFG_TUD_MIDI_TX_BUFSIZE=128
|
CFLAGS += \
|
||||||
|
-DCFG_TUSB_MCU=OPT_MCU_STM32$(MCU_SERIES) \
|
||||||
|
-DCFG_TUD_CDC_RX_BUFSIZE=1024 \
|
||||||
|
-DCFG_TUD_CDC_TX_BUFSIZE=1024 \
|
||||||
|
-DCFG_TUD_MSC_BUFSIZE=4096 \
|
||||||
|
-DCFG_TUD_MIDI_RX_BUFSIZE=128 \
|
||||||
|
-DCFG_TUD_MIDI_TX_BUFSIZE=128
|
||||||
|
|
||||||
|
SRC_STM32 = $(addprefix $(HAL_DIR)/Src/stm32$(MCU_SERIES_LOWER)xx_,\
|
||||||
|
hal_adc.c \
|
||||||
|
hal_adc_ex.c \
|
||||||
|
hal_dac.c \
|
||||||
|
hal_dac_ex.c \
|
||||||
|
hal_i2c.c \
|
||||||
|
hal_i2c_ex.c \
|
||||||
|
hal_qspi.c \
|
||||||
|
hal_rng.c \
|
||||||
|
hal_rtc.c \
|
||||||
|
hal_rtc_ex.c \
|
||||||
|
hal_spi.c \
|
||||||
|
hal_tim.c \
|
||||||
|
hal_tim_ex.c \
|
||||||
|
hal_uart.c \
|
||||||
|
hal_usart.c \
|
||||||
|
hal_rcc.c \
|
||||||
|
hal_rcc_ex.c \
|
||||||
|
hal_flash.c \
|
||||||
|
hal_flash_ex.c \
|
||||||
|
hal_gpio.c \
|
||||||
|
hal_dma_ex.c \
|
||||||
|
hal_dma.c \
|
||||||
|
hal_pwr.c \
|
||||||
|
hal_pwr_ex.c \
|
||||||
|
hal_cortex.c \
|
||||||
|
hal.c \
|
||||||
|
hal_exti.c \
|
||||||
|
hal_sd.c \
|
||||||
|
ll_gpio.c \
|
||||||
|
ll_adc.c \
|
||||||
|
ll_i2c.c \
|
||||||
|
ll_dma.c \
|
||||||
|
ll_sdmmc.c \
|
||||||
|
ll_usart.c \
|
||||||
|
ll_rcc.c \
|
||||||
|
ll_utils.c \
|
||||||
|
ll_exti.c \
|
||||||
|
)
|
||||||
|
|
||||||
######################################
|
# Need this to avoid UART linker problems. TODO: rewrite to use registered callbacks.
|
||||||
# source
|
# Does not exist for F4 and lower
|
||||||
######################################
|
ifeq ($(MCU_VARIANT),$(filter $(MCU_VARIANT),STM32F765xx STM32F767xx STM32F769xx STM32H743xx))
|
||||||
|
SRC_STM32 += $(HAL_DIR)/Src/stm32$(MCU_SERIES_LOWER)xx_hal_uart_ex.c
|
||||||
SRC_STM32 = \
|
endif
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_adc_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dac_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_i2c_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_qspi.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rng.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_spi.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_tim_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_uart.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_usart.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rcc_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_flash_ramfunc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_gpio.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_dma.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_pwr_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_rtc_ex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_cortex.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_exti.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_hal_sd.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_gpio.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_adc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_fsmc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_i2c.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_dma.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_sdmmc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_usart.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_rcc.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_utils.c \
|
|
||||||
st_driver/STM32F4xx_HAL_Driver/Src/stm32f4xx_ll_exti.c \
|
|
||||||
system_stm32f4xx.c
|
|
||||||
|
|
||||||
|
SRC_STM32 += boards/system_stm32$(MCU_SERIES_LOWER)xx.c
|
||||||
|
|
||||||
SRC_C += \
|
SRC_C += \
|
||||||
background.c \
|
background.c \
|
||||||
@ -197,10 +205,11 @@ SRC_C += \
|
|||||||
mphalport.c \
|
mphalport.c \
|
||||||
boards/$(BOARD)/board.c \
|
boards/$(BOARD)/board.c \
|
||||||
boards/$(BOARD)/pins.c \
|
boards/$(BOARD)/pins.c \
|
||||||
peripherals/stm32f4/$(MCU_SUB_VARIANT)/pins.c \
|
peripherals/stm32$(MCU_SERIES_LOWER)/$(MCU_VARIANT_LOWER)/pins.c \
|
||||||
peripherals/stm32f4/$(MCU_SUB_VARIANT)/clocks.c \
|
peripherals/stm32$(MCU_SERIES_LOWER)/$(MCU_VARIANT_LOWER)/clocks.c \
|
||||||
peripherals/stm32f4/$(MCU_SUB_VARIANT)/gpio.c \
|
peripherals/stm32$(MCU_SERIES_LOWER)/$(MCU_VARIANT_LOWER)/gpio.c \
|
||||||
peripherals/stm32f4/$(MCU_SUB_VARIANT)/periph.c \
|
peripherals/stm32$(MCU_SERIES_LOWER)/$(MCU_VARIANT_LOWER)/periph.c \
|
||||||
|
packages/$(MCU_PACKAGE).c\
|
||||||
lib/libc/string0.c \
|
lib/libc/string0.c \
|
||||||
lib/mp-readline/readline.c \
|
lib/mp-readline/readline.c \
|
||||||
lib/oofatfs/ff.c \
|
lib/oofatfs/ff.c \
|
||||||
@ -220,7 +229,7 @@ endif
|
|||||||
|
|
||||||
SRC_S = \
|
SRC_S = \
|
||||||
supervisor/cpu.s \
|
supervisor/cpu.s \
|
||||||
boards/startup_$(MCU_SUB_VARIANT).s
|
st_driver/CMSIS/Device/ST/STM32$(MCU_SERIES)xx/Source/Templates/gcc/startup_$(MCU_VARIANT_LOWER).s
|
||||||
|
|
||||||
SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
|
SRC_COMMON_HAL_EXPANDED = $(addprefix shared-bindings/, $(SRC_COMMON_HAL)) \
|
||||||
$(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS)) \
|
$(addprefix shared-bindings/, $(SRC_BINDINGS_ENUMS)) \
|
||||||
@ -254,6 +263,12 @@ SRC_QSTR += $(SRC_C) $(SRC_SUPERVISOR) $(SRC_MOD) $(SRC_COMMON_HAL_EXPANDED) $(S
|
|||||||
# Sources that only hold QSTRs after pre-processing.
|
# Sources that only hold QSTRs after pre-processing.
|
||||||
SRC_QSTR_PREPROCESSOR +=
|
SRC_QSTR_PREPROCESSOR +=
|
||||||
|
|
||||||
|
# Bin section settings specific to the STM32H7
|
||||||
|
ifeq ($(MCU_VARIANT),$(filter $(MCU_VARIANT),STM32H743xx))
|
||||||
|
MCU_SECTIONS = -j .isr_vector -j .text -j .data -j .itcm -j .dtcm_data $^ $@
|
||||||
|
else
|
||||||
|
MCU_SECTIONS = $^ $@
|
||||||
|
endif
|
||||||
|
|
||||||
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2
|
all: $(BUILD)/firmware.bin $(BUILD)/firmware.uf2
|
||||||
|
|
||||||
@ -264,13 +279,11 @@ $(BUILD)/firmware.elf: $(OBJ)
|
|||||||
|
|
||||||
$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
|
$(BUILD)/firmware.bin: $(BUILD)/firmware.elf
|
||||||
$(STEPECHO) "Create $@"
|
$(STEPECHO) "Create $@"
|
||||||
$(Q)$(OBJCOPY) -O binary $^ $@
|
$(Q)$(OBJCOPY) -O binary $(MCU_SECTIONS)
|
||||||
# $(Q)$(OBJCOPY) -O binary -j .vectors -j .text -j .data $^ $@
|
|
||||||
|
|
||||||
$(BUILD)/firmware.hex: $(BUILD)/firmware.elf
|
$(BUILD)/firmware.hex: $(BUILD)/firmware.elf
|
||||||
$(STEPECHO) "Create $@"
|
$(STEPECHO) "Create $@"
|
||||||
$(Q)$(OBJCOPY) -O ihex $^ $@
|
$(Q)$(OBJCOPY) -O ihex $(MCU_SECTIONS)
|
||||||
# $(Q)$(OBJCOPY) -O ihex -j .vectors -j .text -j .data $^ $@
|
|
||||||
|
|
||||||
$(BUILD)/firmware.uf2: $(BUILD)/firmware.hex
|
$(BUILD)/firmware.uf2: $(BUILD)/firmware.hex
|
||||||
$(ECHO) "Create $@"
|
$(ECHO) "Create $@"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
# CircuitPython Port To The ST Microelectronics STM32F4 Series
|
# CircuitPython Port To The ST Microelectronics STM32 Series
|
||||||
|
|
||||||
This is a port of CircuitPython to the STM32F4 series of chips.
|
This is a port of CircuitPython to the STM32 series of chips.
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_BACKGROUND_H
|
#ifndef MICROPY_INCLUDED_STM32_BACKGROUND_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_BACKGROUND_H
|
#define MICROPY_INCLUDED_STM32_BACKGROUND_H
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
|
|
||||||
void background_tasks_reset(void);
|
void background_tasks_reset(void);
|
||||||
void run_background_tasks(void);
|
void run_background_tasks(void);
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_BACKGROUND_H
|
#endif // MICROPY_INCLUDED_STM32_BACKGROUND_H
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F401 with bootloader (such as the Meowbit)
|
GNU linker script for STM32F401 with filesystem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -24,84 +24,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
/* RAM extents for the garbage collector */
|
/* RAM extents for the garbage collector */
|
||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F401 with bootloader (such as the Meowbit)
|
GNU linker script for STM32F401 with bootloader (such as the Meowbit). No internal fs.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -24,83 +24,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -24,84 +24,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
/* RAM extents for the garbage collector */
|
/* RAM extents for the garbage collector */
|
||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F405 with bootloader
|
GNU linker script for STM32F405 with bootloader
|
||||||
Based on Micropython
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -26,82 +25,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F405 via Micropython
|
GNU linker script for STM32F405, no filesystem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -25,83 +25,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F405 via Micropython
|
GNU linker script for STM32F405 with filesystem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -26,83 +26,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
GNU linker script for STM32F405 via Micropython
|
GNU linker script for STM32F407 with filesystem
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
/* Specify the memory areas */
|
||||||
@ -26,83 +26,3 @@ _estack = ORIGIN(RAM) + LENGTH(RAM);
|
|||||||
_ram_start = ORIGIN(RAM);
|
_ram_start = ORIGIN(RAM);
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
/* This first flash block is 16K annd the isr vectors only take up
|
|
||||||
about 400 bytes. Micropython pads this with files, but this didn't
|
|
||||||
work with the size of Circuitpython's ff object. */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
*(.text*) /* .text* sections (code) */
|
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
|
||||||
/* *(.glue_7) */ /* glue arm to thumb code */
|
|
||||||
/* *(.glue_7t) */ /* glue thumb to arm code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/* used by the startup to initialize data */
|
|
||||||
_sidata = LOADADDR(.data);
|
|
||||||
|
|
||||||
/* This is the initialized data section
|
|
||||||
The program executes knowing that the data is in the RAM
|
|
||||||
but the loader puts the initial values in the FLASH (inidata).
|
|
||||||
It is one task of the startup to copy the initial values from FLASH to RAM. */
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
*(.data*) /* .data* sections */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
} >RAM AT> FLASH_TEXT
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_heap_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
27
ports/stm/boards/STM32F411_fs.ld
Normal file
27
ports/stm/boards/STM32F411_fs.ld
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
GNU linker script for STM32F411 with filesystem
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
|
||||||
|
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
||||||
|
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 48K /* sectors 1,2,3 are 16K */
|
||||||
|
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 448K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
||||||
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
|
}
|
||||||
|
|
||||||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||||||
|
_minimum_stack_size = 2K;
|
||||||
|
_minimum_heap_size = 16K;
|
||||||
|
|
||||||
|
/* Define tho top end of the stack. The stack is full descending so begins just
|
||||||
|
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
||||||
|
aligned for a call. */
|
||||||
|
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
/* RAM extents for the garbage collector */
|
||||||
|
_ram_start = ORIGIN(RAM);
|
||||||
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
27
ports/stm/boards/STM32F411_nvm.ld
Normal file
27
ports/stm/boards/STM32F411_nvm.ld
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
GNU linker script for STM32F411 with nvm
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
|
||||||
|
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
||||||
|
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 32K /* sectors 1,2 are 16K */
|
||||||
|
FLASH_NVM (rwx) : ORIGIN = 0x0800C000, LENGTH = 16K /* sector 3 is 16K */
|
||||||
|
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 448K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
||||||
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
|
}
|
||||||
|
|
||||||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||||||
|
_minimum_stack_size = 2K;
|
||||||
|
_minimum_heap_size = 16K;
|
||||||
|
|
||||||
|
/* Define the top end of the stack. The stack is full descending so begins just
|
||||||
|
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
||||||
|
aligned for a call. */
|
||||||
|
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
/* RAM extents for the garbage collector */
|
||||||
|
_ram_start = ORIGIN(RAM);
|
||||||
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
27
ports/stm/boards/STM32F412_fs.ld
Normal file
27
ports/stm/boards/STM32F412_fs.ld
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
GNU linker script for STM32F412 with filesystem, tcm
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* entire flash */
|
||||||
|
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
||||||
|
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 48K /* sectors 1,2,3 are 16K */
|
||||||
|
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 960K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
||||||
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 256K
|
||||||
|
}
|
||||||
|
|
||||||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||||||
|
_minimum_stack_size = 2K;
|
||||||
|
_minimum_heap_size = 16K;
|
||||||
|
|
||||||
|
/* Define tho top end of the stack. The stack is full descending so begins just
|
||||||
|
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
||||||
|
aligned for a call. */
|
||||||
|
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
/* RAM extents for the garbage collector */
|
||||||
|
_ram_start = ORIGIN(RAM);
|
||||||
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
27
ports/stm/boards/STM32F767_fs.ld
Normal file
27
ports/stm/boards/STM32F767_fs.ld
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
/*
|
||||||
|
GNU linker script for STM32F767 with filesystem
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K /* entire flash */
|
||||||
|
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 32K /* sector 0 */
|
||||||
|
FLASH_FS (rx) : ORIGIN = 0x08008000, LENGTH = 96K /* sectors 1,2,3 are 32K */
|
||||||
|
FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 1920K /* sector 4 is 128K, sectors 5,6,7 are 256K */
|
||||||
|
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 512K
|
||||||
|
}
|
||||||
|
|
||||||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||||||
|
_minimum_stack_size = 2K;
|
||||||
|
_minimum_heap_size = 16K;
|
||||||
|
|
||||||
|
/* Define tho top end of the stack. The stack is full descending so begins just
|
||||||
|
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
||||||
|
aligned for a call. */
|
||||||
|
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
/* RAM extents for the garbage collector */
|
||||||
|
_ram_start = ORIGIN(RAM);
|
||||||
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
39
ports/stm/boards/STM32H743_fs.ld
Normal file
39
ports/stm/boards/STM32H743_fs.ld
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
/*
|
||||||
|
GNU linker script for STM32H743 with filesystem, tcm
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* Entry Point */
|
||||||
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
|
_ld_default_stack_size = 24K;
|
||||||
|
|
||||||
|
/* Specify the memory areas */
|
||||||
|
MEMORY
|
||||||
|
{
|
||||||
|
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 2048K
|
||||||
|
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 128K /* sector 0, 128K */
|
||||||
|
FLASH_FS (r) : ORIGIN = 0x08020000, LENGTH = 128K /* sector 1, 128K */
|
||||||
|
FLASH_TEXT (rx) : ORIGIN = 0x08040000, LENGTH = 1792K /* sectors 6*128 + 8*128 */
|
||||||
|
DTCM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
||||||
|
RAM (xrw) : ORIGIN = 0x24000000, LENGTH = 512K /* AXI SRAM */
|
||||||
|
SRAM_D2 (xrw) : ORIGIN = 0x30000000, LENGTH = 288K /* AHB1 SRAM */
|
||||||
|
SRAM_D3 (xrw) : ORIGIN = 0x30040000, LENGTH = 64K /* AHB2 SRAM */
|
||||||
|
ITCM (xrw) : ORIGIN = 0x00000000, LENGTH = 64K
|
||||||
|
}
|
||||||
|
|
||||||
|
/* produce a link error if there is not this amount of RAM for these sections */
|
||||||
|
_minimum_stack_size = 2K;
|
||||||
|
_minimum_heap_size = 16K;
|
||||||
|
|
||||||
|
/* brainless copy paste for stack code. Results in ambiguous hard crash */
|
||||||
|
/* _ld_default_stack_size = 20K; */
|
||||||
|
|
||||||
|
/* Define tho top end of the stack. The stack is full descending so begins just
|
||||||
|
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
||||||
|
aligned for a call. */
|
||||||
|
_estack = ORIGIN(DTCM) + LENGTH(DTCM);
|
||||||
|
|
||||||
|
/* RAM extents for the garbage collector */
|
||||||
|
_ram_start = ORIGIN(RAM);
|
||||||
|
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
@ -1,34 +1,20 @@
|
|||||||
/*
|
/* Memory layout for default case.
|
||||||
GNU linker script for STM32F412
|
|
||||||
|
FLASH_ISR .isr_vector
|
||||||
|
FLASH_TEXT .text
|
||||||
|
FLASH_TEXT .data
|
||||||
|
FLASH_FS // ignored for fs use
|
||||||
|
|
||||||
|
RAM .data
|
||||||
|
RAM .bss
|
||||||
|
RAM .heap
|
||||||
|
RAM .stack
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 1024K /* entire flash */
|
|
||||||
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
|
||||||
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 48K /* sectors 1,2,3 are 16K */
|
|
||||||
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 960K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 256K
|
|
||||||
}
|
|
||||||
|
|
||||||
/* produce a link error if there is not this amount of RAM for these sections */
|
|
||||||
_minimum_stack_size = 2K;
|
|
||||||
_minimum_heap_size = 16K;
|
|
||||||
|
|
||||||
/* Define tho top end of the stack. The stack is full descending so begins just
|
|
||||||
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
|
||||||
aligned for a call. */
|
|
||||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
|
|
||||||
/* RAM extents for the garbage collector */
|
|
||||||
_ram_start = ORIGIN(RAM);
|
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
_heap_start = _ebss; /* heap starts just after statically allocated memory */
|
|
||||||
_heap_end = 0x20020000; /* tunable */
|
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
|
_ld_default_stack_size = _minimum_stack_size;
|
||||||
|
|
||||||
/* define output sections */
|
/* define output sections */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
@ -51,6 +37,8 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
*(.text*) /* .text* sections (code) */
|
*(.text*) /* .text* sections (code) */
|
||||||
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
*(.rodata*) /* .rodata* sections (constants, strings, etc.) */
|
||||||
|
/* *(.glue_7) */ /* glue arm to thumb code */
|
||||||
|
/* *(.glue_7t) */ /* glue thumb to arm code */
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_etext = .; /* define a global symbol at end of code */
|
_etext = .; /* define a global symbol at end of code */
|
||||||
@ -89,17 +77,23 @@ SECTIONS
|
|||||||
.heap :
|
.heap :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
_ld_heap_start = .;
|
||||||
. = . + _minimum_heap_size;
|
. = . + _minimum_heap_size;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} >RAM
|
||||||
|
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
/* this just checks there is enough RAM for the stack */
|
||||||
.stack :
|
.stack :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
_ld_stack_bottom = .;
|
||||||
. = . + _minimum_stack_size;
|
. = . + _minimum_stack_size;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} >RAM
|
||||||
|
_ld_stack_top = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
.ARM.attributes 0 : { *(.ARM.attributes) }
|
||||||
}
|
}
|
||||||
|
|
@ -1,34 +1,22 @@
|
|||||||
/*
|
/* Memory layout for case with dedicated nvm sector (inefficient)
|
||||||
GNU linker script for STM32F411 via Micropython
|
TODO: rewrite nvm module, remove this file entirely
|
||||||
|
|
||||||
|
FLASH_ISR .isr_vector
|
||||||
|
FLASH_TEXT .text
|
||||||
|
FLASH_TEXT .data
|
||||||
|
FLASH_NVM .nvm_data
|
||||||
|
FLASH_FS // ignored for fs use
|
||||||
|
|
||||||
|
RAM .data
|
||||||
|
RAM .bss
|
||||||
|
RAM .heap
|
||||||
|
RAM .stack
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
|
|
||||||
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
|
||||||
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 48K /* sectors 1,2,3 are 16K */
|
|
||||||
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 448K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
|
||||||
}
|
|
||||||
|
|
||||||
/* produce a link error if there is not this amount of RAM for these sections */
|
|
||||||
_minimum_stack_size = 2K;
|
|
||||||
_minimum_heap_size = 16K;
|
|
||||||
|
|
||||||
/* Define tho top end of the stack. The stack is full descending so begins just
|
|
||||||
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
|
||||||
aligned for a call. */
|
|
||||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
|
|
||||||
/* RAM extents for the garbage collector */
|
|
||||||
_ram_start = ORIGIN(RAM);
|
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
_heap_start = _ebss; /* heap starts just after statically allocated memory */
|
|
||||||
_heap_end = 0x2001c000; /* tunable */
|
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
|
_ld_default_stack_size = _minimum_stack_size;
|
||||||
|
|
||||||
/* define output sections */
|
/* define output sections */
|
||||||
SECTIONS
|
SECTIONS
|
||||||
{
|
{
|
||||||
@ -45,6 +33,14 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH_ISR
|
} >FLASH_ISR
|
||||||
|
|
||||||
|
/* Non-volitile memory */
|
||||||
|
.nvm_data :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
KEEP(*(.nvm_data))
|
||||||
|
. = ALIGN(4);
|
||||||
|
} >FLASH_NVM
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
/* The program code and other data goes into FLASH */
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
@ -91,19 +87,23 @@ SECTIONS
|
|||||||
.heap :
|
.heap :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
_ld_heap_start = .;
|
||||||
. = . + _minimum_heap_size;
|
. = . + _minimum_heap_size;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} >RAM
|
||||||
|
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
/* this just checks there is enough RAM for the stack */
|
||||||
.stack :
|
.stack :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
_ld_stack_bottom = .;
|
||||||
. = . + _minimum_stack_size;
|
. = . + _minimum_stack_size;
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} >RAM
|
||||||
|
_ld_stack_top = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
.ARM.attributes 0 : { *(.ARM.attributes) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -1,33 +1,20 @@
|
|||||||
/*
|
/* Memory layout for cases with itcm and dtcm
|
||||||
GNU linker script for STM32F411 via Micropython
|
|
||||||
|
FLASH_ISR .isr_vector
|
||||||
|
FLASH_TEXT .text
|
||||||
|
FLASH_TEXT .data
|
||||||
|
FLASH_FS // ignored for fs use
|
||||||
|
|
||||||
|
RAM .data
|
||||||
|
RAM .bss
|
||||||
|
RAM .heap
|
||||||
|
|
||||||
|
ITCM .itcm
|
||||||
|
DTCM .dtcm_data
|
||||||
|
DTCM .dtcm_bss
|
||||||
|
DTCM .stack
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 512K /* entire flash */
|
|
||||||
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 16K /* sector 0 */
|
|
||||||
FLASH_FS (rx) : ORIGIN = 0x08004000, LENGTH = 32K /* sectors 1,2 are 16K */
|
|
||||||
FLASH_NVM (rwx) : ORIGIN = 0x0800C000, LENGTH = 16K /* sector 3 is 16K */
|
|
||||||
FLASH_TEXT (rx) : ORIGIN = 0x08010000, LENGTH = 448K /* sector 4 is 64K, sectors 5,6,7 are 128K */
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 128K
|
|
||||||
}
|
|
||||||
|
|
||||||
/* produce a link error if there is not this amount of RAM for these sections */
|
|
||||||
_minimum_stack_size = 2K;
|
|
||||||
_minimum_heap_size = 16K;
|
|
||||||
|
|
||||||
/* Define the top end of the stack. The stack is full descending so begins just
|
|
||||||
above last byte of RAM. Note that EABI requires the stack to be 8-byte
|
|
||||||
aligned for a call. */
|
|
||||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
|
|
||||||
/* RAM extents for the garbage collector */
|
|
||||||
_ram_start = ORIGIN(RAM);
|
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
_heap_start = _ebss; /* heap starts just after statically allocated memory */
|
|
||||||
_heap_end = 0x2001c000; /* tunable */
|
|
||||||
|
|
||||||
ENTRY(Reset_Handler)
|
ENTRY(Reset_Handler)
|
||||||
|
|
||||||
/* define output sections */
|
/* define output sections */
|
||||||
@ -46,14 +33,6 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >FLASH_ISR
|
} >FLASH_ISR
|
||||||
|
|
||||||
/* Non-volitile memory */
|
|
||||||
.nvm_data :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.nvm_data))
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_NVM
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
/* The program code and other data goes into FLASH */
|
||||||
.text :
|
.text :
|
||||||
{
|
{
|
||||||
@ -83,6 +62,9 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
_edata = .; /* define a global symbol at data end; used by startup code in order to initialise the .data section in RAM */
|
||||||
} >RAM AT> FLASH_TEXT
|
} >RAM AT> FLASH_TEXT
|
||||||
|
_ld_d1_ram_data_destination = ADDR(.data);
|
||||||
|
_ld_d1_ram_data_flash_copy = LOADADDR(.data);
|
||||||
|
_ld_d1_ram_data_size = SIZEOF(.data);
|
||||||
|
|
||||||
/* Uninitialized data section */
|
/* Uninitialized data section */
|
||||||
.bss :
|
.bss :
|
||||||
@ -95,6 +77,10 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
_ebss = .; /* define a global symbol at bss end; used by startup code and GC */
|
||||||
} >RAM
|
} >RAM
|
||||||
|
_ld_d1_ram_bss_start = ADDR(.bss);
|
||||||
|
_ld_d1_ram_bss_size = SIZEOF(.bss);
|
||||||
|
_ld_heap_start = _ld_d1_ram_bss_start + _ld_d1_ram_bss_size;
|
||||||
|
_ld_heap_end = ORIGIN(RAM) + LENGTH(RAM);
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
/* this is to define the start of the heap, and make sure we have a minimum size */
|
||||||
.heap :
|
.heap :
|
||||||
@ -104,15 +90,50 @@ SECTIONS
|
|||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} >RAM
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
/* itcm stuff */
|
||||||
.stack :
|
.itcm :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
. = . + _minimum_stack_size;
|
|
||||||
|
*(.itcm.*)
|
||||||
|
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
} >RAM
|
} > ITCM AT> FLASH_TEXT
|
||||||
|
_ld_itcm_destination = ADDR(.itcm);
|
||||||
|
_ld_itcm_flash_copy = LOADADDR(.itcm);
|
||||||
|
_ld_itcm_size = SIZEOF(.itcm);
|
||||||
|
|
||||||
|
.dtcm_data :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
*(.dtcm_data.*)
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
} > DTCM AT> FLASH_TEXT
|
||||||
|
_ld_dtcm_data_destination = ADDR(.dtcm_data);
|
||||||
|
_ld_dtcm_data_flash_copy = LOADADDR(.dtcm_data);
|
||||||
|
_ld_dtcm_data_size = SIZEOF(.dtcm_data);
|
||||||
|
|
||||||
|
.dtcm_bss :
|
||||||
|
{
|
||||||
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
*(.dtcm_bss.*)
|
||||||
|
|
||||||
|
. = ALIGN(4);
|
||||||
|
} > DTCM AT> DTCM
|
||||||
|
_ld_dtcm_bss_start = ADDR(.dtcm_bss);
|
||||||
|
_ld_dtcm_bss_size = SIZEOF(.dtcm_bss);
|
||||||
|
|
||||||
|
.stack :
|
||||||
|
{
|
||||||
|
. = ALIGN(8);
|
||||||
|
_ld_stack_bottom = .;
|
||||||
|
. += _ld_default_stack_size;
|
||||||
|
} > DTCM
|
||||||
|
_ld_stack_top = ORIGIN(DTCM) + LENGTH(DTCM);
|
||||||
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
.ARM.attributes 0 : { *(.ARM.attributes) }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -5,12 +5,11 @@ USB_MANUFACTURER = "Espruino"
|
|||||||
USB_DEVICES = "CDC,MSC"
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F401xE
|
||||||
MCU_SUB_VARIANT = stm32f401xe
|
MCU_PACKAGE = UFQFPN48
|
||||||
MCU_PACKAGE = 48
|
|
||||||
CMSIS_MCU = STM32F401xE
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F401xd_fs.ld # use for internal flash
|
LD_FILE = boards/STM32F401xd_fs.ld # use for internal flash
|
||||||
|
|
||||||
|
@ -5,12 +5,11 @@ USB_MANUFACTURER = "Espruino"
|
|||||||
USB_DEVICES = "CDC,MSC"
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F411xE
|
||||||
MCU_SUB_VARIANT = stm32f411xe
|
MCU_PACKAGE = UFQFPN48
|
||||||
MCU_PACKAGE = 48
|
|
||||||
CMSIS_MCU = STM32F411xE
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F411VETx_FLASH.ld
|
LD_FILE = boards/STM32F411_fs.ld
|
||||||
|
|
||||||
|
@ -7,15 +7,12 @@ USB_DEVICES = "CDC,MSC"
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
EXTERNAL_FLASH_DEVICES = GD25Q16C
|
||||||
LONGINT_IMPL = MPZ
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F405xx
|
||||||
MCU_SUB_VARIANT = stm32f405xx
|
MCU_PACKAGE = LQFP64
|
||||||
MCU_PACKAGE = 64
|
|
||||||
CMSIS_MCU = STM32F405xx
|
|
||||||
|
|
||||||
# Default includes filesystem, but uses external flash
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_DEFAULT = boards/STM32F405_default.ld
|
LD_DEFAULT = boards/STM32F405_default.ld
|
||||||
LD_BOOT = boards/STM32F405_boot.ld # UF2 boot option
|
LD_BOOT = boards/STM32F405_boot.ld # UF2 boot option
|
||||||
UF2_OFFSET = 0x8010000
|
UF2_OFFSET = 0x8010000
|
||||||
|
@ -7,18 +7,15 @@ USB_DEVICES = "CDC,MSC"
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
EXTERNAL_FLASH_DEVICES = W25Q16JV_IQ
|
EXTERNAL_FLASH_DEVICES = W25Q16JV_IQ
|
||||||
LONGINT_IMPL = MPZ
|
# INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
|
|
||||||
BOOTLOADER_OFFSET = 0x8010000
|
BOOTLOADER_OFFSET = 0x8010000
|
||||||
|
|
||||||
# INTERNAL_FLASH_FILESYSTEM = 1
|
MCU_SERIES = F4
|
||||||
# LONGINT_IMPL = NONE
|
MCU_VARIANT = STM32F401xE
|
||||||
|
MCU_PACKAGE = LQFP64
|
||||||
|
|
||||||
MCU_SERIES = m4
|
LD_COMMON = boards/common_default.ld
|
||||||
MCU_VARIANT = stm32f4
|
|
||||||
MCU_SUB_VARIANT = stm32f401xe
|
|
||||||
MCU_PACKAGE = 64
|
|
||||||
CMSIS_MCU = STM32F401xE
|
|
||||||
LD_FILE = boards/STM32F401xe_boot.ld
|
LD_FILE = boards/STM32F401xe_boot.ld
|
||||||
# LD_FILE = boards/STM32F401xe_fs.ld # use for internal flash
|
# LD_FILE = boards/STM32F401xe_fs.ld # use for internal flash
|
||||||
|
|
||||||
|
38
ports/stm/boards/nucleo_f767zi/board.c
Normal file
38
ports/stm/boards/nucleo_f767zi/board.c
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the MicroPython project, http://micropython.org/
|
||||||
|
*
|
||||||
|
* The MIT License (MIT)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "boards/board.h"
|
||||||
|
|
||||||
|
void board_init(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool board_requests_safe_mode(void) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset_board(void) {
|
||||||
|
|
||||||
|
}
|
36
ports/stm/boards/nucleo_f767zi/mpconfigboard.h
Normal file
36
ports/stm/boards/nucleo_f767zi/mpconfigboard.h
Normal file
@ -0,0 +1,36 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the MicroPython project, http://micropython.org/
|
||||||
|
*
|
||||||
|
* The MIT License (MIT)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 Lucian Copeland for Adafruit Industries
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
//Micropython setup
|
||||||
|
|
||||||
|
#define MICROPY_HW_BOARD_NAME "NUCLEO STM32F767"
|
||||||
|
#define MICROPY_HW_MCU_NAME "STM32F767"
|
||||||
|
|
||||||
|
#define FLASH_SIZE (0x200000)
|
||||||
|
#define FLASH_PAGE_SIZE (0x4000)
|
||||||
|
|
||||||
|
#define BOARD_OSC_DIV (8)
|
||||||
|
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSI
|
15
ports/stm/boards/nucleo_f767zi/mpconfigboard.mk
Normal file
15
ports/stm/boards/nucleo_f767zi/mpconfigboard.mk
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
USB_VID = 0x239A
|
||||||
|
USB_PID = 0x809A
|
||||||
|
USB_PRODUCT = "Nucleo F767ZI - CPy"
|
||||||
|
USB_MANUFACTURER = "STMicroelectronics"
|
||||||
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
|
|
||||||
|
MCU_SERIES = F7
|
||||||
|
MCU_VARIANT = STM32F767xx
|
||||||
|
MCU_PACKAGE = LQFP144
|
||||||
|
|
||||||
|
LD_COMMON = boards/common_default.ld
|
||||||
|
LD_FILE = boards/STM32F767_fs.ld
|
||||||
|
|
142
ports/stm/boards/nucleo_f767zi/pins.c
Normal file
142
ports/stm/boards/nucleo_f767zi/pins.c
Normal file
@ -0,0 +1,142 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PC00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PC03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_PF03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_PF05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A5), MP_ROM_PTR(&pin_PF10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A6), MP_ROM_PTR(&pin_PB01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A7), MP_ROM_PTR(&pin_PC02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A8), MP_ROM_PTR(&pin_PF04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PG09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PG14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PF15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D3), MP_ROM_PTR(&pin_PE13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_PF14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_PE11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PE09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PF13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PF12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_PD15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PD14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D14), MP_ROM_PTR(&pin_PB09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D15), MP_ROM_PTR(&pin_PB08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_PC06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D17), MP_ROM_PTR(&pin_PB15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D18), MP_ROM_PTR(&pin_PB13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D19), MP_ROM_PTR(&pin_PB12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D20), MP_ROM_PTR(&pin_PA15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D21), MP_ROM_PTR(&pin_PC07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D22), MP_ROM_PTR(&pin_PB05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D23), MP_ROM_PTR(&pin_PB03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D24), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D25), MP_ROM_PTR(&pin_PB04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D26), MP_ROM_PTR(&pin_PB06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D27), MP_ROM_PTR(&pin_PB02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D28), MP_ROM_PTR(&pin_PD13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D29), MP_ROM_PTR(&pin_PD12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D30), MP_ROM_PTR(&pin_PD11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D31), MP_ROM_PTR(&pin_PE02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D32), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D33), MP_ROM_PTR(&pin_PB00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D34), MP_ROM_PTR(&pin_PE00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D35), MP_ROM_PTR(&pin_PB11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D36), MP_ROM_PTR(&pin_PB10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D37), MP_ROM_PTR(&pin_PE15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D38), MP_ROM_PTR(&pin_PE14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D39), MP_ROM_PTR(&pin_PE12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D40), MP_ROM_PTR(&pin_PE10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D41), MP_ROM_PTR(&pin_PE07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D42), MP_ROM_PTR(&pin_PE08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D43), MP_ROM_PTR(&pin_PC08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D44), MP_ROM_PTR(&pin_PC09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D45), MP_ROM_PTR(&pin_PC10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D46), MP_ROM_PTR(&pin_PC11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D47), MP_ROM_PTR(&pin_PC12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D48), MP_ROM_PTR(&pin_PD02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D49), MP_ROM_PTR(&pin_PG02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D50), MP_ROM_PTR(&pin_PG03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D51), MP_ROM_PTR(&pin_PD07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D52), MP_ROM_PTR(&pin_PD06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D53), MP_ROM_PTR(&pin_PD05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D54), MP_ROM_PTR(&pin_PD04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D55), MP_ROM_PTR(&pin_PD03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D56), MP_ROM_PTR(&pin_PE02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D57), MP_ROM_PTR(&pin_PE04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D58), MP_ROM_PTR(&pin_PE05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D59), MP_ROM_PTR(&pin_PE06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D60), MP_ROM_PTR(&pin_PE03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D61), MP_ROM_PTR(&pin_PF08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D62), MP_ROM_PTR(&pin_PF07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D63), MP_ROM_PTR(&pin_PF09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D64), MP_ROM_PTR(&pin_PG01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D65), MP_ROM_PTR(&pin_PG00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D66), MP_ROM_PTR(&pin_PD01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D67), MP_ROM_PTR(&pin_PD00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D68), MP_ROM_PTR(&pin_PF00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D69), MP_ROM_PTR(&pin_PF01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D70), MP_ROM_PTR(&pin_PF02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D71), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_DAC1), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_DAC2), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED1), MP_ROM_PTR(&pin_PB00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED2), MP_ROM_PTR(&pin_PB07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED3), MP_ROM_PTR(&pin_PB14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SW), MP_ROM_PTR(&pin_PC13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_D0), MP_ROM_PTR(&pin_PC08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_D1), MP_ROM_PTR(&pin_PC09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_D2), MP_ROM_PTR(&pin_PC10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_D3), MP_ROM_PTR(&pin_PC11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_CMD), MP_ROM_PTR(&pin_PD02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_CK), MP_ROM_PTR(&pin_PC12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SD_SW), MP_ROM_PTR(&pin_PG02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_OTG_FS_POWER), MP_ROM_PTR(&pin_PG06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_OTG_FS_OVER_CURRENT), MP_ROM_PTR(&pin_PG07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_USB_VBUS), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_USB_ID), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_USB_DM), MP_ROM_PTR(&pin_PA11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_USB_DP), MP_ROM_PTR(&pin_PA12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART2_TX), MP_ROM_PTR(&pin_PD05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART2_RX), MP_ROM_PTR(&pin_PD06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART2_RTS), MP_ROM_PTR(&pin_PD04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART2_CTS), MP_ROM_PTR(&pin_PD03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_VCP_TX), MP_ROM_PTR(&pin_PD08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_VCP_RX), MP_ROM_PTR(&pin_PD09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART3_TX), MP_ROM_PTR(&pin_PD08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART3_RX), MP_ROM_PTR(&pin_PD09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART5_TX), MP_ROM_PTR(&pin_PB06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART5_RX), MP_ROM_PTR(&pin_PB12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART6_TX), MP_ROM_PTR(&pin_PC06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART6_RX), MP_ROM_PTR(&pin_PC07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART7_TX), MP_ROM_PTR(&pin_PF07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART7_RX), MP_ROM_PTR(&pin_PF06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART8_TX), MP_ROM_PTR(&pin_PE01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART8_RX), MP_ROM_PTR(&pin_PE00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI3_NSS), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI3_SCK), MP_ROM_PTR(&pin_PB03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI3_MISO), MP_ROM_PTR(&pin_PB04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI3_MOSI), MP_ROM_PTR(&pin_PB05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C1_SDA), MP_ROM_PTR(&pin_PB09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C1_SCL), MP_ROM_PTR(&pin_PB08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C2_SDA), MP_ROM_PTR(&pin_PF00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C2_SCL), MP_ROM_PTR(&pin_PF01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C4_SCL), MP_ROM_PTR(&pin_PF14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C4_SDA), MP_ROM_PTR(&pin_PF15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_MDC), MP_ROM_PTR(&pin_PC01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_MDIO), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_REF_CLK), MP_ROM_PTR(&pin_PA01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_CRS_DV), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_RXD0), MP_ROM_PTR(&pin_PC04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_RXD1), MP_ROM_PTR(&pin_PC05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_TX_EN), MP_ROM_PTR(&pin_PG11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_TXD0), MP_ROM_PTR(&pin_PG13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_ETH_RMII_TXD1), MP_ROM_PTR(&pin_PB13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SWDIO), MP_ROM_PTR(&pin_PA13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SWDCLK), MP_ROM_PTR(&pin_PA14) }
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
|
38
ports/stm/boards/nucleo_h743zi_2/board.c
Normal file
38
ports/stm/boards/nucleo_h743zi_2/board.c
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the MicroPython project, http://micropython.org/
|
||||||
|
*
|
||||||
|
* The MIT License (MIT)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "boards/board.h"
|
||||||
|
|
||||||
|
void board_init(void) {
|
||||||
|
}
|
||||||
|
|
||||||
|
bool board_requests_safe_mode(void) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset_board(void) {
|
||||||
|
|
||||||
|
}
|
35
ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h
Normal file
35
ports/stm/boards/nucleo_h743zi_2/mpconfigboard.h
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the MicroPython project, http://micropython.org/
|
||||||
|
*
|
||||||
|
* The MIT License (MIT)
|
||||||
|
*
|
||||||
|
* Copyright (c) 2020 Lucian Copeland for Adafruit Industries
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
//Micropython setup
|
||||||
|
|
||||||
|
#define MICROPY_HW_BOARD_NAME "NUCLEO STM32H743"
|
||||||
|
#define MICROPY_HW_MCU_NAME "STM32H743"
|
||||||
|
|
||||||
|
#define FLASH_PAGE_SIZE (0x4000)
|
||||||
|
|
||||||
|
#define BOARD_OSC_DIV (8)
|
||||||
|
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSI
|
15
ports/stm/boards/nucleo_h743zi_2/mpconfigboard.mk
Normal file
15
ports/stm/boards/nucleo_h743zi_2/mpconfigboard.mk
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
USB_VID = 0x239A
|
||||||
|
USB_PID = 0x8098
|
||||||
|
USB_PRODUCT = "Nucleo H743ZI - CPy"
|
||||||
|
USB_MANUFACTURER = "STMicroelectronics"
|
||||||
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
|
|
||||||
|
MCU_SERIES = H7
|
||||||
|
MCU_VARIANT = STM32H743xx
|
||||||
|
MCU_PACKAGE = LQFP144
|
||||||
|
|
||||||
|
LD_COMMON = boards/common_tcm.ld
|
||||||
|
LD_FILE = boards/STM32H743_fs.ld
|
||||||
|
|
98
ports/stm/boards/nucleo_h743zi_2/pins.c
Normal file
98
ports/stm/boards/nucleo_h743zi_2/pins.c
Normal file
@ -0,0 +1,98 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_module_globals_table[] = {
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PC00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PC03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_PB01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_PC02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A5), MP_ROM_PTR(&pin_PF10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A6), MP_ROM_PTR(&pin_PF04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A7), MP_ROM_PTR(&pin_PF05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A8), MP_ROM_PTR(&pin_PF06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PB07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PB06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PG14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D3), MP_ROM_PTR(&pin_PE13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_PE14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_PE11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PE09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PG12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PF03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D9), MP_ROM_PTR(&pin_PD15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D10), MP_ROM_PTR(&pin_PD14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D11), MP_ROM_PTR(&pin_PB05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D12), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D14), MP_ROM_PTR(&pin_PB09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D15), MP_ROM_PTR(&pin_PB08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_PC06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D17), MP_ROM_PTR(&pin_PB15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D18), MP_ROM_PTR(&pin_PB13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D19), MP_ROM_PTR(&pin_PB12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D20), MP_ROM_PTR(&pin_PA15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D21), MP_ROM_PTR(&pin_PC07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D22), MP_ROM_PTR(&pin_PB05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D23), MP_ROM_PTR(&pin_PB03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D24), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D25), MP_ROM_PTR(&pin_PB04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D26), MP_ROM_PTR(&pin_PG06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D27), MP_ROM_PTR(&pin_PB02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D28), MP_ROM_PTR(&pin_PD13) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D29), MP_ROM_PTR(&pin_PD12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D30), MP_ROM_PTR(&pin_PD11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D31), MP_ROM_PTR(&pin_PE02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D32), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D33), MP_ROM_PTR(&pin_PB00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D34), MP_ROM_PTR(&pin_PE00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D35), MP_ROM_PTR(&pin_PB11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D36), MP_ROM_PTR(&pin_PB10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D37), MP_ROM_PTR(&pin_PE15) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D38), MP_ROM_PTR(&pin_PE06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D39), MP_ROM_PTR(&pin_PE12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D40), MP_ROM_PTR(&pin_PE10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D41), MP_ROM_PTR(&pin_PE07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D42), MP_ROM_PTR(&pin_PE08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D43), MP_ROM_PTR(&pin_PC08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D44), MP_ROM_PTR(&pin_PC09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D45), MP_ROM_PTR(&pin_PC10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D46), MP_ROM_PTR(&pin_PC11) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D47), MP_ROM_PTR(&pin_PC12) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D48), MP_ROM_PTR(&pin_PD02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D49), MP_ROM_PTR(&pin_PG02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D50), MP_ROM_PTR(&pin_PG03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D51), MP_ROM_PTR(&pin_PD07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D52), MP_ROM_PTR(&pin_PD06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D53), MP_ROM_PTR(&pin_PD05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D54), MP_ROM_PTR(&pin_PD04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D55), MP_ROM_PTR(&pin_PD03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D56), MP_ROM_PTR(&pin_PE02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D57), MP_ROM_PTR(&pin_PE04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D58), MP_ROM_PTR(&pin_PE05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D59), MP_ROM_PTR(&pin_PE06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D60), MP_ROM_PTR(&pin_PE03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D61), MP_ROM_PTR(&pin_PF08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D62), MP_ROM_PTR(&pin_PF07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D63), MP_ROM_PTR(&pin_PF09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D64), MP_ROM_PTR(&pin_PG01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D65), MP_ROM_PTR(&pin_PG00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D66), MP_ROM_PTR(&pin_PD01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D67), MP_ROM_PTR(&pin_PD00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D68), MP_ROM_PTR(&pin_PF00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D69), MP_ROM_PTR(&pin_PF01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D70), MP_ROM_PTR(&pin_PF02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D71), MP_ROM_PTR(&pin_PE00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D72), MP_ROM_PTR(&pin_PB02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PB09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PB08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PB05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PB07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PB06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED1), MP_ROM_PTR(&pin_PB00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED2), MP_ROM_PTR(&pin_PE01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED3), MP_ROM_PTR(&pin_PB14) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SW), MP_ROM_PTR(&pin_PC13) },
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_module_globals_table);
|
@ -34,7 +34,7 @@
|
|||||||
|
|
||||||
#define BOARD_OSC_DIV (8)
|
#define BOARD_OSC_DIV (8)
|
||||||
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSE
|
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSE
|
||||||
#define LSE_VALUE ((uint32_t)32000U)
|
#define LSE_VALUE ((uint32_t)32768U)
|
||||||
|
|
||||||
// On-board flash
|
// On-board flash
|
||||||
#define SPI_FLASH_MOSI_PIN (&pin_PB15)
|
#define SPI_FLASH_MOSI_PIN (&pin_PB15)
|
||||||
|
@ -7,12 +7,11 @@ USB_DEVICES = "CDC,MSC"
|
|||||||
SPI_FLASH_FILESYSTEM = 1
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
EXTERNAL_FLASH_DEVICES = W25Q64JV_IQ
|
EXTERNAL_FLASH_DEVICES = W25Q64JV_IQ
|
||||||
LONGINT_IMPL = MPZ
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F411xE
|
||||||
MCU_SUB_VARIANT = stm32f411xe
|
MCU_PACKAGE = UFQFPN48
|
||||||
MCU_PACKAGE = 48
|
|
||||||
CMSIS_MCU = STM32F411xE
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F411VETx_FLASH.ld
|
LD_FILE = boards/STM32F411_fs.ld
|
||||||
|
|
||||||
|
@ -5,12 +5,11 @@ USB_MANUFACTURER = "George Robotic"
|
|||||||
USB_DEVICES = "CDC,MSC"
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F405xx
|
||||||
MCU_SUB_VARIANT = stm32f405xx
|
MCU_PACKAGE = LQFP64
|
||||||
MCU_PACKAGE = 64
|
|
||||||
CMSIS_MCU = STM32F405xx
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F405_fs.ld
|
LD_FILE = boards/STM32F405_fs.ld
|
||||||
|
|
||||||
|
@ -1,448 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f401xe.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @brief STM32F401xExx Devices vector table for GCC based toolchains.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M4 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @attention
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
.syntax unified
|
|
||||||
.cpu cortex-m4
|
|
||||||
.fpu softvfp
|
|
||||||
.thumb
|
|
||||||
|
|
||||||
.global g_pfnVectors
|
|
||||||
.global Default_Handler
|
|
||||||
|
|
||||||
/* start address for the initialization values of the .data section.
|
|
||||||
defined in linker script */
|
|
||||||
.word _sidata
|
|
||||||
/* start address for the .data section. defined in linker script */
|
|
||||||
.word _sdata
|
|
||||||
/* end address for the .data section. defined in linker script */
|
|
||||||
.word _edata
|
|
||||||
/* start address for the .bss section. defined in linker script */
|
|
||||||
.word _sbss
|
|
||||||
/* end address for the .bss section. defined in linker script */
|
|
||||||
.word _ebss
|
|
||||||
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor first
|
|
||||||
* starts execution following a reset event. Only the absolutely
|
|
||||||
* necessary set is performed, after which the application
|
|
||||||
* supplied main() routine is called.
|
|
||||||
* @param None
|
|
||||||
* @retval : None
|
|
||||||
*/
|
|
||||||
|
|
||||||
.section .text.Reset_Handler
|
|
||||||
.weak Reset_Handler
|
|
||||||
.type Reset_Handler, %function
|
|
||||||
Reset_Handler:
|
|
||||||
ldr sp, =_estack /* set stack pointer */
|
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
|
||||||
movs r1, #0
|
|
||||||
b LoopCopyDataInit
|
|
||||||
|
|
||||||
CopyDataInit:
|
|
||||||
ldr r3, =_sidata
|
|
||||||
ldr r3, [r3, r1]
|
|
||||||
str r3, [r0, r1]
|
|
||||||
adds r1, r1, #4
|
|
||||||
|
|
||||||
LoopCopyDataInit:
|
|
||||||
ldr r0, =_sdata
|
|
||||||
ldr r3, =_edata
|
|
||||||
adds r2, r0, r1
|
|
||||||
cmp r2, r3
|
|
||||||
bcc CopyDataInit
|
|
||||||
ldr r2, =_sbss
|
|
||||||
b LoopFillZerobss
|
|
||||||
/* Zero fill the bss segment. */
|
|
||||||
FillZerobss:
|
|
||||||
movs r3, #0
|
|
||||||
str r3, [r2], #4
|
|
||||||
|
|
||||||
LoopFillZerobss:
|
|
||||||
ldr r3, = _ebss
|
|
||||||
cmp r2, r3
|
|
||||||
bcc FillZerobss
|
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
|
||||||
bl SystemInit
|
|
||||||
/* Call static constructors */
|
|
||||||
/* bl __libc_init_array */
|
|
||||||
/* Call the application's entry point.*/
|
|
||||||
bl main
|
|
||||||
bx lr
|
|
||||||
.size Reset_Handler, .-Reset_Handler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor receives an
|
|
||||||
* unexpected interrupt. This simply enters an infinite loop, preserving
|
|
||||||
* the system state for examination by a debugger.
|
|
||||||
* @param None
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
.section .text.Default_Handler,"ax",%progbits
|
|
||||||
Default_Handler:
|
|
||||||
Infinite_Loop:
|
|
||||||
b Infinite_Loop
|
|
||||||
.size Default_Handler, .-Default_Handler
|
|
||||||
/******************************************************************************
|
|
||||||
*
|
|
||||||
* The minimal vector table for a Cortex M3. Note that the proper constructs
|
|
||||||
* must be placed on this to ensure that it ends up at physical address
|
|
||||||
* 0x0000.0000.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.section .isr_vector,"a",%progbits
|
|
||||||
.type g_pfnVectors, %object
|
|
||||||
.size g_pfnVectors, .-g_pfnVectors
|
|
||||||
|
|
||||||
g_pfnVectors:
|
|
||||||
.word _estack
|
|
||||||
.word Reset_Handler
|
|
||||||
.word NMI_Handler
|
|
||||||
.word HardFault_Handler
|
|
||||||
.word MemManage_Handler
|
|
||||||
.word BusFault_Handler
|
|
||||||
.word UsageFault_Handler
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word SVC_Handler
|
|
||||||
.word DebugMon_Handler
|
|
||||||
.word 0
|
|
||||||
.word PendSV_Handler
|
|
||||||
.word SysTick_Handler
|
|
||||||
|
|
||||||
/* External Interrupts */
|
|
||||||
.word WWDG_IRQHandler /* Window WatchDog */
|
|
||||||
.word PVD_IRQHandler /* PVD through EXTI Line detection */
|
|
||||||
.word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */
|
|
||||||
.word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */
|
|
||||||
.word FLASH_IRQHandler /* FLASH */
|
|
||||||
.word RCC_IRQHandler /* RCC */
|
|
||||||
.word EXTI0_IRQHandler /* EXTI Line0 */
|
|
||||||
.word EXTI1_IRQHandler /* EXTI Line1 */
|
|
||||||
.word EXTI2_IRQHandler /* EXTI Line2 */
|
|
||||||
.word EXTI3_IRQHandler /* EXTI Line3 */
|
|
||||||
.word EXTI4_IRQHandler /* EXTI Line4 */
|
|
||||||
.word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */
|
|
||||||
.word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */
|
|
||||||
.word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */
|
|
||||||
.word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */
|
|
||||||
.word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */
|
|
||||||
.word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */
|
|
||||||
.word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */
|
|
||||||
.word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word EXTI9_5_IRQHandler /* External Line[9:5]s */
|
|
||||||
.word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */
|
|
||||||
.word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */
|
|
||||||
.word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */
|
|
||||||
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
|
|
||||||
.word TIM2_IRQHandler /* TIM2 */
|
|
||||||
.word TIM3_IRQHandler /* TIM3 */
|
|
||||||
.word TIM4_IRQHandler /* TIM4 */
|
|
||||||
.word I2C1_EV_IRQHandler /* I2C1 Event */
|
|
||||||
.word I2C1_ER_IRQHandler /* I2C1 Error */
|
|
||||||
.word I2C2_EV_IRQHandler /* I2C2 Event */
|
|
||||||
.word I2C2_ER_IRQHandler /* I2C2 Error */
|
|
||||||
.word SPI1_IRQHandler /* SPI1 */
|
|
||||||
.word SPI2_IRQHandler /* SPI2 */
|
|
||||||
.word USART1_IRQHandler /* USART1 */
|
|
||||||
.word USART2_IRQHandler /* USART2 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word EXTI15_10_IRQHandler /* External Line[15:10]s */
|
|
||||||
.word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */
|
|
||||||
.word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SDIO_IRQHandler /* SDIO */
|
|
||||||
.word TIM5_IRQHandler /* TIM5 */
|
|
||||||
.word SPI3_IRQHandler /* SPI3 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */
|
|
||||||
.word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */
|
|
||||||
.word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */
|
|
||||||
.word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */
|
|
||||||
.word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word OTG_FS_IRQHandler /* USB OTG FS */
|
|
||||||
.word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */
|
|
||||||
.word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */
|
|
||||||
.word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */
|
|
||||||
.word USART6_IRQHandler /* USART6 */
|
|
||||||
.word I2C3_EV_IRQHandler /* I2C3 event */
|
|
||||||
.word I2C3_ER_IRQHandler /* I2C3 error */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word FPU_IRQHandler /* FPU */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SPI4_IRQHandler /* SPI4 */
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
*
|
|
||||||
* Provide weak aliases for each Exception handler to the Default_Handler.
|
|
||||||
* As they are weak aliases, any function with the same name will override
|
|
||||||
* this definition.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.weak NMI_Handler
|
|
||||||
.thumb_set NMI_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak HardFault_Handler
|
|
||||||
.thumb_set HardFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak MemManage_Handler
|
|
||||||
.thumb_set MemManage_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak BusFault_Handler
|
|
||||||
.thumb_set BusFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak UsageFault_Handler
|
|
||||||
.thumb_set UsageFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SVC_Handler
|
|
||||||
.thumb_set SVC_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak DebugMon_Handler
|
|
||||||
.thumb_set DebugMon_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak PendSV_Handler
|
|
||||||
.thumb_set PendSV_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SysTick_Handler
|
|
||||||
.thumb_set SysTick_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak WWDG_IRQHandler
|
|
||||||
.thumb_set WWDG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak PVD_IRQHandler
|
|
||||||
.thumb_set PVD_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TAMP_STAMP_IRQHandler
|
|
||||||
.thumb_set TAMP_STAMP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_WKUP_IRQHandler
|
|
||||||
.thumb_set RTC_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FLASH_IRQHandler
|
|
||||||
.thumb_set FLASH_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RCC_IRQHandler
|
|
||||||
.thumb_set RCC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI0_IRQHandler
|
|
||||||
.thumb_set EXTI0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI1_IRQHandler
|
|
||||||
.thumb_set EXTI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI2_IRQHandler
|
|
||||||
.thumb_set EXTI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI3_IRQHandler
|
|
||||||
.thumb_set EXTI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI4_IRQHandler
|
|
||||||
.thumb_set EXTI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak ADC_IRQHandler
|
|
||||||
.thumb_set ADC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI9_5_IRQHandler
|
|
||||||
.thumb_set EXTI9_5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_BRK_TIM9_IRQHandler
|
|
||||||
.thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_UP_TIM10_IRQHandler
|
|
||||||
.thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_TRG_COM_TIM11_IRQHandler
|
|
||||||
.thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_CC_IRQHandler
|
|
||||||
.thumb_set TIM1_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM2_IRQHandler
|
|
||||||
.thumb_set TIM2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM3_IRQHandler
|
|
||||||
.thumb_set TIM3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM4_IRQHandler
|
|
||||||
.thumb_set TIM4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_EV_IRQHandler
|
|
||||||
.thumb_set I2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_ER_IRQHandler
|
|
||||||
.thumb_set I2C1_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_EV_IRQHandler
|
|
||||||
.thumb_set I2C2_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_ER_IRQHandler
|
|
||||||
.thumb_set I2C2_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI1_IRQHandler
|
|
||||||
.thumb_set SPI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI2_IRQHandler
|
|
||||||
.thumb_set SPI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART1_IRQHandler
|
|
||||||
.thumb_set USART1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART2_IRQHandler
|
|
||||||
.thumb_set USART2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI15_10_IRQHandler
|
|
||||||
.thumb_set EXTI15_10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_Alarm_IRQHandler
|
|
||||||
.thumb_set RTC_Alarm_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SDIO_IRQHandler
|
|
||||||
.thumb_set SDIO_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM5_IRQHandler
|
|
||||||
.thumb_set TIM5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI3_IRQHandler
|
|
||||||
.thumb_set SPI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_IRQHandler
|
|
||||||
.thumb_set OTG_FS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART6_IRQHandler
|
|
||||||
.thumb_set USART6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_EV_IRQHandler
|
|
||||||
.thumb_set I2C3_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_ER_IRQHandler
|
|
||||||
.thumb_set I2C3_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FPU_IRQHandler
|
|
||||||
.thumb_set FPU_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI4_IRQHandler
|
|
||||||
.thumb_set SPI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
||||||
|
|
@ -1,516 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f405xx.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @brief STM32F405xx Devices vector table for GCC based toolchains.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M4 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @attention
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
.syntax unified
|
|
||||||
.cpu cortex-m4
|
|
||||||
.fpu softvfp
|
|
||||||
.thumb
|
|
||||||
|
|
||||||
.global g_pfnVectors
|
|
||||||
.global Default_Handler
|
|
||||||
|
|
||||||
/* start address for the initialization values of the .data section.
|
|
||||||
defined in linker script */
|
|
||||||
.word _sidata
|
|
||||||
/* start address for the .data section. defined in linker script */
|
|
||||||
.word _sdata
|
|
||||||
/* end address for the .data section. defined in linker script */
|
|
||||||
.word _edata
|
|
||||||
/* start address for the .bss section. defined in linker script */
|
|
||||||
.word _sbss
|
|
||||||
/* end address for the .bss section. defined in linker script */
|
|
||||||
.word _ebss
|
|
||||||
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor first
|
|
||||||
* starts execution following a reset event. Only the absolutely
|
|
||||||
* necessary set is performed, after which the application
|
|
||||||
* supplied main() routine is called.
|
|
||||||
* @param None
|
|
||||||
* @retval : None
|
|
||||||
*/
|
|
||||||
|
|
||||||
.section .text.Reset_Handler
|
|
||||||
.weak Reset_Handler
|
|
||||||
.type Reset_Handler, %function
|
|
||||||
Reset_Handler:
|
|
||||||
ldr sp, =_estack /* set stack pointer */
|
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
|
||||||
movs r1, #0
|
|
||||||
b LoopCopyDataInit
|
|
||||||
|
|
||||||
CopyDataInit:
|
|
||||||
ldr r3, =_sidata
|
|
||||||
ldr r3, [r3, r1]
|
|
||||||
str r3, [r0, r1]
|
|
||||||
adds r1, r1, #4
|
|
||||||
|
|
||||||
LoopCopyDataInit:
|
|
||||||
ldr r0, =_sdata
|
|
||||||
ldr r3, =_edata
|
|
||||||
adds r2, r0, r1
|
|
||||||
cmp r2, r3
|
|
||||||
bcc CopyDataInit
|
|
||||||
ldr r2, =_sbss
|
|
||||||
b LoopFillZerobss
|
|
||||||
/* Zero fill the bss segment. */
|
|
||||||
FillZerobss:
|
|
||||||
movs r3, #0
|
|
||||||
str r3, [r2], #4
|
|
||||||
|
|
||||||
LoopFillZerobss:
|
|
||||||
ldr r3, = _ebss
|
|
||||||
cmp r2, r3
|
|
||||||
bcc FillZerobss
|
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
|
||||||
bl SystemInit
|
|
||||||
/* Call static constructors */
|
|
||||||
/* bl __libc_init_array */
|
|
||||||
/* Call the application's entry point.*/
|
|
||||||
bl main
|
|
||||||
bx lr
|
|
||||||
.size Reset_Handler, .-Reset_Handler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor receives an
|
|
||||||
* unexpected interrupt. This simply enters an infinite loop, preserving
|
|
||||||
* the system state for examination by a debugger.
|
|
||||||
* @param None
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
.section .text.Default_Handler,"ax",%progbits
|
|
||||||
Default_Handler:
|
|
||||||
Infinite_Loop:
|
|
||||||
b Infinite_Loop
|
|
||||||
.size Default_Handler, .-Default_Handler
|
|
||||||
/******************************************************************************
|
|
||||||
*
|
|
||||||
* The minimal vector table for a Cortex M3. Note that the proper constructs
|
|
||||||
* must be placed on this to ensure that it ends up at physical address
|
|
||||||
* 0x0000.0000.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.section .isr_vector,"a",%progbits
|
|
||||||
.type g_pfnVectors, %object
|
|
||||||
.size g_pfnVectors, .-g_pfnVectors
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
g_pfnVectors:
|
|
||||||
.word _estack
|
|
||||||
.word Reset_Handler
|
|
||||||
|
|
||||||
.word NMI_Handler
|
|
||||||
.word HardFault_Handler
|
|
||||||
.word MemManage_Handler
|
|
||||||
.word BusFault_Handler
|
|
||||||
.word UsageFault_Handler
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word SVC_Handler
|
|
||||||
.word DebugMon_Handler
|
|
||||||
.word 0
|
|
||||||
.word PendSV_Handler
|
|
||||||
.word SysTick_Handler
|
|
||||||
|
|
||||||
/* External Interrupts */
|
|
||||||
.word WWDG_IRQHandler /* Window WatchDog */
|
|
||||||
.word PVD_IRQHandler /* PVD through EXTI Line detection */
|
|
||||||
.word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */
|
|
||||||
.word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */
|
|
||||||
.word FLASH_IRQHandler /* FLASH */
|
|
||||||
.word RCC_IRQHandler /* RCC */
|
|
||||||
.word EXTI0_IRQHandler /* EXTI Line0 */
|
|
||||||
.word EXTI1_IRQHandler /* EXTI Line1 */
|
|
||||||
.word EXTI2_IRQHandler /* EXTI Line2 */
|
|
||||||
.word EXTI3_IRQHandler /* EXTI Line3 */
|
|
||||||
.word EXTI4_IRQHandler /* EXTI Line4 */
|
|
||||||
.word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */
|
|
||||||
.word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */
|
|
||||||
.word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */
|
|
||||||
.word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */
|
|
||||||
.word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */
|
|
||||||
.word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */
|
|
||||||
.word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */
|
|
||||||
.word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */
|
|
||||||
.word CAN1_TX_IRQHandler /* CAN1 TX */
|
|
||||||
.word CAN1_RX0_IRQHandler /* CAN1 RX0 */
|
|
||||||
.word CAN1_RX1_IRQHandler /* CAN1 RX1 */
|
|
||||||
.word CAN1_SCE_IRQHandler /* CAN1 SCE */
|
|
||||||
.word EXTI9_5_IRQHandler /* External Line[9:5]s */
|
|
||||||
.word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */
|
|
||||||
.word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */
|
|
||||||
.word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */
|
|
||||||
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
|
|
||||||
.word TIM2_IRQHandler /* TIM2 */
|
|
||||||
.word TIM3_IRQHandler /* TIM3 */
|
|
||||||
.word TIM4_IRQHandler /* TIM4 */
|
|
||||||
.word I2C1_EV_IRQHandler /* I2C1 Event */
|
|
||||||
.word I2C1_ER_IRQHandler /* I2C1 Error */
|
|
||||||
.word I2C2_EV_IRQHandler /* I2C2 Event */
|
|
||||||
.word I2C2_ER_IRQHandler /* I2C2 Error */
|
|
||||||
.word SPI1_IRQHandler /* SPI1 */
|
|
||||||
.word SPI2_IRQHandler /* SPI2 */
|
|
||||||
.word USART1_IRQHandler /* USART1 */
|
|
||||||
.word USART2_IRQHandler /* USART2 */
|
|
||||||
.word USART3_IRQHandler /* USART3 */
|
|
||||||
.word EXTI15_10_IRQHandler /* External Line[15:10]s */
|
|
||||||
.word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */
|
|
||||||
.word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */
|
|
||||||
.word TIM8_BRK_TIM12_IRQHandler /* TIM8 Break and TIM12 */
|
|
||||||
.word TIM8_UP_TIM13_IRQHandler /* TIM8 Update and TIM13 */
|
|
||||||
.word TIM8_TRG_COM_TIM14_IRQHandler /* TIM8 Trigger and Commutation and TIM14 */
|
|
||||||
.word TIM8_CC_IRQHandler /* TIM8 Capture Compare */
|
|
||||||
.word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */
|
|
||||||
.word FSMC_IRQHandler /* FSMC */
|
|
||||||
.word SDIO_IRQHandler /* SDIO */
|
|
||||||
.word TIM5_IRQHandler /* TIM5 */
|
|
||||||
.word SPI3_IRQHandler /* SPI3 */
|
|
||||||
.word UART4_IRQHandler /* UART4 */
|
|
||||||
.word UART5_IRQHandler /* UART5 */
|
|
||||||
.word TIM6_DAC_IRQHandler /* TIM6 and DAC1&2 underrun errors */
|
|
||||||
.word TIM7_IRQHandler /* TIM7 */
|
|
||||||
.word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */
|
|
||||||
.word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */
|
|
||||||
.word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */
|
|
||||||
.word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */
|
|
||||||
.word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word CAN2_TX_IRQHandler /* CAN2 TX */
|
|
||||||
.word CAN2_RX0_IRQHandler /* CAN2 RX0 */
|
|
||||||
.word CAN2_RX1_IRQHandler /* CAN2 RX1 */
|
|
||||||
.word CAN2_SCE_IRQHandler /* CAN2 SCE */
|
|
||||||
.word OTG_FS_IRQHandler /* USB OTG FS */
|
|
||||||
.word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */
|
|
||||||
.word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */
|
|
||||||
.word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */
|
|
||||||
.word USART6_IRQHandler /* USART6 */
|
|
||||||
.word I2C3_EV_IRQHandler /* I2C3 event */
|
|
||||||
.word I2C3_ER_IRQHandler /* I2C3 error */
|
|
||||||
.word OTG_HS_EP1_OUT_IRQHandler /* USB OTG HS End Point 1 Out */
|
|
||||||
.word OTG_HS_EP1_IN_IRQHandler /* USB OTG HS End Point 1 In */
|
|
||||||
.word OTG_HS_WKUP_IRQHandler /* USB OTG HS Wakeup through EXTI */
|
|
||||||
.word OTG_HS_IRQHandler /* USB OTG HS */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word HASH_RNG_IRQHandler /* Hash and Rng */
|
|
||||||
.word FPU_IRQHandler /* FPU */
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
*
|
|
||||||
* Provide weak aliases for each Exception handler to the Default_Handler.
|
|
||||||
* As they are weak aliases, any function with the same name will override
|
|
||||||
* this definition.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.weak NMI_Handler
|
|
||||||
.thumb_set NMI_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak HardFault_Handler
|
|
||||||
.thumb_set HardFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak MemManage_Handler
|
|
||||||
.thumb_set MemManage_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak BusFault_Handler
|
|
||||||
.thumb_set BusFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak UsageFault_Handler
|
|
||||||
.thumb_set UsageFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SVC_Handler
|
|
||||||
.thumb_set SVC_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak DebugMon_Handler
|
|
||||||
.thumb_set DebugMon_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak PendSV_Handler
|
|
||||||
.thumb_set PendSV_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SysTick_Handler
|
|
||||||
.thumb_set SysTick_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak WWDG_IRQHandler
|
|
||||||
.thumb_set WWDG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak PVD_IRQHandler
|
|
||||||
.thumb_set PVD_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TAMP_STAMP_IRQHandler
|
|
||||||
.thumb_set TAMP_STAMP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_WKUP_IRQHandler
|
|
||||||
.thumb_set RTC_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FLASH_IRQHandler
|
|
||||||
.thumb_set FLASH_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RCC_IRQHandler
|
|
||||||
.thumb_set RCC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI0_IRQHandler
|
|
||||||
.thumb_set EXTI0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI1_IRQHandler
|
|
||||||
.thumb_set EXTI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI2_IRQHandler
|
|
||||||
.thumb_set EXTI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI3_IRQHandler
|
|
||||||
.thumb_set EXTI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI4_IRQHandler
|
|
||||||
.thumb_set EXTI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak ADC_IRQHandler
|
|
||||||
.thumb_set ADC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_TX_IRQHandler
|
|
||||||
.thumb_set CAN1_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX0_IRQHandler
|
|
||||||
.thumb_set CAN1_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX1_IRQHandler
|
|
||||||
.thumb_set CAN1_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_SCE_IRQHandler
|
|
||||||
.thumb_set CAN1_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI9_5_IRQHandler
|
|
||||||
.thumb_set EXTI9_5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_BRK_TIM9_IRQHandler
|
|
||||||
.thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_UP_TIM10_IRQHandler
|
|
||||||
.thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_TRG_COM_TIM11_IRQHandler
|
|
||||||
.thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_CC_IRQHandler
|
|
||||||
.thumb_set TIM1_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM2_IRQHandler
|
|
||||||
.thumb_set TIM2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM3_IRQHandler
|
|
||||||
.thumb_set TIM3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM4_IRQHandler
|
|
||||||
.thumb_set TIM4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_EV_IRQHandler
|
|
||||||
.thumb_set I2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_ER_IRQHandler
|
|
||||||
.thumb_set I2C1_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_EV_IRQHandler
|
|
||||||
.thumb_set I2C2_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_ER_IRQHandler
|
|
||||||
.thumb_set I2C2_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI1_IRQHandler
|
|
||||||
.thumb_set SPI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI2_IRQHandler
|
|
||||||
.thumb_set SPI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART1_IRQHandler
|
|
||||||
.thumb_set USART1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART2_IRQHandler
|
|
||||||
.thumb_set USART2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART3_IRQHandler
|
|
||||||
.thumb_set USART3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI15_10_IRQHandler
|
|
||||||
.thumb_set EXTI15_10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_Alarm_IRQHandler
|
|
||||||
.thumb_set RTC_Alarm_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_BRK_TIM12_IRQHandler
|
|
||||||
.thumb_set TIM8_BRK_TIM12_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_UP_TIM13_IRQHandler
|
|
||||||
.thumb_set TIM8_UP_TIM13_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_TRG_COM_TIM14_IRQHandler
|
|
||||||
.thumb_set TIM8_TRG_COM_TIM14_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_CC_IRQHandler
|
|
||||||
.thumb_set TIM8_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FSMC_IRQHandler
|
|
||||||
.thumb_set FSMC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SDIO_IRQHandler
|
|
||||||
.thumb_set SDIO_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM5_IRQHandler
|
|
||||||
.thumb_set TIM5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI3_IRQHandler
|
|
||||||
.thumb_set SPI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak UART4_IRQHandler
|
|
||||||
.thumb_set UART4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak UART5_IRQHandler
|
|
||||||
.thumb_set UART5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM6_DAC_IRQHandler
|
|
||||||
.thumb_set TIM6_DAC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM7_IRQHandler
|
|
||||||
.thumb_set TIM7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_TX_IRQHandler
|
|
||||||
.thumb_set CAN2_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX0_IRQHandler
|
|
||||||
.thumb_set CAN2_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX1_IRQHandler
|
|
||||||
.thumb_set CAN2_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_SCE_IRQHandler
|
|
||||||
.thumb_set CAN2_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_IRQHandler
|
|
||||||
.thumb_set OTG_FS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART6_IRQHandler
|
|
||||||
.thumb_set USART6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_EV_IRQHandler
|
|
||||||
.thumb_set I2C3_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_ER_IRQHandler
|
|
||||||
.thumb_set I2C3_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_EP1_OUT_IRQHandler
|
|
||||||
.thumb_set OTG_HS_EP1_OUT_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_EP1_IN_IRQHandler
|
|
||||||
.thumb_set OTG_HS_EP1_IN_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_HS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_IRQHandler
|
|
||||||
.thumb_set OTG_HS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak HASH_RNG_IRQHandler
|
|
||||||
.thumb_set HASH_RNG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FPU_IRQHandler
|
|
||||||
.thumb_set FPU_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
||||||
|
|
||||||
|
|
@ -1,516 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f405xx.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @brief STM32F405xx Devices vector table for GCC based toolchains.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M4 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @attention
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
.syntax unified
|
|
||||||
.cpu cortex-m4
|
|
||||||
.fpu softvfp
|
|
||||||
.thumb
|
|
||||||
|
|
||||||
.global g_pfnVectors
|
|
||||||
.global Default_Handler
|
|
||||||
|
|
||||||
/* start address for the initialization values of the .data section.
|
|
||||||
defined in linker script */
|
|
||||||
.word _sidata
|
|
||||||
/* start address for the .data section. defined in linker script */
|
|
||||||
.word _sdata
|
|
||||||
/* end address for the .data section. defined in linker script */
|
|
||||||
.word _edata
|
|
||||||
/* start address for the .bss section. defined in linker script */
|
|
||||||
.word _sbss
|
|
||||||
/* end address for the .bss section. defined in linker script */
|
|
||||||
.word _ebss
|
|
||||||
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor first
|
|
||||||
* starts execution following a reset event. Only the absolutely
|
|
||||||
* necessary set is performed, after which the application
|
|
||||||
* supplied main() routine is called.
|
|
||||||
* @param None
|
|
||||||
* @retval : None
|
|
||||||
*/
|
|
||||||
|
|
||||||
.section .text.Reset_Handler
|
|
||||||
.weak Reset_Handler
|
|
||||||
.type Reset_Handler, %function
|
|
||||||
Reset_Handler:
|
|
||||||
ldr sp, =_estack /* set stack pointer */
|
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
|
||||||
movs r1, #0
|
|
||||||
b LoopCopyDataInit
|
|
||||||
|
|
||||||
CopyDataInit:
|
|
||||||
ldr r3, =_sidata
|
|
||||||
ldr r3, [r3, r1]
|
|
||||||
str r3, [r0, r1]
|
|
||||||
adds r1, r1, #4
|
|
||||||
|
|
||||||
LoopCopyDataInit:
|
|
||||||
ldr r0, =_sdata
|
|
||||||
ldr r3, =_edata
|
|
||||||
adds r2, r0, r1
|
|
||||||
cmp r2, r3
|
|
||||||
bcc CopyDataInit
|
|
||||||
ldr r2, =_sbss
|
|
||||||
b LoopFillZerobss
|
|
||||||
/* Zero fill the bss segment. */
|
|
||||||
FillZerobss:
|
|
||||||
movs r3, #0
|
|
||||||
str r3, [r2], #4
|
|
||||||
|
|
||||||
LoopFillZerobss:
|
|
||||||
ldr r3, = _ebss
|
|
||||||
cmp r2, r3
|
|
||||||
bcc FillZerobss
|
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
|
||||||
bl SystemInit
|
|
||||||
/* Call static constructors */
|
|
||||||
/* bl __libc_init_array */
|
|
||||||
/* Call the application's entry point.*/
|
|
||||||
bl main
|
|
||||||
bx lr
|
|
||||||
.size Reset_Handler, .-Reset_Handler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor receives an
|
|
||||||
* unexpected interrupt. This simply enters an infinite loop, preserving
|
|
||||||
* the system state for examination by a debugger.
|
|
||||||
* @param None
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
.section .text.Default_Handler,"ax",%progbits
|
|
||||||
Default_Handler:
|
|
||||||
Infinite_Loop:
|
|
||||||
b Infinite_Loop
|
|
||||||
.size Default_Handler, .-Default_Handler
|
|
||||||
/******************************************************************************
|
|
||||||
*
|
|
||||||
* The minimal vector table for a Cortex M3. Note that the proper constructs
|
|
||||||
* must be placed on this to ensure that it ends up at physical address
|
|
||||||
* 0x0000.0000.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.section .isr_vector,"a",%progbits
|
|
||||||
.type g_pfnVectors, %object
|
|
||||||
.size g_pfnVectors, .-g_pfnVectors
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
g_pfnVectors:
|
|
||||||
.word _estack
|
|
||||||
.word Reset_Handler
|
|
||||||
|
|
||||||
.word NMI_Handler
|
|
||||||
.word HardFault_Handler
|
|
||||||
.word MemManage_Handler
|
|
||||||
.word BusFault_Handler
|
|
||||||
.word UsageFault_Handler
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word SVC_Handler
|
|
||||||
.word DebugMon_Handler
|
|
||||||
.word 0
|
|
||||||
.word PendSV_Handler
|
|
||||||
.word SysTick_Handler
|
|
||||||
|
|
||||||
/* External Interrupts */
|
|
||||||
.word WWDG_IRQHandler /* Window WatchDog */
|
|
||||||
.word PVD_IRQHandler /* PVD through EXTI Line detection */
|
|
||||||
.word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */
|
|
||||||
.word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */
|
|
||||||
.word FLASH_IRQHandler /* FLASH */
|
|
||||||
.word RCC_IRQHandler /* RCC */
|
|
||||||
.word EXTI0_IRQHandler /* EXTI Line0 */
|
|
||||||
.word EXTI1_IRQHandler /* EXTI Line1 */
|
|
||||||
.word EXTI2_IRQHandler /* EXTI Line2 */
|
|
||||||
.word EXTI3_IRQHandler /* EXTI Line3 */
|
|
||||||
.word EXTI4_IRQHandler /* EXTI Line4 */
|
|
||||||
.word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */
|
|
||||||
.word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */
|
|
||||||
.word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */
|
|
||||||
.word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */
|
|
||||||
.word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */
|
|
||||||
.word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */
|
|
||||||
.word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */
|
|
||||||
.word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */
|
|
||||||
.word CAN1_TX_IRQHandler /* CAN1 TX */
|
|
||||||
.word CAN1_RX0_IRQHandler /* CAN1 RX0 */
|
|
||||||
.word CAN1_RX1_IRQHandler /* CAN1 RX1 */
|
|
||||||
.word CAN1_SCE_IRQHandler /* CAN1 SCE */
|
|
||||||
.word EXTI9_5_IRQHandler /* External Line[9:5]s */
|
|
||||||
.word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */
|
|
||||||
.word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */
|
|
||||||
.word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */
|
|
||||||
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
|
|
||||||
.word TIM2_IRQHandler /* TIM2 */
|
|
||||||
.word TIM3_IRQHandler /* TIM3 */
|
|
||||||
.word TIM4_IRQHandler /* TIM4 */
|
|
||||||
.word I2C1_EV_IRQHandler /* I2C1 Event */
|
|
||||||
.word I2C1_ER_IRQHandler /* I2C1 Error */
|
|
||||||
.word I2C2_EV_IRQHandler /* I2C2 Event */
|
|
||||||
.word I2C2_ER_IRQHandler /* I2C2 Error */
|
|
||||||
.word SPI1_IRQHandler /* SPI1 */
|
|
||||||
.word SPI2_IRQHandler /* SPI2 */
|
|
||||||
.word USART1_IRQHandler /* USART1 */
|
|
||||||
.word USART2_IRQHandler /* USART2 */
|
|
||||||
.word USART3_IRQHandler /* USART3 */
|
|
||||||
.word EXTI15_10_IRQHandler /* External Line[15:10]s */
|
|
||||||
.word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */
|
|
||||||
.word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */
|
|
||||||
.word TIM8_BRK_TIM12_IRQHandler /* TIM8 Break and TIM12 */
|
|
||||||
.word TIM8_UP_TIM13_IRQHandler /* TIM8 Update and TIM13 */
|
|
||||||
.word TIM8_TRG_COM_TIM14_IRQHandler /* TIM8 Trigger and Commutation and TIM14 */
|
|
||||||
.word TIM8_CC_IRQHandler /* TIM8 Capture Compare */
|
|
||||||
.word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */
|
|
||||||
.word FSMC_IRQHandler /* FSMC */
|
|
||||||
.word SDIO_IRQHandler /* SDIO */
|
|
||||||
.word TIM5_IRQHandler /* TIM5 */
|
|
||||||
.word SPI3_IRQHandler /* SPI3 */
|
|
||||||
.word UART4_IRQHandler /* UART4 */
|
|
||||||
.word UART5_IRQHandler /* UART5 */
|
|
||||||
.word TIM6_DAC_IRQHandler /* TIM6 and DAC1&2 underrun errors */
|
|
||||||
.word TIM7_IRQHandler /* TIM7 */
|
|
||||||
.word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */
|
|
||||||
.word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */
|
|
||||||
.word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */
|
|
||||||
.word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */
|
|
||||||
.word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word CAN2_TX_IRQHandler /* CAN2 TX */
|
|
||||||
.word CAN2_RX0_IRQHandler /* CAN2 RX0 */
|
|
||||||
.word CAN2_RX1_IRQHandler /* CAN2 RX1 */
|
|
||||||
.word CAN2_SCE_IRQHandler /* CAN2 SCE */
|
|
||||||
.word OTG_FS_IRQHandler /* USB OTG FS */
|
|
||||||
.word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */
|
|
||||||
.word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */
|
|
||||||
.word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */
|
|
||||||
.word USART6_IRQHandler /* USART6 */
|
|
||||||
.word I2C3_EV_IRQHandler /* I2C3 event */
|
|
||||||
.word I2C3_ER_IRQHandler /* I2C3 error */
|
|
||||||
.word OTG_HS_EP1_OUT_IRQHandler /* USB OTG HS End Point 1 Out */
|
|
||||||
.word OTG_HS_EP1_IN_IRQHandler /* USB OTG HS End Point 1 In */
|
|
||||||
.word OTG_HS_WKUP_IRQHandler /* USB OTG HS Wakeup through EXTI */
|
|
||||||
.word OTG_HS_IRQHandler /* USB OTG HS */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word HASH_RNG_IRQHandler /* Hash and Rng */
|
|
||||||
.word FPU_IRQHandler /* FPU */
|
|
||||||
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
*
|
|
||||||
* Provide weak aliases for each Exception handler to the Default_Handler.
|
|
||||||
* As they are weak aliases, any function with the same name will override
|
|
||||||
* this definition.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.weak NMI_Handler
|
|
||||||
.thumb_set NMI_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak HardFault_Handler
|
|
||||||
.thumb_set HardFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak MemManage_Handler
|
|
||||||
.thumb_set MemManage_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak BusFault_Handler
|
|
||||||
.thumb_set BusFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak UsageFault_Handler
|
|
||||||
.thumb_set UsageFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SVC_Handler
|
|
||||||
.thumb_set SVC_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak DebugMon_Handler
|
|
||||||
.thumb_set DebugMon_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak PendSV_Handler
|
|
||||||
.thumb_set PendSV_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SysTick_Handler
|
|
||||||
.thumb_set SysTick_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak WWDG_IRQHandler
|
|
||||||
.thumb_set WWDG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak PVD_IRQHandler
|
|
||||||
.thumb_set PVD_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TAMP_STAMP_IRQHandler
|
|
||||||
.thumb_set TAMP_STAMP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_WKUP_IRQHandler
|
|
||||||
.thumb_set RTC_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FLASH_IRQHandler
|
|
||||||
.thumb_set FLASH_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RCC_IRQHandler
|
|
||||||
.thumb_set RCC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI0_IRQHandler
|
|
||||||
.thumb_set EXTI0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI1_IRQHandler
|
|
||||||
.thumb_set EXTI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI2_IRQHandler
|
|
||||||
.thumb_set EXTI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI3_IRQHandler
|
|
||||||
.thumb_set EXTI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI4_IRQHandler
|
|
||||||
.thumb_set EXTI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak ADC_IRQHandler
|
|
||||||
.thumb_set ADC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_TX_IRQHandler
|
|
||||||
.thumb_set CAN1_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX0_IRQHandler
|
|
||||||
.thumb_set CAN1_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX1_IRQHandler
|
|
||||||
.thumb_set CAN1_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_SCE_IRQHandler
|
|
||||||
.thumb_set CAN1_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI9_5_IRQHandler
|
|
||||||
.thumb_set EXTI9_5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_BRK_TIM9_IRQHandler
|
|
||||||
.thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_UP_TIM10_IRQHandler
|
|
||||||
.thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_TRG_COM_TIM11_IRQHandler
|
|
||||||
.thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_CC_IRQHandler
|
|
||||||
.thumb_set TIM1_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM2_IRQHandler
|
|
||||||
.thumb_set TIM2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM3_IRQHandler
|
|
||||||
.thumb_set TIM3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM4_IRQHandler
|
|
||||||
.thumb_set TIM4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_EV_IRQHandler
|
|
||||||
.thumb_set I2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_ER_IRQHandler
|
|
||||||
.thumb_set I2C1_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_EV_IRQHandler
|
|
||||||
.thumb_set I2C2_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_ER_IRQHandler
|
|
||||||
.thumb_set I2C2_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI1_IRQHandler
|
|
||||||
.thumb_set SPI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI2_IRQHandler
|
|
||||||
.thumb_set SPI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART1_IRQHandler
|
|
||||||
.thumb_set USART1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART2_IRQHandler
|
|
||||||
.thumb_set USART2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART3_IRQHandler
|
|
||||||
.thumb_set USART3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI15_10_IRQHandler
|
|
||||||
.thumb_set EXTI15_10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_Alarm_IRQHandler
|
|
||||||
.thumb_set RTC_Alarm_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_BRK_TIM12_IRQHandler
|
|
||||||
.thumb_set TIM8_BRK_TIM12_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_UP_TIM13_IRQHandler
|
|
||||||
.thumb_set TIM8_UP_TIM13_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_TRG_COM_TIM14_IRQHandler
|
|
||||||
.thumb_set TIM8_TRG_COM_TIM14_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_CC_IRQHandler
|
|
||||||
.thumb_set TIM8_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FSMC_IRQHandler
|
|
||||||
.thumb_set FSMC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SDIO_IRQHandler
|
|
||||||
.thumb_set SDIO_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM5_IRQHandler
|
|
||||||
.thumb_set TIM5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI3_IRQHandler
|
|
||||||
.thumb_set SPI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak UART4_IRQHandler
|
|
||||||
.thumb_set UART4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak UART5_IRQHandler
|
|
||||||
.thumb_set UART5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM6_DAC_IRQHandler
|
|
||||||
.thumb_set TIM6_DAC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM7_IRQHandler
|
|
||||||
.thumb_set TIM7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_TX_IRQHandler
|
|
||||||
.thumb_set CAN2_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX0_IRQHandler
|
|
||||||
.thumb_set CAN2_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX1_IRQHandler
|
|
||||||
.thumb_set CAN2_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_SCE_IRQHandler
|
|
||||||
.thumb_set CAN2_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_IRQHandler
|
|
||||||
.thumb_set OTG_FS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART6_IRQHandler
|
|
||||||
.thumb_set USART6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_EV_IRQHandler
|
|
||||||
.thumb_set I2C3_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_ER_IRQHandler
|
|
||||||
.thumb_set I2C3_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_EP1_OUT_IRQHandler
|
|
||||||
.thumb_set OTG_HS_EP1_OUT_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_EP1_IN_IRQHandler
|
|
||||||
.thumb_set OTG_HS_EP1_IN_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_HS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_HS_IRQHandler
|
|
||||||
.thumb_set OTG_HS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak HASH_RNG_IRQHandler
|
|
||||||
.thumb_set HASH_RNG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FPU_IRQHandler
|
|
||||||
.thumb_set FPU_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
||||||
|
|
||||||
|
|
@ -1,452 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f411xe.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @brief STM32F411xExx Devices vector table for GCC based toolchains.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M4 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @attention
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
.syntax unified
|
|
||||||
.cpu cortex-m4
|
|
||||||
.fpu softvfp
|
|
||||||
.thumb
|
|
||||||
|
|
||||||
.global g_pfnVectors
|
|
||||||
.global Default_Handler
|
|
||||||
|
|
||||||
/* start address for the initialization values of the .data section.
|
|
||||||
defined in linker script */
|
|
||||||
.word _sidata
|
|
||||||
/* start address for the .data section. defined in linker script */
|
|
||||||
.word _sdata
|
|
||||||
/* end address for the .data section. defined in linker script */
|
|
||||||
.word _edata
|
|
||||||
/* start address for the .bss section. defined in linker script */
|
|
||||||
.word _sbss
|
|
||||||
/* end address for the .bss section. defined in linker script */
|
|
||||||
.word _ebss
|
|
||||||
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor first
|
|
||||||
* starts execution following a reset event. Only the absolutely
|
|
||||||
* necessary set is performed, after which the application
|
|
||||||
* supplied main() routine is called.
|
|
||||||
* @param None
|
|
||||||
* @retval : None
|
|
||||||
*/
|
|
||||||
|
|
||||||
.section .text.Reset_Handler
|
|
||||||
.weak Reset_Handler
|
|
||||||
.type Reset_Handler, %function
|
|
||||||
Reset_Handler:
|
|
||||||
ldr sp, =_estack /* set stack pointer */
|
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
|
||||||
movs r1, #0
|
|
||||||
b LoopCopyDataInit
|
|
||||||
|
|
||||||
CopyDataInit:
|
|
||||||
ldr r3, =_sidata
|
|
||||||
ldr r3, [r3, r1]
|
|
||||||
str r3, [r0, r1]
|
|
||||||
adds r1, r1, #4
|
|
||||||
|
|
||||||
LoopCopyDataInit:
|
|
||||||
ldr r0, =_sdata
|
|
||||||
ldr r3, =_edata
|
|
||||||
adds r2, r0, r1
|
|
||||||
cmp r2, r3
|
|
||||||
bcc CopyDataInit
|
|
||||||
ldr r2, =_sbss
|
|
||||||
b LoopFillZerobss
|
|
||||||
/* Zero fill the bss segment. */
|
|
||||||
FillZerobss:
|
|
||||||
movs r3, #0
|
|
||||||
str r3, [r2], #4
|
|
||||||
|
|
||||||
LoopFillZerobss:
|
|
||||||
ldr r3, = _ebss
|
|
||||||
cmp r2, r3
|
|
||||||
bcc FillZerobss
|
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
|
||||||
bl SystemInit
|
|
||||||
/* Call static constructors */
|
|
||||||
/* bl __libc_init_array */
|
|
||||||
/* Call the application's entry point.*/
|
|
||||||
bl main
|
|
||||||
bx lr
|
|
||||||
.size Reset_Handler, .-Reset_Handler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor receives an
|
|
||||||
* unexpected interrupt. This simply enters an infinite loop, preserving
|
|
||||||
* the system state for examination by a debugger.
|
|
||||||
* @param None
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
.section .text.Default_Handler,"ax",%progbits
|
|
||||||
Default_Handler:
|
|
||||||
Infinite_Loop:
|
|
||||||
b Infinite_Loop
|
|
||||||
.size Default_Handler, .-Default_Handler
|
|
||||||
/******************************************************************************
|
|
||||||
*
|
|
||||||
* The minimal vector table for a Cortex M3. Note that the proper constructs
|
|
||||||
* must be placed on this to ensure that it ends up at physical address
|
|
||||||
* 0x0000.0000.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.section .isr_vector,"a",%progbits
|
|
||||||
.type g_pfnVectors, %object
|
|
||||||
.size g_pfnVectors, .-g_pfnVectors
|
|
||||||
|
|
||||||
g_pfnVectors:
|
|
||||||
.word _estack
|
|
||||||
.word Reset_Handler
|
|
||||||
.word NMI_Handler
|
|
||||||
.word HardFault_Handler
|
|
||||||
.word MemManage_Handler
|
|
||||||
.word BusFault_Handler
|
|
||||||
.word UsageFault_Handler
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word SVC_Handler
|
|
||||||
.word DebugMon_Handler
|
|
||||||
.word 0
|
|
||||||
.word PendSV_Handler
|
|
||||||
.word SysTick_Handler
|
|
||||||
|
|
||||||
/* External Interrupts */
|
|
||||||
.word WWDG_IRQHandler /* Window WatchDog */
|
|
||||||
.word PVD_IRQHandler /* PVD through EXTI Line detection */
|
|
||||||
.word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */
|
|
||||||
.word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */
|
|
||||||
.word FLASH_IRQHandler /* FLASH */
|
|
||||||
.word RCC_IRQHandler /* RCC */
|
|
||||||
.word EXTI0_IRQHandler /* EXTI Line0 */
|
|
||||||
.word EXTI1_IRQHandler /* EXTI Line1 */
|
|
||||||
.word EXTI2_IRQHandler /* EXTI Line2 */
|
|
||||||
.word EXTI3_IRQHandler /* EXTI Line3 */
|
|
||||||
.word EXTI4_IRQHandler /* EXTI Line4 */
|
|
||||||
.word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */
|
|
||||||
.word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */
|
|
||||||
.word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */
|
|
||||||
.word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */
|
|
||||||
.word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */
|
|
||||||
.word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */
|
|
||||||
.word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */
|
|
||||||
.word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word EXTI9_5_IRQHandler /* External Line[9:5]s */
|
|
||||||
.word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */
|
|
||||||
.word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */
|
|
||||||
.word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */
|
|
||||||
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
|
|
||||||
.word TIM2_IRQHandler /* TIM2 */
|
|
||||||
.word TIM3_IRQHandler /* TIM3 */
|
|
||||||
.word TIM4_IRQHandler /* TIM4 */
|
|
||||||
.word I2C1_EV_IRQHandler /* I2C1 Event */
|
|
||||||
.word I2C1_ER_IRQHandler /* I2C1 Error */
|
|
||||||
.word I2C2_EV_IRQHandler /* I2C2 Event */
|
|
||||||
.word I2C2_ER_IRQHandler /* I2C2 Error */
|
|
||||||
.word SPI1_IRQHandler /* SPI1 */
|
|
||||||
.word SPI2_IRQHandler /* SPI2 */
|
|
||||||
.word USART1_IRQHandler /* USART1 */
|
|
||||||
.word USART2_IRQHandler /* USART2 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word EXTI15_10_IRQHandler /* External Line[15:10]s */
|
|
||||||
.word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */
|
|
||||||
.word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SDIO_IRQHandler /* SDIO */
|
|
||||||
.word TIM5_IRQHandler /* TIM5 */
|
|
||||||
.word SPI3_IRQHandler /* SPI3 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */
|
|
||||||
.word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */
|
|
||||||
.word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */
|
|
||||||
.word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */
|
|
||||||
.word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word OTG_FS_IRQHandler /* USB OTG FS */
|
|
||||||
.word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */
|
|
||||||
.word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */
|
|
||||||
.word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */
|
|
||||||
.word USART6_IRQHandler /* USART6 */
|
|
||||||
.word I2C3_EV_IRQHandler /* I2C3 event */
|
|
||||||
.word I2C3_ER_IRQHandler /* I2C3 error */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word FPU_IRQHandler /* FPU */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SPI4_IRQHandler /* SPI4 */
|
|
||||||
.word SPI5_IRQHandler /* SPI5 */
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
*
|
|
||||||
* Provide weak aliases for each Exception handler to the Default_Handler.
|
|
||||||
* As they are weak aliases, any function with the same name will override
|
|
||||||
* this definition.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.weak NMI_Handler
|
|
||||||
.thumb_set NMI_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak HardFault_Handler
|
|
||||||
.thumb_set HardFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak MemManage_Handler
|
|
||||||
.thumb_set MemManage_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak BusFault_Handler
|
|
||||||
.thumb_set BusFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak UsageFault_Handler
|
|
||||||
.thumb_set UsageFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SVC_Handler
|
|
||||||
.thumb_set SVC_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak DebugMon_Handler
|
|
||||||
.thumb_set DebugMon_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak PendSV_Handler
|
|
||||||
.thumb_set PendSV_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SysTick_Handler
|
|
||||||
.thumb_set SysTick_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak WWDG_IRQHandler
|
|
||||||
.thumb_set WWDG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak PVD_IRQHandler
|
|
||||||
.thumb_set PVD_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TAMP_STAMP_IRQHandler
|
|
||||||
.thumb_set TAMP_STAMP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_WKUP_IRQHandler
|
|
||||||
.thumb_set RTC_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FLASH_IRQHandler
|
|
||||||
.thumb_set FLASH_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RCC_IRQHandler
|
|
||||||
.thumb_set RCC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI0_IRQHandler
|
|
||||||
.thumb_set EXTI0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI1_IRQHandler
|
|
||||||
.thumb_set EXTI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI2_IRQHandler
|
|
||||||
.thumb_set EXTI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI3_IRQHandler
|
|
||||||
.thumb_set EXTI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI4_IRQHandler
|
|
||||||
.thumb_set EXTI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak ADC_IRQHandler
|
|
||||||
.thumb_set ADC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI9_5_IRQHandler
|
|
||||||
.thumb_set EXTI9_5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_BRK_TIM9_IRQHandler
|
|
||||||
.thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_UP_TIM10_IRQHandler
|
|
||||||
.thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_TRG_COM_TIM11_IRQHandler
|
|
||||||
.thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_CC_IRQHandler
|
|
||||||
.thumb_set TIM1_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM2_IRQHandler
|
|
||||||
.thumb_set TIM2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM3_IRQHandler
|
|
||||||
.thumb_set TIM3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM4_IRQHandler
|
|
||||||
.thumb_set TIM4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_EV_IRQHandler
|
|
||||||
.thumb_set I2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_ER_IRQHandler
|
|
||||||
.thumb_set I2C1_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_EV_IRQHandler
|
|
||||||
.thumb_set I2C2_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_ER_IRQHandler
|
|
||||||
.thumb_set I2C2_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI1_IRQHandler
|
|
||||||
.thumb_set SPI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI2_IRQHandler
|
|
||||||
.thumb_set SPI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART1_IRQHandler
|
|
||||||
.thumb_set USART1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART2_IRQHandler
|
|
||||||
.thumb_set USART2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI15_10_IRQHandler
|
|
||||||
.thumb_set EXTI15_10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_Alarm_IRQHandler
|
|
||||||
.thumb_set RTC_Alarm_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SDIO_IRQHandler
|
|
||||||
.thumb_set SDIO_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM5_IRQHandler
|
|
||||||
.thumb_set TIM5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI3_IRQHandler
|
|
||||||
.thumb_set SPI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_IRQHandler
|
|
||||||
.thumb_set OTG_FS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART6_IRQHandler
|
|
||||||
.thumb_set USART6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_EV_IRQHandler
|
|
||||||
.thumb_set I2C3_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_ER_IRQHandler
|
|
||||||
.thumb_set I2C3_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FPU_IRQHandler
|
|
||||||
.thumb_set FPU_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI4_IRQHandler
|
|
||||||
.thumb_set SPI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI5_IRQHandler
|
|
||||||
.thumb_set SPI5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
||||||
|
|
@ -1,524 +0,0 @@
|
|||||||
/**
|
|
||||||
******************************************************************************
|
|
||||||
* @file startup_stm32f412zx.s
|
|
||||||
* @author MCD Application Team
|
|
||||||
* @brief STM32F412Zx Devices vector table for GCC based toolchains.
|
|
||||||
* This module performs:
|
|
||||||
* - Set the initial SP
|
|
||||||
* - Set the initial PC == Reset_Handler,
|
|
||||||
* - Set the vector table entries with the exceptions ISR address
|
|
||||||
* - Branches to main in the C library (which eventually
|
|
||||||
* calls main()).
|
|
||||||
* After Reset the Cortex-M4 processor is in Thread mode,
|
|
||||||
* priority is Privileged, and the Stack is set to Main.
|
|
||||||
******************************************************************************
|
|
||||||
* @attention
|
|
||||||
*
|
|
||||||
* <h2><center>© COPYRIGHT 2017 STMicroelectronics</center></h2>
|
|
||||||
*
|
|
||||||
* Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
* are permitted provided that the following conditions are met:
|
|
||||||
* 1. Redistributions of source code must retain the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer.
|
|
||||||
* 2. Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
* this list of conditions and the following disclaimer in the documentation
|
|
||||||
* and/or other materials provided with the distribution.
|
|
||||||
* 3. Neither the name of STMicroelectronics nor the names of its contributors
|
|
||||||
* may be used to endorse or promote products derived from this software
|
|
||||||
* without specific prior written permission.
|
|
||||||
*
|
|
||||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
* DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
||||||
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
||||||
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
||||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
||||||
* CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
||||||
* OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
||||||
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
*
|
|
||||||
******************************************************************************
|
|
||||||
*/
|
|
||||||
|
|
||||||
.syntax unified
|
|
||||||
.cpu cortex-m4
|
|
||||||
.fpu softvfp
|
|
||||||
.thumb
|
|
||||||
|
|
||||||
.global g_pfnVectors
|
|
||||||
.global Default_Handler
|
|
||||||
|
|
||||||
/* start address for the initialization values of the .data section.
|
|
||||||
defined in linker script */
|
|
||||||
.word _sidata
|
|
||||||
/* start address for the .data section. defined in linker script */
|
|
||||||
.word _sdata
|
|
||||||
/* end address for the .data section. defined in linker script */
|
|
||||||
.word _edata
|
|
||||||
/* start address for the .bss section. defined in linker script */
|
|
||||||
.word _sbss
|
|
||||||
/* end address for the .bss section. defined in linker script */
|
|
||||||
.word _ebss
|
|
||||||
/* stack used for SystemInit_ExtMemCtl; always internal RAM used */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor first
|
|
||||||
* starts execution following a reset event. Only the absolutely
|
|
||||||
* necessary set is performed, after which the application
|
|
||||||
* supplied main() routine is called.
|
|
||||||
* @param None
|
|
||||||
* @retval : None
|
|
||||||
*/
|
|
||||||
|
|
||||||
.section .text.Reset_Handler
|
|
||||||
.weak Reset_Handler
|
|
||||||
.type Reset_Handler, %function
|
|
||||||
Reset_Handler:
|
|
||||||
ldr sp, =_estack /* set stack pointer */
|
|
||||||
|
|
||||||
/* Copy the data segment initializers from flash to SRAM */
|
|
||||||
movs r1, #0
|
|
||||||
b LoopCopyDataInit
|
|
||||||
|
|
||||||
CopyDataInit:
|
|
||||||
ldr r3, =_sidata
|
|
||||||
ldr r3, [r3, r1]
|
|
||||||
str r3, [r0, r1]
|
|
||||||
adds r1, r1, #4
|
|
||||||
|
|
||||||
LoopCopyDataInit:
|
|
||||||
ldr r0, =_sdata
|
|
||||||
ldr r3, =_edata
|
|
||||||
adds r2, r0, r1
|
|
||||||
cmp r2, r3
|
|
||||||
bcc CopyDataInit
|
|
||||||
ldr r2, =_sbss
|
|
||||||
b LoopFillZerobss
|
|
||||||
/* Zero fill the bss segment. */
|
|
||||||
FillZerobss:
|
|
||||||
movs r3, #0
|
|
||||||
str r3, [r2], #4
|
|
||||||
|
|
||||||
LoopFillZerobss:
|
|
||||||
ldr r3, = _ebss
|
|
||||||
cmp r2, r3
|
|
||||||
bcc FillZerobss
|
|
||||||
|
|
||||||
/* Call the clock system intitialization function.*/
|
|
||||||
bl SystemInit
|
|
||||||
/* Call static constructors */
|
|
||||||
/* bl __libc_init_array */
|
|
||||||
/* Call the application's entry point.*/
|
|
||||||
bl main
|
|
||||||
bx lr
|
|
||||||
.size Reset_Handler, .-Reset_Handler
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief This is the code that gets called when the processor receives an
|
|
||||||
* unexpected interrupt. This simply enters an infinite loop, preserving
|
|
||||||
* the system state for examination by a debugger.
|
|
||||||
* @param None
|
|
||||||
* @retval None
|
|
||||||
*/
|
|
||||||
.section .text.Default_Handler,"ax",%progbits
|
|
||||||
Default_Handler:
|
|
||||||
Infinite_Loop:
|
|
||||||
b Infinite_Loop
|
|
||||||
.size Default_Handler, .-Default_Handler
|
|
||||||
/******************************************************************************
|
|
||||||
*
|
|
||||||
* The minimal vector table for a Cortex M3. Note that the proper constructs
|
|
||||||
* must be placed on this to ensure that it ends up at physical address
|
|
||||||
* 0x0000.0000.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.section .isr_vector,"a",%progbits
|
|
||||||
.type g_pfnVectors, %object
|
|
||||||
.size g_pfnVectors, .-g_pfnVectors
|
|
||||||
|
|
||||||
g_pfnVectors:
|
|
||||||
.word _estack
|
|
||||||
.word Reset_Handler
|
|
||||||
.word NMI_Handler
|
|
||||||
.word HardFault_Handler
|
|
||||||
.word MemManage_Handler
|
|
||||||
.word BusFault_Handler
|
|
||||||
.word UsageFault_Handler
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word 0
|
|
||||||
.word SVC_Handler
|
|
||||||
.word DebugMon_Handler
|
|
||||||
.word 0
|
|
||||||
.word PendSV_Handler
|
|
||||||
.word SysTick_Handler
|
|
||||||
|
|
||||||
/* External Interrupts */
|
|
||||||
.word WWDG_IRQHandler /* Window WatchDog */
|
|
||||||
.word PVD_IRQHandler /* PVD through EXTI Line detection */
|
|
||||||
.word TAMP_STAMP_IRQHandler /* Tamper and TimeStamps through the EXTI line */
|
|
||||||
.word RTC_WKUP_IRQHandler /* RTC Wakeup through the EXTI line */
|
|
||||||
.word FLASH_IRQHandler /* FLASH */
|
|
||||||
.word RCC_IRQHandler /* RCC */
|
|
||||||
.word EXTI0_IRQHandler /* EXTI Line0 */
|
|
||||||
.word EXTI1_IRQHandler /* EXTI Line1 */
|
|
||||||
.word EXTI2_IRQHandler /* EXTI Line2 */
|
|
||||||
.word EXTI3_IRQHandler /* EXTI Line3 */
|
|
||||||
.word EXTI4_IRQHandler /* EXTI Line4 */
|
|
||||||
.word DMA1_Stream0_IRQHandler /* DMA1 Stream 0 */
|
|
||||||
.word DMA1_Stream1_IRQHandler /* DMA1 Stream 1 */
|
|
||||||
.word DMA1_Stream2_IRQHandler /* DMA1 Stream 2 */
|
|
||||||
.word DMA1_Stream3_IRQHandler /* DMA1 Stream 3 */
|
|
||||||
.word DMA1_Stream4_IRQHandler /* DMA1 Stream 4 */
|
|
||||||
.word DMA1_Stream5_IRQHandler /* DMA1 Stream 5 */
|
|
||||||
.word DMA1_Stream6_IRQHandler /* DMA1 Stream 6 */
|
|
||||||
.word ADC_IRQHandler /* ADC1, ADC2 and ADC3s */
|
|
||||||
.word CAN1_TX_IRQHandler /* CAN1 TX */
|
|
||||||
.word CAN1_RX0_IRQHandler /* CAN1 RX0 */
|
|
||||||
.word CAN1_RX1_IRQHandler /* CAN1 RX1 */
|
|
||||||
.word CAN1_SCE_IRQHandler /* CAN1 SCE */
|
|
||||||
.word EXTI9_5_IRQHandler /* External Line[9:5]s */
|
|
||||||
.word TIM1_BRK_TIM9_IRQHandler /* TIM1 Break and TIM9 */
|
|
||||||
.word TIM1_UP_TIM10_IRQHandler /* TIM1 Update and TIM10 */
|
|
||||||
.word TIM1_TRG_COM_TIM11_IRQHandler /* TIM1 Trigger and Commutation and TIM11 */
|
|
||||||
.word TIM1_CC_IRQHandler /* TIM1 Capture Compare */
|
|
||||||
.word TIM2_IRQHandler /* TIM2 */
|
|
||||||
.word TIM3_IRQHandler /* TIM3 */
|
|
||||||
.word TIM4_IRQHandler /* TIM4 */
|
|
||||||
.word I2C1_EV_IRQHandler /* I2C1 Event */
|
|
||||||
.word I2C1_ER_IRQHandler /* I2C1 Error */
|
|
||||||
.word I2C2_EV_IRQHandler /* I2C2 Event */
|
|
||||||
.word I2C2_ER_IRQHandler /* I2C2 Error */
|
|
||||||
.word SPI1_IRQHandler /* SPI1 */
|
|
||||||
.word SPI2_IRQHandler /* SPI2 */
|
|
||||||
.word USART1_IRQHandler /* USART1 */
|
|
||||||
.word USART2_IRQHandler /* USART2 */
|
|
||||||
.word USART3_IRQHandler /* USART3 */
|
|
||||||
.word EXTI15_10_IRQHandler /* External Line[15:10]s */
|
|
||||||
.word RTC_Alarm_IRQHandler /* RTC Alarm (A and B) through EXTI Line */
|
|
||||||
.word OTG_FS_WKUP_IRQHandler /* USB OTG FS Wakeup through EXTI line */
|
|
||||||
.word TIM8_BRK_TIM12_IRQHandler /* TIM8 Break and TIM12 */
|
|
||||||
.word TIM8_UP_TIM13_IRQHandler /* TIM8 Update and TIM13 */
|
|
||||||
.word TIM8_TRG_COM_TIM14_IRQHandler /* TIM8 Trigger and Commutation and TIM14 */
|
|
||||||
.word TIM8_CC_IRQHandler /* TIM8 Capture Compare */
|
|
||||||
.word DMA1_Stream7_IRQHandler /* DMA1 Stream7 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SDIO_IRQHandler /* SDIO */
|
|
||||||
.word TIM5_IRQHandler /* TIM5 */
|
|
||||||
.word SPI3_IRQHandler /* SPI3 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word TIM6_IRQHandler /* TIM6 */
|
|
||||||
.word TIM7_IRQHandler /* TIM7 */
|
|
||||||
.word DMA2_Stream0_IRQHandler /* DMA2 Stream 0 */
|
|
||||||
.word DMA2_Stream1_IRQHandler /* DMA2 Stream 1 */
|
|
||||||
.word DMA2_Stream2_IRQHandler /* DMA2 Stream 2 */
|
|
||||||
.word DMA2_Stream3_IRQHandler /* DMA2 Stream 3 */
|
|
||||||
.word DMA2_Stream4_IRQHandler /* DMA2 Stream 4 */
|
|
||||||
.word DFSDM1_FLT0_IRQHandler /* DFSDM1 Filter0 */
|
|
||||||
.word DFSDM1_FLT1_IRQHandler /* DFSDM1 Filter1 */
|
|
||||||
.word CAN2_TX_IRQHandler /* CAN2 TX */
|
|
||||||
.word CAN2_RX0_IRQHandler /* CAN2 RX0 */
|
|
||||||
.word CAN2_RX1_IRQHandler /* CAN2 RX1 */
|
|
||||||
.word CAN2_SCE_IRQHandler /* CAN2 SCE */
|
|
||||||
.word OTG_FS_IRQHandler /* USB OTG FS */
|
|
||||||
.word DMA2_Stream5_IRQHandler /* DMA2 Stream 5 */
|
|
||||||
.word DMA2_Stream6_IRQHandler /* DMA2 Stream 6 */
|
|
||||||
.word DMA2_Stream7_IRQHandler /* DMA2 Stream 7 */
|
|
||||||
.word USART6_IRQHandler /* USART6 */
|
|
||||||
.word I2C3_EV_IRQHandler /* I2C3 event */
|
|
||||||
.word I2C3_ER_IRQHandler /* I2C3 error */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word RNG_IRQHandler /* RNG */
|
|
||||||
.word FPU_IRQHandler /* FPU */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word SPI4_IRQHandler /* SPI4 */
|
|
||||||
.word SPI5_IRQHandler /* SPI5 */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word QUADSPI_IRQHandler /* QuadSPI */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word 0 /* Reserved */
|
|
||||||
.word FMPI2C1_EV_IRQHandler /* FMPI2C1 Event */
|
|
||||||
.word FMPI2C1_ER_IRQHandler /* FMPI2C1 Error */
|
|
||||||
|
|
||||||
/*******************************************************************************
|
|
||||||
*
|
|
||||||
* Provide weak aliases for each Exception handler to the Default_Handler.
|
|
||||||
* As they are weak aliases, any function with the same name will override
|
|
||||||
* this definition.
|
|
||||||
*
|
|
||||||
*******************************************************************************/
|
|
||||||
.weak NMI_Handler
|
|
||||||
.thumb_set NMI_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak HardFault_Handler
|
|
||||||
.thumb_set HardFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak MemManage_Handler
|
|
||||||
.thumb_set MemManage_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak BusFault_Handler
|
|
||||||
.thumb_set BusFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak UsageFault_Handler
|
|
||||||
.thumb_set UsageFault_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SVC_Handler
|
|
||||||
.thumb_set SVC_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak DebugMon_Handler
|
|
||||||
.thumb_set DebugMon_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak PendSV_Handler
|
|
||||||
.thumb_set PendSV_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak SysTick_Handler
|
|
||||||
.thumb_set SysTick_Handler,Default_Handler
|
|
||||||
|
|
||||||
.weak WWDG_IRQHandler
|
|
||||||
.thumb_set WWDG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak PVD_IRQHandler
|
|
||||||
.thumb_set PVD_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TAMP_STAMP_IRQHandler
|
|
||||||
.thumb_set TAMP_STAMP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_WKUP_IRQHandler
|
|
||||||
.thumb_set RTC_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FLASH_IRQHandler
|
|
||||||
.thumb_set FLASH_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RCC_IRQHandler
|
|
||||||
.thumb_set RCC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI0_IRQHandler
|
|
||||||
.thumb_set EXTI0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI1_IRQHandler
|
|
||||||
.thumb_set EXTI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI2_IRQHandler
|
|
||||||
.thumb_set EXTI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI3_IRQHandler
|
|
||||||
.thumb_set EXTI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI4_IRQHandler
|
|
||||||
.thumb_set EXTI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak ADC_IRQHandler
|
|
||||||
.thumb_set ADC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_TX_IRQHandler
|
|
||||||
.thumb_set CAN1_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX0_IRQHandler
|
|
||||||
.thumb_set CAN1_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_RX1_IRQHandler
|
|
||||||
.thumb_set CAN1_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN1_SCE_IRQHandler
|
|
||||||
.thumb_set CAN1_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI9_5_IRQHandler
|
|
||||||
.thumb_set EXTI9_5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_BRK_TIM9_IRQHandler
|
|
||||||
.thumb_set TIM1_BRK_TIM9_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_UP_TIM10_IRQHandler
|
|
||||||
.thumb_set TIM1_UP_TIM10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_TRG_COM_TIM11_IRQHandler
|
|
||||||
.thumb_set TIM1_TRG_COM_TIM11_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM1_CC_IRQHandler
|
|
||||||
.thumb_set TIM1_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM2_IRQHandler
|
|
||||||
.thumb_set TIM2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM3_IRQHandler
|
|
||||||
.thumb_set TIM3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM4_IRQHandler
|
|
||||||
.thumb_set TIM4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_EV_IRQHandler
|
|
||||||
.thumb_set I2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C1_ER_IRQHandler
|
|
||||||
.thumb_set I2C1_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_EV_IRQHandler
|
|
||||||
.thumb_set I2C2_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C2_ER_IRQHandler
|
|
||||||
.thumb_set I2C2_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI1_IRQHandler
|
|
||||||
.thumb_set SPI1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI2_IRQHandler
|
|
||||||
.thumb_set SPI2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART1_IRQHandler
|
|
||||||
.thumb_set USART1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART2_IRQHandler
|
|
||||||
.thumb_set USART2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART3_IRQHandler
|
|
||||||
.thumb_set USART3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak EXTI15_10_IRQHandler
|
|
||||||
.thumb_set EXTI15_10_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RTC_Alarm_IRQHandler
|
|
||||||
.thumb_set RTC_Alarm_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_WKUP_IRQHandler
|
|
||||||
.thumb_set OTG_FS_WKUP_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_BRK_TIM12_IRQHandler
|
|
||||||
.thumb_set TIM8_BRK_TIM12_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_UP_TIM13_IRQHandler
|
|
||||||
.thumb_set TIM8_UP_TIM13_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_TRG_COM_TIM14_IRQHandler
|
|
||||||
.thumb_set TIM8_TRG_COM_TIM14_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM8_CC_IRQHandler
|
|
||||||
.thumb_set TIM8_CC_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA1_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA1_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SDIO_IRQHandler
|
|
||||||
.thumb_set SDIO_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM5_IRQHandler
|
|
||||||
.thumb_set TIM5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI3_IRQHandler
|
|
||||||
.thumb_set SPI3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM6_IRQHandler
|
|
||||||
.thumb_set TIM6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak TIM7_IRQHandler
|
|
||||||
.thumb_set TIM7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream0_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream1_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream2_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream2_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream3_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream3_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream4_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DFSDM1_FLT0_IRQHandler
|
|
||||||
.thumb_set DFSDM1_FLT0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DFSDM1_FLT1_IRQHandler
|
|
||||||
.thumb_set DFSDM1_FLT1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_TX_IRQHandler
|
|
||||||
.thumb_set CAN2_TX_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX0_IRQHandler
|
|
||||||
.thumb_set CAN2_RX0_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_RX1_IRQHandler
|
|
||||||
.thumb_set CAN2_RX1_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak CAN2_SCE_IRQHandler
|
|
||||||
.thumb_set CAN2_SCE_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak OTG_FS_IRQHandler
|
|
||||||
.thumb_set OTG_FS_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream5_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream6_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak DMA2_Stream7_IRQHandler
|
|
||||||
.thumb_set DMA2_Stream7_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak USART6_IRQHandler
|
|
||||||
.thumb_set USART6_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_EV_IRQHandler
|
|
||||||
.thumb_set I2C3_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak I2C3_ER_IRQHandler
|
|
||||||
.thumb_set I2C3_ER_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak RNG_IRQHandler
|
|
||||||
.thumb_set RNG_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FPU_IRQHandler
|
|
||||||
.thumb_set FPU_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI4_IRQHandler
|
|
||||||
.thumb_set SPI4_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak SPI5_IRQHandler
|
|
||||||
.thumb_set SPI5_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak QUADSPI_IRQHandler
|
|
||||||
.thumb_set QUADSPI_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FMPI2C1_EV_IRQHandler
|
|
||||||
.thumb_set FMPI2C1_EV_IRQHandler,Default_Handler
|
|
||||||
|
|
||||||
.weak FMPI2C1_ER_IRQHandler
|
|
||||||
.thumb_set FMPI2C1_ER_IRQHandler,Default_Handler
|
|
||||||
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
|
@ -10,12 +10,11 @@ USB_DEVICES = "CDC,MSC"
|
|||||||
# LONGINT_IMPL = MPZ
|
# LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F411xE
|
||||||
MCU_SUB_VARIANT = stm32f411xe
|
MCU_PACKAGE = UFQFPN48
|
||||||
MCU_PACKAGE = 48
|
|
||||||
CMSIS_MCU = STM32F411xE
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F411VETx_FLASH.ld
|
LD_FILE = boards/STM32F411_fs.ld
|
||||||
|
|
||||||
|
@ -5,12 +5,11 @@ USB_MANUFACTURER = "STMicroelectronics"
|
|||||||
USB_DEVICES = "CDC,MSC"
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F411xE
|
||||||
MCU_SUB_VARIANT = stm32f411xe
|
MCU_PACKAGE = LQFP100_f4
|
||||||
MCU_PACKAGE = 100
|
|
||||||
CMSIS_MCU = STM32F411xE
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F411VETx_FLASH.ld
|
LD_FILE = boards/STM32F411_fs.ld
|
||||||
|
|
||||||
|
@ -5,18 +5,17 @@ USB_MANUFACTURER = "STMicroelectronics"
|
|||||||
USB_DEVICES = "CDC,MSC,HID"
|
USB_DEVICES = "CDC,MSC,HID"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
# QSPI_FLASH_FILESYSTEM = 1
|
# QSPI_FLASH_FILESYSTEM = 1
|
||||||
# EXTERNAL_FLASH_DEVICE_COUNT = 1
|
# EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
# EXTERNAL_FLASH_DEVICES = N25Q128A
|
# EXTERNAL_FLASH_DEVICES = N25Q128A
|
||||||
# LONGINT_IMPL = MPZ
|
# LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F412Zx
|
||||||
MCU_SUB_VARIANT = stm32f412zx
|
MCU_PACKAGE = LQFP144
|
||||||
MCU_PACKAGE = 144
|
|
||||||
CMSIS_MCU = STM32F412Zx
|
LD_COMMON = boards/common_default.ld
|
||||||
LD_FILE = boards/STM32F412ZGTx_FLASH.ld
|
LD_FILE = boards/STM32F412_fs.ld
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,14 +5,11 @@ USB_MANUFACTURER = "STMicroelectronics"
|
|||||||
USB_DEVICES = "CDC,MSC"
|
USB_DEVICES = "CDC,MSC"
|
||||||
|
|
||||||
INTERNAL_FLASH_FILESYSTEM = 1
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
LONGINT_IMPL = NONE
|
|
||||||
|
|
||||||
# This is technically a F407 but there's no difference
|
MCU_SERIES = F4
|
||||||
# other than the camera and ethernet, which aren't supported.
|
MCU_VARIANT = STM32F407xx
|
||||||
MCU_SERIES = m4
|
MCU_PACKAGE = LQFP100_f4
|
||||||
MCU_VARIANT = stm32f4
|
|
||||||
MCU_SUB_VARIANT = stm32f407xx
|
LD_COMMON = boards/common_default.ld
|
||||||
MCU_PACKAGE = 100
|
|
||||||
CMSIS_MCU = STM32F407xx
|
|
||||||
LD_FILE = boards/STM32F407_fs.ld
|
LD_FILE = boards/STM32F407_fs.ld
|
||||||
|
|
||||||
|
247
ports/stm/boards/system_stm32f7xx.c
Normal file
247
ports/stm/boards/system_stm32f7xx.c
Normal file
@ -0,0 +1,247 @@
|
|||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file system_stm32f7xx.c
|
||||||
|
* @author MCD Application Team
|
||||||
|
* @brief CMSIS Cortex-M7 Device Peripheral Access Layer System Source File.
|
||||||
|
*
|
||||||
|
* This file provides two functions and one global variable to be called from
|
||||||
|
* user application:
|
||||||
|
* - SystemInit(): This function is called at startup just after reset and
|
||||||
|
* before branch to main program. This call is made inside
|
||||||
|
* the "startup_stm32f7xx.s" file.
|
||||||
|
*
|
||||||
|
* - SystemCoreClock variable: Contains the core clock (HCLK), it can be used
|
||||||
|
* by the user application to setup the SysTick
|
||||||
|
* timer or configure other parameters.
|
||||||
|
*
|
||||||
|
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
|
||||||
|
* be called whenever the core clock is changed
|
||||||
|
* during program execution.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* <h2><center>© Copyright (c) 2016 STMicroelectronics.
|
||||||
|
* All rights reserved.</center></h2>
|
||||||
|
*
|
||||||
|
* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
|
* the "License"; You may not use this file except in compliance with the
|
||||||
|
* License. You may obtain a copy of the License at:
|
||||||
|
* opensource.org/licenses/BSD-3-Clause
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup CMSIS
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup stm32f7xx_system
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_Includes
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "stm32f7xx.h"
|
||||||
|
|
||||||
|
#if !defined (HSE_VALUE)
|
||||||
|
#define HSE_VALUE ((uint32_t)25000000) /*!< Default value of the External oscillator in Hz */
|
||||||
|
#endif /* HSE_VALUE */
|
||||||
|
|
||||||
|
#if !defined (HSI_VALUE)
|
||||||
|
#define HSI_VALUE ((uint32_t)16000000) /*!< Value of the Internal oscillator in Hz*/
|
||||||
|
#endif /* HSI_VALUE */
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_TypesDefinitions
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_Defines
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************* Miscellaneous Configuration ************************/
|
||||||
|
|
||||||
|
/*!< Uncomment the following line if you need to relocate your vector Table in
|
||||||
|
Internal SRAM. */
|
||||||
|
/* #define VECT_TAB_SRAM */
|
||||||
|
#define VECT_TAB_OFFSET 0x00 /*!< Vector Table base offset field.
|
||||||
|
This value must be a multiple of 0x200. */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_Macros
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_Variables
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* This variable is updated in three ways:
|
||||||
|
1) by calling CMSIS function SystemCoreClockUpdate()
|
||||||
|
2) by calling HAL API function HAL_RCC_GetHCLKFreq()
|
||||||
|
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
|
||||||
|
Note: If you use this function to configure the system clock; then there
|
||||||
|
is no need to call the 2 first functions listed above, since SystemCoreClock
|
||||||
|
variable is updated automatically.
|
||||||
|
*/
|
||||||
|
uint32_t SystemCoreClock = 16000000;
|
||||||
|
const uint8_t AHBPrescTable[16] = {0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 6, 7, 8, 9};
|
||||||
|
const uint8_t APBPrescTable[8] = {0, 0, 0, 0, 1, 2, 3, 4};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_FunctionPrototypes
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32F7xx_System_Private_Functions
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Setup the microcontroller system
|
||||||
|
* Initialize the Embedded Flash Interface, the PLL and update the
|
||||||
|
* SystemFrequency variable.
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemInit(void)
|
||||||
|
{
|
||||||
|
/* FPU settings ------------------------------------------------------------*/
|
||||||
|
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
||||||
|
SCB->CPACR |= ((3UL << 10*2)|(3UL << 11*2)); /* set CP10 and CP11 Full Access */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Configure the Vector Table location add offset address ------------------*/
|
||||||
|
#if !(BOARD_VTOR_DEFER) //only set VTOR if the bootloader hasn't already
|
||||||
|
#ifdef VECT_TAB_SRAM
|
||||||
|
SCB->VTOR = RAMDTCM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
||||||
|
#else
|
||||||
|
SCB->VTOR = FLASH_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Update SystemCoreClock variable according to Clock Register Values.
|
||||||
|
* The SystemCoreClock variable contains the core clock (HCLK), it can
|
||||||
|
* be used by the user application to setup the SysTick timer or configure
|
||||||
|
* other parameters.
|
||||||
|
*
|
||||||
|
* @note Each time the core clock (HCLK) changes, this function must be called
|
||||||
|
* to update SystemCoreClock variable value. Otherwise, any configuration
|
||||||
|
* based on this variable will be incorrect.
|
||||||
|
*
|
||||||
|
* @note - The system frequency computed by this function is not the real
|
||||||
|
* frequency in the chip. It is calculated based on the predefined
|
||||||
|
* constant and the selected clock source:
|
||||||
|
*
|
||||||
|
* - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(*)
|
||||||
|
*
|
||||||
|
* - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(**)
|
||||||
|
*
|
||||||
|
* - If SYSCLK source is PLL, SystemCoreClock will contain the HSE_VALUE(**)
|
||||||
|
* or HSI_VALUE(*) multiplied/divided by the PLL factors.
|
||||||
|
*
|
||||||
|
* (*) HSI_VALUE is a constant defined in stm32f7xx_hal_conf.h file (default value
|
||||||
|
* 16 MHz) but the real value may vary depending on the variations
|
||||||
|
* in voltage and temperature.
|
||||||
|
*
|
||||||
|
* (**) HSE_VALUE is a constant defined in stm32f7xx_hal_conf.h file (default value
|
||||||
|
* 25 MHz), user has to ensure that HSE_VALUE is same as the real
|
||||||
|
* frequency of the crystal used. Otherwise, this function may
|
||||||
|
* have wrong result.
|
||||||
|
*
|
||||||
|
* - The result of this function could be not correct when using fractional
|
||||||
|
* value for HSE crystal.
|
||||||
|
*
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemCoreClockUpdate(void)
|
||||||
|
{
|
||||||
|
uint32_t tmp = 0, pllvco = 0, pllp = 2, pllsource = 0, pllm = 2;
|
||||||
|
|
||||||
|
/* Get SYSCLK source -------------------------------------------------------*/
|
||||||
|
tmp = RCC->CFGR & RCC_CFGR_SWS;
|
||||||
|
|
||||||
|
switch (tmp)
|
||||||
|
{
|
||||||
|
case 0x00: /* HSI used as system clock source */
|
||||||
|
SystemCoreClock = HSI_VALUE;
|
||||||
|
break;
|
||||||
|
case 0x04: /* HSE used as system clock source */
|
||||||
|
SystemCoreClock = HSE_VALUE;
|
||||||
|
break;
|
||||||
|
case 0x08: /* PLL used as system clock source */
|
||||||
|
|
||||||
|
/* PLL_VCO = (HSE_VALUE or HSI_VALUE / PLL_M) * PLL_N
|
||||||
|
SYSCLK = PLL_VCO / PLL_P
|
||||||
|
*/
|
||||||
|
pllsource = (RCC->PLLCFGR & RCC_PLLCFGR_PLLSRC) >> 22;
|
||||||
|
pllm = RCC->PLLCFGR & RCC_PLLCFGR_PLLM;
|
||||||
|
|
||||||
|
if (pllsource != 0)
|
||||||
|
{
|
||||||
|
/* HSE used as PLL clock source */
|
||||||
|
pllvco = (HSE_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
/* HSI used as PLL clock source */
|
||||||
|
pllvco = (HSI_VALUE / pllm) * ((RCC->PLLCFGR & RCC_PLLCFGR_PLLN) >> 6);
|
||||||
|
}
|
||||||
|
|
||||||
|
pllp = (((RCC->PLLCFGR & RCC_PLLCFGR_PLLP) >>16) + 1 ) *2;
|
||||||
|
SystemCoreClock = pllvco/pllp;
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
SystemCoreClock = HSI_VALUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
/* Compute HCLK frequency --------------------------------------------------*/
|
||||||
|
/* Get HCLK prescaler */
|
||||||
|
tmp = AHBPrescTable[((RCC->CFGR & RCC_CFGR_HPRE) >> 4)];
|
||||||
|
/* HCLK frequency */
|
||||||
|
SystemCoreClock >>= tmp;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
425
ports/stm/boards/system_stm32h7xx.c
Normal file
425
ports/stm/boards/system_stm32h7xx.c
Normal file
@ -0,0 +1,425 @@
|
|||||||
|
/*
|
||||||
|
* Taken from ST Cube library and modified. See below for original header.
|
||||||
|
*
|
||||||
|
* Modifications copyright (c) 2020 Lucian Copeland for Adafruit Industries
|
||||||
|
*
|
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
* of this software and associated documentation files (the "Software"), to deal
|
||||||
|
* in the Software without restriction, including without limitation the rights
|
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
* copies of the Software, and to permit persons to whom the Software is
|
||||||
|
* furnished to do so, subject to the following conditions:
|
||||||
|
*
|
||||||
|
* The above copyright notice and this permission notice shall be included in
|
||||||
|
* all copies or substantial portions of the Software.
|
||||||
|
*
|
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
* THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
******************************************************************************
|
||||||
|
* @file system_stm32h7xx.c
|
||||||
|
* @author MCD Application Team
|
||||||
|
* @brief CMSIS Cortex-Mx Device Peripheral Access Layer System Source File.
|
||||||
|
*
|
||||||
|
* This file provides two functions and one global variable to be called from
|
||||||
|
* user application:
|
||||||
|
* - SystemInit(): This function is called at startup just after reset and
|
||||||
|
* before branch to main program. This call is made inside
|
||||||
|
* the "startup_stm32h7xx.s" file.
|
||||||
|
*
|
||||||
|
* - SystemCoreClock variable: Contains the core clock, it can be used
|
||||||
|
* by the user application to setup the SysTick
|
||||||
|
* timer or configure other parameters.
|
||||||
|
*
|
||||||
|
* - SystemCoreClockUpdate(): Updates the variable SystemCoreClock and must
|
||||||
|
* be called whenever the core clock is changed
|
||||||
|
* during program execution.
|
||||||
|
*
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
* @attention
|
||||||
|
*
|
||||||
|
* <h2><center>© Copyright (c) 2017 STMicroelectronics.
|
||||||
|
* All rights reserved.</center></h2>
|
||||||
|
*
|
||||||
|
* This software component is licensed by ST under BSD 3-Clause license,
|
||||||
|
* the "License"; You may not use this file except in compliance with the
|
||||||
|
* License. You may obtain a copy of the License at:
|
||||||
|
* opensource.org/licenses/BSD-3-Clause
|
||||||
|
*
|
||||||
|
******************************************************************************
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup CMSIS
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup stm32h7xx_system
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_Includes
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include "stm32h7xx.h"
|
||||||
|
#include <math.h>
|
||||||
|
#if !defined (HSE_VALUE)
|
||||||
|
#define HSE_VALUE ((uint32_t)25000000) /*!< Value of the External oscillator in Hz */
|
||||||
|
#endif /* HSE_VALUE */
|
||||||
|
|
||||||
|
#if !defined (CSI_VALUE)
|
||||||
|
#define CSI_VALUE ((uint32_t)4000000) /*!< Value of the Internal oscillator in Hz*/
|
||||||
|
#endif /* CSI_VALUE */
|
||||||
|
|
||||||
|
#if !defined (HSI_VALUE)
|
||||||
|
#define HSI_VALUE ((uint32_t)64000000) /*!< Value of the Internal oscillator in Hz*/
|
||||||
|
#endif /* HSI_VALUE */
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_TypesDefinitions
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_Defines
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/************************* Miscellaneous Configuration ************************/
|
||||||
|
/*!< Uncomment the following line if you need to use initialized data in D2 domain SRAM (AHB SRAM) */
|
||||||
|
/* #define DATA_IN_D2_SRAM */
|
||||||
|
|
||||||
|
/*!< Uncomment the following line if you need to relocate your vector Table in
|
||||||
|
Internal SRAM. */
|
||||||
|
/* #define VECT_TAB_SRAM */
|
||||||
|
#define VECT_TAB_OFFSET 0x00000000UL /*!< Vector Table base offset field.
|
||||||
|
This value must be a multiple of 0x200. */
|
||||||
|
/******************************************************************************/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_Macros
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_Variables
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
/* This variable is updated in three ways:
|
||||||
|
1) by calling CMSIS function SystemCoreClockUpdate()
|
||||||
|
2) by calling HAL API function HAL_RCC_GetHCLKFreq()
|
||||||
|
3) each time HAL_RCC_ClockConfig() is called to configure the system clock frequency
|
||||||
|
Note: If you use this function to configure the system clock; then there
|
||||||
|
is no need to call the 2 first functions listed above, since SystemCoreClock
|
||||||
|
variable is updated automatically.
|
||||||
|
*/
|
||||||
|
uint32_t SystemCoreClock = 64000000;
|
||||||
|
uint32_t SystemD2Clock = 64000000;
|
||||||
|
const uint8_t D1CorePrescTable[16] = {0, 0, 0, 0, 1, 2, 3, 4, 1, 2, 3, 4, 6, 7, 8, 9};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_FunctionPrototypes
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/** @addtogroup STM32H7xx_System_Private_Functions
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Setup the microcontroller system
|
||||||
|
* Initialize the FPU setting and vector table location
|
||||||
|
* configuration.
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemInit (void)
|
||||||
|
{
|
||||||
|
#if defined (DATA_IN_D2_SRAM)
|
||||||
|
__IO uint32_t tmpreg;
|
||||||
|
#endif /* DATA_IN_D2_SRAM */
|
||||||
|
|
||||||
|
/* FPU settings ------------------------------------------------------------*/
|
||||||
|
#if (__FPU_PRESENT == 1) && (__FPU_USED == 1)
|
||||||
|
SCB->CPACR |= ((3UL << (10*2))|(3UL << (11*2))); /* set CP10 and CP11 Full Access */
|
||||||
|
#endif
|
||||||
|
/* Reset the RCC clock configuration to the default reset state ------------*/
|
||||||
|
/* Set HSION bit */
|
||||||
|
RCC->CR |= RCC_CR_HSION;
|
||||||
|
|
||||||
|
/* Reset CFGR register */
|
||||||
|
RCC->CFGR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset HSEON, CSSON , CSION,RC48ON, CSIKERON PLL1ON, PLL2ON and PLL3ON bits */
|
||||||
|
RCC->CR &= 0xEAF6ED7FU;
|
||||||
|
|
||||||
|
#if defined(D3_SRAM_BASE)
|
||||||
|
/* Reset D1CFGR register */
|
||||||
|
RCC->D1CFGR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset D2CFGR register */
|
||||||
|
RCC->D2CFGR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset D3CFGR register */
|
||||||
|
RCC->D3CFGR = 0x00000000;
|
||||||
|
#else
|
||||||
|
/* Reset CDCFGR1 register */
|
||||||
|
RCC->CDCFGR1 = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset CDCFGR2 register */
|
||||||
|
RCC->CDCFGR2 = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset SRDCFGR register */
|
||||||
|
RCC->SRDCFGR = 0x00000000;
|
||||||
|
#endif
|
||||||
|
/* Reset PLLCKSELR register */
|
||||||
|
RCC->PLLCKSELR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset PLLCFGR register */
|
||||||
|
RCC->PLLCFGR = 0x00000000;
|
||||||
|
/* Reset PLL1DIVR register */
|
||||||
|
RCC->PLL1DIVR = 0x00000000;
|
||||||
|
/* Reset PLL1FRACR register */
|
||||||
|
RCC->PLL1FRACR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset PLL2DIVR register */
|
||||||
|
RCC->PLL2DIVR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset PLL2FRACR register */
|
||||||
|
|
||||||
|
RCC->PLL2FRACR = 0x00000000;
|
||||||
|
/* Reset PLL3DIVR register */
|
||||||
|
RCC->PLL3DIVR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset PLL3FRACR register */
|
||||||
|
RCC->PLL3FRACR = 0x00000000;
|
||||||
|
|
||||||
|
/* Reset HSEBYP bit */
|
||||||
|
RCC->CR &= 0xFFFBFFFFU;
|
||||||
|
|
||||||
|
/* Disable all interrupts */
|
||||||
|
RCC->CIER = 0x00000000;
|
||||||
|
|
||||||
|
#if (STM32H7_DEV_ID == 0x450UL)
|
||||||
|
/* dual core CM7 or single core line */
|
||||||
|
if((DBGMCU->IDCODE & 0xFFFF0000U) < 0x20000000U)
|
||||||
|
{
|
||||||
|
/* if stm32h7 revY*/
|
||||||
|
/* Change the switch matrix read issuing capability to 1 for the AXI SRAM target (Target 7) */
|
||||||
|
*((__IO uint32_t*)0x51008108) = 0x000000001U;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (DATA_IN_D2_SRAM)
|
||||||
|
/* in case of initialized data in D2 SRAM (AHB SRAM) , enable the D2 SRAM clock (AHB SRAM clock) */
|
||||||
|
#if defined(RCC_AHB2ENR_D2SRAM3EN)
|
||||||
|
RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN | RCC_AHB2ENR_D2SRAM3EN);
|
||||||
|
#elif defined(RCC_AHB2ENR_D2SRAM2EN)
|
||||||
|
RCC->AHB2ENR |= (RCC_AHB2ENR_D2SRAM1EN | RCC_AHB2ENR_D2SRAM2EN);
|
||||||
|
#else
|
||||||
|
RCC->AHB2ENR |= (RCC_AHB2ENR_AHBSRAM1EN | RCC_AHB2ENR_AHBSRAM2EN);
|
||||||
|
#endif /* RCC_AHB2ENR_D2SRAM3EN */
|
||||||
|
|
||||||
|
tmpreg = RCC->AHB2ENR;
|
||||||
|
(void) tmpreg;
|
||||||
|
#endif /* DATA_IN_D2_SRAM */
|
||||||
|
|
||||||
|
#if defined(DUAL_CORE) && defined(CORE_CM4)
|
||||||
|
/* Configure the Vector Table location add offset address for cortex-M4 ------------------*/
|
||||||
|
#ifdef VECT_TAB_SRAM
|
||||||
|
SCB->VTOR = D2_AHBSRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal SRAM */
|
||||||
|
#else
|
||||||
|
SCB->VTOR = FLASH_BANK2_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||||
|
#endif /* VECT_TAB_SRAM */
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
/* Configure the Vector Table location add offset address for cortex-M7 ------------------*/
|
||||||
|
#if !(BOARD_VTOR_DEFER) //only set VTOR if the bootloader hasn't already
|
||||||
|
#ifdef VECT_TAB_SRAM
|
||||||
|
SCB->VTOR = D1_AXISRAM_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal AXI-RAM */
|
||||||
|
#else
|
||||||
|
SCB->VTOR = FLASH_BANK1_BASE | VECT_TAB_OFFSET; /* Vector Table Relocation in Internal FLASH */
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#endif /*DUAL_CORE && CORE_CM4*/
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief Update SystemCoreClock variable according to Clock Register Values.
|
||||||
|
* The SystemCoreClock variable contains the core clock , it can
|
||||||
|
* be used by the user application to setup the SysTick timer or configure
|
||||||
|
* other parameters.
|
||||||
|
*
|
||||||
|
* @note Each time the core clock changes, this function must be called
|
||||||
|
* to update SystemCoreClock variable value. Otherwise, any configuration
|
||||||
|
* based on this variable will be incorrect.
|
||||||
|
*
|
||||||
|
* @note - The system frequency computed by this function is not the real
|
||||||
|
* frequency in the chip. It is calculated based on the predefined
|
||||||
|
* constant and the selected clock source:
|
||||||
|
*
|
||||||
|
* - If SYSCLK source is CSI, SystemCoreClock will contain the CSI_VALUE(*)
|
||||||
|
* - If SYSCLK source is HSI, SystemCoreClock will contain the HSI_VALUE(**)
|
||||||
|
* - If SYSCLK source is HSE, SystemCoreClock will contain the HSE_VALUE(***)
|
||||||
|
* - If SYSCLK source is PLL, SystemCoreClock will contain the CSI_VALUE(*),
|
||||||
|
* HSI_VALUE(**) or HSE_VALUE(***) multiplied/divided by the PLL factors.
|
||||||
|
*
|
||||||
|
* (*) CSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value
|
||||||
|
* 4 MHz) but the real value may vary depending on the variations
|
||||||
|
* in voltage and temperature.
|
||||||
|
* (**) HSI_VALUE is a constant defined in stm32h7xx_hal.h file (default value
|
||||||
|
* 64 MHz) but the real value may vary depending on the variations
|
||||||
|
* in voltage and temperature.
|
||||||
|
*
|
||||||
|
* (***)HSE_VALUE is a constant defined in stm32h7xx_hal.h file (default value
|
||||||
|
* 25 MHz), user has to ensure that HSE_VALUE is same as the real
|
||||||
|
* frequency of the crystal used. Otherwise, this function may
|
||||||
|
* have wrong result.
|
||||||
|
*
|
||||||
|
* - The result of this function could be not correct when using fractional
|
||||||
|
* value for HSE crystal.
|
||||||
|
* @param None
|
||||||
|
* @retval None
|
||||||
|
*/
|
||||||
|
void SystemCoreClockUpdate (void)
|
||||||
|
{
|
||||||
|
uint32_t pllp, pllsource, pllm, pllfracen, hsivalue, tmp;
|
||||||
|
uint32_t common_system_clock;
|
||||||
|
float_t fracn1, pllvco;
|
||||||
|
|
||||||
|
|
||||||
|
/* Get SYSCLK source -------------------------------------------------------*/
|
||||||
|
|
||||||
|
switch (RCC->CFGR & RCC_CFGR_SWS)
|
||||||
|
{
|
||||||
|
case RCC_CFGR_SWS_HSI: /* HSI used as system clock source */
|
||||||
|
common_system_clock = (uint32_t) (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3));
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RCC_CFGR_SWS_CSI: /* CSI used as system clock source */
|
||||||
|
common_system_clock = CSI_VALUE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RCC_CFGR_SWS_HSE: /* HSE used as system clock source */
|
||||||
|
common_system_clock = HSE_VALUE;
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RCC_CFGR_SWS_PLL1: /* PLL1 used as system clock source */
|
||||||
|
|
||||||
|
/* PLL_VCO = (HSE_VALUE or HSI_VALUE or CSI_VALUE/ PLLM) * PLLN
|
||||||
|
SYSCLK = PLL_VCO / PLLR
|
||||||
|
*/
|
||||||
|
pllsource = (RCC->PLLCKSELR & RCC_PLLCKSELR_PLLSRC);
|
||||||
|
pllm = ((RCC->PLLCKSELR & RCC_PLLCKSELR_DIVM1)>> 4) ;
|
||||||
|
pllfracen = ((RCC->PLLCFGR & RCC_PLLCFGR_PLL1FRACEN)>>RCC_PLLCFGR_PLL1FRACEN_Pos);
|
||||||
|
fracn1 = (float_t)(uint32_t)(pllfracen* ((RCC->PLL1FRACR & RCC_PLL1FRACR_FRACN1)>> 3));
|
||||||
|
|
||||||
|
if (pllm != 0U)
|
||||||
|
{
|
||||||
|
switch (pllsource)
|
||||||
|
{
|
||||||
|
case RCC_PLLCKSELR_PLLSRC_HSI: /* HSI used as PLL clock source */
|
||||||
|
|
||||||
|
hsivalue = (HSI_VALUE >> ((RCC->CR & RCC_CR_HSIDIV)>> 3)) ;
|
||||||
|
pllvco = ( (float_t)hsivalue / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 );
|
||||||
|
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RCC_PLLCKSELR_PLLSRC_CSI: /* CSI used as PLL clock source */
|
||||||
|
pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 );
|
||||||
|
break;
|
||||||
|
|
||||||
|
case RCC_PLLCKSELR_PLLSRC_HSE: /* HSE used as PLL clock source */
|
||||||
|
pllvco = ((float_t)HSE_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 );
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
pllvco = ((float_t)CSI_VALUE / (float_t)pllm) * ((float_t)(uint32_t)(RCC->PLL1DIVR & RCC_PLL1DIVR_N1) + (fracn1/(float_t)0x2000) +(float_t)1 );
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
pllp = (((RCC->PLL1DIVR & RCC_PLL1DIVR_P1) >>9) + 1U ) ;
|
||||||
|
common_system_clock = (uint32_t)(float_t)(pllvco/(float_t)pllp);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
common_system_clock = 0U;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
common_system_clock = CSI_VALUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Compute SystemClock frequency --------------------------------------------------*/
|
||||||
|
#if defined (RCC_D1CFGR_D1CPRE)
|
||||||
|
tmp = D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_D1CPRE)>> RCC_D1CFGR_D1CPRE_Pos];
|
||||||
|
|
||||||
|
/* common_system_clock frequency : CM7 CPU frequency */
|
||||||
|
common_system_clock >>= tmp;
|
||||||
|
|
||||||
|
/* SystemD2Clock frequency : CM4 CPU, AXI and AHBs Clock frequency */
|
||||||
|
SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->D1CFGR & RCC_D1CFGR_HPRE)>> RCC_D1CFGR_HPRE_Pos]) & 0x1FU));
|
||||||
|
|
||||||
|
#else
|
||||||
|
tmp = D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_CDCPRE)>> RCC_CDCFGR1_CDCPRE_Pos];
|
||||||
|
|
||||||
|
/* common_system_clock frequency : CM7 CPU frequency */
|
||||||
|
common_system_clock >>= tmp;
|
||||||
|
|
||||||
|
/* SystemD2Clock frequency : AXI and AHBs Clock frequency */
|
||||||
|
SystemD2Clock = (common_system_clock >> ((D1CorePrescTable[(RCC->CDCFGR1 & RCC_CDCFGR1_HPRE)>> RCC_CDCFGR1_HPRE_Pos]) & 0x1FU));
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined(DUAL_CORE) && defined(CORE_CM4)
|
||||||
|
SystemCoreClock = SystemD2Clock;
|
||||||
|
#else
|
||||||
|
SystemCoreClock = common_system_clock;
|
||||||
|
#endif /* DUAL_CORE && CORE_CM4 */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @}
|
||||||
|
*/
|
||||||
|
/************************ (C) COPYRIGHT STMicroelectronics *****END OF FILE****/
|
@ -45,6 +45,7 @@
|
|||||||
#define BOARD_NO_VBUS_SENSE (1)
|
#define BOARD_NO_VBUS_SENSE (1)
|
||||||
|
|
||||||
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSI
|
#define BOARD_RTC_CLOCK RCC_RTCCLKSOURCE_LSI
|
||||||
|
#define HSE_VALUE ((uint32_t)24000000U)
|
||||||
|
|
||||||
// Status LEDs
|
// Status LEDs
|
||||||
#define MICROPY_HW_LED_STATUS (&pin_PA02)
|
#define MICROPY_HW_LED_STATUS (&pin_PA02)
|
||||||
|
@ -9,12 +9,9 @@ LONGINT_IMPL = NONE
|
|||||||
|
|
||||||
CIRCUITPY_NVM = 1
|
CIRCUITPY_NVM = 1
|
||||||
|
|
||||||
MCU_SERIES = m4
|
MCU_SERIES = F4
|
||||||
MCU_VARIANT = stm32f4
|
MCU_VARIANT = STM32F411xE
|
||||||
MCU_SUB_VARIANT = stm32f411xe
|
MCU_PACKAGE = UFQFPN48
|
||||||
MCU_PACKAGE = 48
|
|
||||||
CMSIS_MCU = STM32F411xE
|
|
||||||
LD_FILE = boards/STM32F411VETx_nvm_FLASH.ld
|
|
||||||
STARTUP_FILE = startup_stm32f411xe.s
|
|
||||||
|
|
||||||
|
|
||||||
|
LD_COMMON = boards/common_nvm.ld
|
||||||
|
LD_FILE = boards/STM32F411_nvm.ld
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
|
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
#include "stm32f4xx_hal.h"
|
#include "stm32f4xx_hal.h"
|
||||||
#include "stm32f4/periph.h"
|
#include "peripherals/periph.h"
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
|
@ -29,14 +29,14 @@
|
|||||||
#include "shared-bindings/busio/I2C.h"
|
#include "shared-bindings/busio/I2C.h"
|
||||||
#include "py/mperrno.h"
|
#include "py/mperrno.h"
|
||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
#include "shared-bindings/microcontroller/__init__.h"
|
#include "shared-bindings/microcontroller/__init__.h"
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
#include "common-hal/microcontroller/Pin.h"
|
#include "common-hal/microcontroller/Pin.h"
|
||||||
|
|
||||||
//arrays use 0 based numbering: I2C1 is stored at index 0
|
// Arrays use 0 based numbering: I2C1 is stored at index 0
|
||||||
#define MAX_I2C 3
|
#define MAX_I2C 4
|
||||||
|
|
||||||
STATIC bool reserved_i2c[MAX_I2C];
|
STATIC bool reserved_i2c[MAX_I2C];
|
||||||
STATIC bool never_reset_i2c[MAX_I2C];
|
STATIC bool never_reset_i2c[MAX_I2C];
|
||||||
|
|
||||||
@ -59,7 +59,7 @@ void i2c_reset(void) {
|
|||||||
void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
||||||
const mcu_pin_obj_t* scl, const mcu_pin_obj_t* sda, uint32_t frequency, uint32_t timeout) {
|
const mcu_pin_obj_t* scl, const mcu_pin_obj_t* sda, uint32_t frequency, uint32_t timeout) {
|
||||||
|
|
||||||
//match pins to I2C objects
|
// Match pins to I2C objects
|
||||||
I2C_TypeDef * I2Cx;
|
I2C_TypeDef * I2Cx;
|
||||||
uint8_t sda_len = MP_ARRAY_SIZE(mcu_i2c_sda_list);
|
uint8_t sda_len = MP_ARRAY_SIZE(mcu_i2c_sda_list);
|
||||||
uint8_t scl_len = MP_ARRAY_SIZE(mcu_i2c_scl_list);
|
uint8_t scl_len = MP_ARRAY_SIZE(mcu_i2c_scl_list);
|
||||||
@ -69,9 +69,9 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
|||||||
if (mcu_i2c_sda_list[i].pin == sda) {
|
if (mcu_i2c_sda_list[i].pin == sda) {
|
||||||
for (uint j = 0; j < scl_len; j++) {
|
for (uint j = 0; j < scl_len; j++) {
|
||||||
if ((mcu_i2c_scl_list[j].pin == scl)
|
if ((mcu_i2c_scl_list[j].pin == scl)
|
||||||
&& (mcu_i2c_scl_list[j].i2c_index == mcu_i2c_sda_list[i].i2c_index)) {
|
&& (mcu_i2c_scl_list[j].periph_index == mcu_i2c_sda_list[i].periph_index)) {
|
||||||
//keep looking if the I2C is taken, could be another SCL that works
|
// Keep looking if the I2C is taken, could be another SCL that works
|
||||||
if (reserved_i2c[mcu_i2c_scl_list[i].i2c_index - 1]) {
|
if (reserved_i2c[mcu_i2c_scl_list[j].periph_index - 1]) {
|
||||||
i2c_taken = true;
|
i2c_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -80,12 +80,16 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->scl != NULL) {
|
||||||
|
// Multi-level break to pick lowest peripheral
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//handle typedef selection, errors
|
// Handle typedef selection, errors
|
||||||
if (self->sda != NULL && self->scl != NULL ) {
|
if (self->sda != NULL && self->scl != NULL ) {
|
||||||
I2Cx = mcu_i2c_banks[self->sda->i2c_index - 1];
|
I2Cx = mcu_i2c_banks[self->sda->periph_index - 1];
|
||||||
} else {
|
} else {
|
||||||
if (i2c_taken) {
|
if (i2c_taken) {
|
||||||
mp_raise_ValueError(translate("Hardware busy, try alternative pins"));
|
mp_raise_ValueError(translate("Hardware busy, try alternative pins"));
|
||||||
@ -94,7 +98,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Start GPIO for each pin
|
// Start GPIO for each pin
|
||||||
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
GPIO_InitTypeDef GPIO_InitStruct = {0};
|
||||||
GPIO_InitStruct.Pin = pin_mask(sda->number);
|
GPIO_InitStruct.Pin = pin_mask(sda->number);
|
||||||
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
|
GPIO_InitStruct.Mode = GPIO_MODE_AF_OD;
|
||||||
@ -110,13 +114,19 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
|||||||
GPIO_InitStruct.Alternate = self->scl->altfn_index;
|
GPIO_InitStruct.Alternate = self->scl->altfn_index;
|
||||||
HAL_GPIO_Init(pin_port(scl->port), &GPIO_InitStruct);
|
HAL_GPIO_Init(pin_port(scl->port), &GPIO_InitStruct);
|
||||||
|
|
||||||
//Note: due to I2C soft reboot issue, do not relocate clock init.
|
// Note: due to I2C soft reboot issue, do not relocate clock init.
|
||||||
i2c_clock_enable(1 << (self->sda->i2c_index - 1));
|
i2c_clock_enable(1 << (self->sda->periph_index - 1));
|
||||||
reserved_i2c[self->sda->i2c_index - 1] = true;
|
reserved_i2c[self->sda->periph_index - 1] = true;
|
||||||
|
|
||||||
self->handle.Instance = I2Cx;
|
// Handle the HAL handle differences
|
||||||
|
#if (CPY_STM32H7 || CPY_STM32F7)
|
||||||
|
self->handle.Init.Timing = 0x40604E73; //Taken from STCube examples
|
||||||
|
#else
|
||||||
self->handle.Init.ClockSpeed = 100000;
|
self->handle.Init.ClockSpeed = 100000;
|
||||||
self->handle.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
self->handle.Init.DutyCycle = I2C_DUTYCYCLE_2;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
self->handle.Instance = I2Cx;
|
||||||
self->handle.Init.OwnAddress1 = 0;
|
self->handle.Init.OwnAddress1 = 0;
|
||||||
self->handle.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
self->handle.Init.AddressingMode = I2C_ADDRESSINGMODE_7BIT;
|
||||||
self->handle.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
self->handle.Init.DualAddressMode = I2C_DUALADDRESS_DISABLE;
|
||||||
@ -152,9 +162,9 @@ void common_hal_busio_i2c_deinit(busio_i2c_obj_t *self) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
i2c_clock_disable(1 << (self->sda->i2c_index - 1));
|
i2c_clock_disable(1 << (self->sda->periph_index - 1));
|
||||||
reserved_i2c[self->sda->i2c_index - 1] = false;
|
reserved_i2c[self->sda->periph_index - 1] = false;
|
||||||
never_reset_i2c[self->sda->i2c_index - 1] = false;
|
never_reset_i2c[self->sda->periph_index - 1] = false;
|
||||||
|
|
||||||
reset_pin_number(self->sda->pin->port,self->sda->pin->number);
|
reset_pin_number(self->sda->pin->port,self->sda->pin->number);
|
||||||
reset_pin_number(self->scl->pin->port,self->scl->pin->number);
|
reset_pin_number(self->scl->pin->port,self->scl->pin->number);
|
||||||
@ -207,7 +217,7 @@ uint8_t common_hal_busio_i2c_read(busio_i2c_obj_t *self, uint16_t addr,
|
|||||||
}
|
}
|
||||||
|
|
||||||
STATIC void i2c_clock_enable(uint8_t mask) {
|
STATIC void i2c_clock_enable(uint8_t mask) {
|
||||||
//Note: hard reset required due to soft reboot issue.
|
// Note: hard reset required due to soft reboot issue.
|
||||||
#ifdef I2C1
|
#ifdef I2C1
|
||||||
if (mask & (1 << 0)) {
|
if (mask & (1 << 0)) {
|
||||||
__HAL_RCC_I2C1_CLK_ENABLE();
|
__HAL_RCC_I2C1_CLK_ENABLE();
|
||||||
@ -229,6 +239,13 @@ STATIC void i2c_clock_enable(uint8_t mask) {
|
|||||||
__HAL_RCC_I2C3_RELEASE_RESET();
|
__HAL_RCC_I2C3_RELEASE_RESET();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef I2C4
|
||||||
|
if (mask & (1 << 3)) {
|
||||||
|
__HAL_RCC_I2C4_CLK_ENABLE();
|
||||||
|
__HAL_RCC_I2C4_FORCE_RESET();
|
||||||
|
__HAL_RCC_I2C4_RELEASE_RESET();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC void i2c_clock_disable(uint8_t mask) {
|
STATIC void i2c_clock_disable(uint8_t mask) {
|
||||||
@ -247,4 +264,9 @@ STATIC void i2c_clock_disable(uint8_t mask) {
|
|||||||
__HAL_RCC_I2C3_CLK_DISABLE();
|
__HAL_RCC_I2C3_CLK_DISABLE();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef I2C4
|
||||||
|
if (mask & (1 << 3)) {
|
||||||
|
__HAL_RCC_I2C4_CLK_DISABLE();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -25,13 +25,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_I2C_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_I2C_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H
|
||||||
|
|
||||||
#include "common-hal/microcontroller/Pin.h"
|
#include "common-hal/microcontroller/Pin.h"
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
#include "peripherals/periph.h"
|
||||||
#include "stm32f4/periph.h"
|
|
||||||
|
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
|
|
||||||
@ -39,10 +38,10 @@ typedef struct {
|
|||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
I2C_HandleTypeDef handle;
|
I2C_HandleTypeDef handle;
|
||||||
bool has_lock;
|
bool has_lock;
|
||||||
const mcu_i2c_scl_obj_t *scl;
|
const mcu_periph_obj_t *scl;
|
||||||
const mcu_i2c_sda_obj_t *sda;
|
const mcu_periph_obj_t *sda;
|
||||||
} busio_i2c_obj_t;
|
} busio_i2c_obj_t;
|
||||||
|
|
||||||
void i2c_reset(void);
|
void i2c_reset(void);
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_I2C_H
|
#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_I2C_H
|
||||||
|
@ -24,10 +24,10 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_ONEWIRE_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_ONEWIRE_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||||
|
|
||||||
// Use bitbangio.
|
// Use bitbangio.
|
||||||
#include "shared-module/busio/OneWire.h"
|
#include "shared-module/busio/OneWire.h"
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_ONEWIRE_H
|
#endif // MICROPY_INCLUDED_STM32F_COMMON_HAL_BUSIO_ONEWIRE_H
|
||||||
|
@ -29,7 +29,6 @@
|
|||||||
#include "shared-bindings/busio/SPI.h"
|
#include "shared-bindings/busio/SPI.h"
|
||||||
#include "py/mperrno.h"
|
#include "py/mperrno.h"
|
||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
#include "shared-bindings/microcontroller/__init__.h"
|
#include "shared-bindings/microcontroller/__init__.h"
|
||||||
#include "boards/board.h"
|
#include "boards/board.h"
|
||||||
@ -41,6 +40,7 @@
|
|||||||
|
|
||||||
//arrays use 0 based numbering: SPI1 is stored at index 0
|
//arrays use 0 based numbering: SPI1 is stored at index 0
|
||||||
#define MAX_SPI 6
|
#define MAX_SPI 6
|
||||||
|
|
||||||
STATIC bool reserved_spi[MAX_SPI];
|
STATIC bool reserved_spi[MAX_SPI];
|
||||||
STATIC bool never_reset_spi[MAX_SPI];
|
STATIC bool never_reset_spi[MAX_SPI];
|
||||||
|
|
||||||
@ -49,14 +49,24 @@ STATIC void spi_clock_enable(uint8_t mask);
|
|||||||
STATIC void spi_clock_disable(uint8_t mask);
|
STATIC void spi_clock_disable(uint8_t mask);
|
||||||
|
|
||||||
STATIC uint32_t get_busclock(SPI_TypeDef * instance) {
|
STATIC uint32_t get_busclock(SPI_TypeDef * instance) {
|
||||||
//SPI2 and 3 are on PCLK1, if they exist.
|
#if (CPY_STM32H7)
|
||||||
#ifdef SPI2
|
if (instance == SPI1 || instance == SPI2 || instance == SPI3) {
|
||||||
if (instance == SPI2) return HAL_RCC_GetPCLK1Freq();
|
return HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SPI123);
|
||||||
|
} else if (instance == SPI4 || instance == SPI5) {
|
||||||
|
return HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SPI45);
|
||||||
|
} else {
|
||||||
|
return HAL_RCCEx_GetPeriphCLKFreq(RCC_PERIPHCLK_SPI6);
|
||||||
|
}
|
||||||
|
#elif (CPY_STM32F4 || CPY_STM32F7)
|
||||||
|
//SPI2 and 3 are on PCLK1, if they exist.
|
||||||
|
#ifdef SPI2
|
||||||
|
if (instance == SPI2) return HAL_RCC_GetPCLK1Freq();
|
||||||
|
#endif
|
||||||
|
#ifdef SPI3
|
||||||
|
if (instance == SPI3) return HAL_RCC_GetPCLK1Freq();
|
||||||
|
#endif
|
||||||
|
return HAL_RCC_GetPCLK2Freq();
|
||||||
#endif
|
#endif
|
||||||
#ifdef SPI3
|
|
||||||
if (instance == SPI3) return HAL_RCC_GetPCLK1Freq();
|
|
||||||
#endif
|
|
||||||
return HAL_RCC_GetPCLK2Freq();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
STATIC uint32_t stm32_baud_to_spi_div(uint32_t baudrate, uint16_t * prescaler, uint32_t busclock) {
|
STATIC uint32_t stm32_baud_to_spi_div(uint32_t baudrate, uint16_t * prescaler, uint32_t busclock) {
|
||||||
@ -120,10 +130,10 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
|
|||||||
//MISO
|
//MISO
|
||||||
for (uint k = 0; k < miso_len; k++) {
|
for (uint k = 0; k < miso_len; k++) {
|
||||||
if ((mcu_spi_miso_list[k].pin == miso) //everything needs the same index
|
if ((mcu_spi_miso_list[k].pin == miso) //everything needs the same index
|
||||||
&& (mcu_spi_sck_list[i].spi_index == mcu_spi_mosi_list[j].spi_index)
|
&& (mcu_spi_sck_list[i].periph_index == mcu_spi_mosi_list[j].periph_index)
|
||||||
&& (mcu_spi_sck_list[i].spi_index == mcu_spi_miso_list[k].spi_index)) {
|
&& (mcu_spi_sck_list[i].periph_index == mcu_spi_miso_list[k].periph_index)) {
|
||||||
//keep looking if the SPI is taken, edge case
|
//keep looking if the SPI is taken, edge case
|
||||||
if (reserved_spi[mcu_spi_sck_list[i].spi_index - 1]) {
|
if (reserved_spi[mcu_spi_sck_list[i].periph_index - 1]) {
|
||||||
spi_taken = true;
|
spi_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -134,42 +144,50 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->sck != NULL) {
|
||||||
|
break; // Multi-level break to pick lowest peripheral
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->sck != NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
// if just MISO, reduce search
|
// if just MISO, reduce search
|
||||||
} else if (miso != NULL) {
|
} else if (miso != NULL) {
|
||||||
for (uint j = 0; j < miso_len; j++) {
|
for (uint j = 0; j < miso_len; j++) {
|
||||||
if ((mcu_spi_miso_list[j].pin == miso) //only SCK and MISO need the same index
|
if ((mcu_spi_miso_list[j].pin == miso) //only SCK and MISO need the same index
|
||||||
&& (mcu_spi_sck_list[i].spi_index == mcu_spi_miso_list[j].spi_index)) {
|
&& (mcu_spi_sck_list[i].periph_index == mcu_spi_miso_list[j].periph_index)) {
|
||||||
//keep looking if the SPI is taken, edge case
|
if (reserved_spi[mcu_spi_sck_list[i].periph_index - 1]) {
|
||||||
if (reserved_spi[mcu_spi_sck_list[i].spi_index - 1]) {
|
|
||||||
spi_taken = true;
|
spi_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//store pins if not
|
|
||||||
self->sck = &mcu_spi_sck_list[i];
|
self->sck = &mcu_spi_sck_list[i];
|
||||||
self->mosi = NULL;
|
self->mosi = NULL;
|
||||||
self->miso = &mcu_spi_miso_list[j];
|
self->miso = &mcu_spi_miso_list[j];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->sck != NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
// if just MOSI, reduce search
|
// if just MOSI, reduce search
|
||||||
} else if (mosi != NULL) {
|
} else if (mosi != NULL) {
|
||||||
for (uint j = 0; j < mosi_len; j++) {
|
for (uint j = 0; j < mosi_len; j++) {
|
||||||
if ((mcu_spi_mosi_list[j].pin == mosi) //only SCK and MOSI need the same index
|
if ((mcu_spi_mosi_list[j].pin == mosi) //only SCK and MOSI need the same index
|
||||||
&& (mcu_spi_sck_list[i].spi_index == mcu_spi_mosi_list[j].spi_index)) {
|
&& (mcu_spi_sck_list[i].periph_index == mcu_spi_mosi_list[j].periph_index)) {
|
||||||
//keep looking if the SPI is taken, edge case
|
if (reserved_spi[mcu_spi_sck_list[i].periph_index - 1]) {
|
||||||
if (reserved_spi[mcu_spi_sck_list[i].spi_index - 1]) {
|
|
||||||
spi_taken = true;
|
spi_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
//store pins if not
|
|
||||||
self->sck = &mcu_spi_sck_list[i];
|
self->sck = &mcu_spi_sck_list[i];
|
||||||
self->mosi = &mcu_spi_mosi_list[j];
|
self->mosi = &mcu_spi_mosi_list[j];
|
||||||
self->miso = NULL;
|
self->miso = NULL;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->sck != NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
//throw an error immediately
|
//throw an error immediately
|
||||||
mp_raise_ValueError(translate("Must provide MISO or MOSI pin"));
|
mp_raise_ValueError(translate("Must provide MISO or MOSI pin"));
|
||||||
@ -179,7 +197,7 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
|
|||||||
|
|
||||||
//handle typedef selection, errors
|
//handle typedef selection, errors
|
||||||
if (self->sck != NULL && (self->mosi != NULL || self->miso != NULL)) {
|
if (self->sck != NULL && (self->mosi != NULL || self->miso != NULL)) {
|
||||||
SPIx = mcu_spi_banks[self->sck->spi_index - 1];
|
SPIx = mcu_spi_banks[self->sck->periph_index - 1];
|
||||||
} else {
|
} else {
|
||||||
if (spi_taken) {
|
if (spi_taken) {
|
||||||
mp_raise_ValueError(translate("Hardware busy, try alternative pins"));
|
mp_raise_ValueError(translate("Hardware busy, try alternative pins"));
|
||||||
@ -215,13 +233,13 @@ void common_hal_busio_spi_construct(busio_spi_obj_t *self,
|
|||||||
HAL_GPIO_Init(pin_port(miso->port), &GPIO_InitStruct);
|
HAL_GPIO_Init(pin_port(miso->port), &GPIO_InitStruct);
|
||||||
}
|
}
|
||||||
|
|
||||||
spi_clock_enable(1 << (self->sck->spi_index - 1));
|
spi_clock_enable(1 << (self->sck->periph_index - 1));
|
||||||
reserved_spi[self->sck->spi_index - 1] = true;
|
reserved_spi[self->sck->periph_index - 1] = true;
|
||||||
|
|
||||||
self->handle.Instance = SPIx;
|
self->handle.Instance = SPIx;
|
||||||
self->handle.Init.Mode = SPI_MODE_MASTER;
|
self->handle.Init.Mode = SPI_MODE_MASTER;
|
||||||
// Direction change only required for RX-only, see RefMan RM0090:884
|
// Direction change only required for RX-only, see RefMan RM0090:884
|
||||||
self->handle.Init.Direction = (self->mosi == NULL) ? SPI_CR1_RXONLY : SPI_DIRECTION_2LINES;
|
self->handle.Init.Direction = (self->mosi == NULL) ? SPI_DIRECTION_2LINES_RXONLY : SPI_DIRECTION_2LINES;
|
||||||
self->handle.Init.DataSize = SPI_DATASIZE_8BIT;
|
self->handle.Init.DataSize = SPI_DATASIZE_8BIT;
|
||||||
self->handle.Init.CLKPolarity = SPI_POLARITY_LOW;
|
self->handle.Init.CLKPolarity = SPI_POLARITY_LOW;
|
||||||
self->handle.Init.CLKPhase = SPI_PHASE_1EDGE;
|
self->handle.Init.CLKPhase = SPI_PHASE_1EDGE;
|
||||||
@ -274,9 +292,9 @@ void common_hal_busio_spi_deinit(busio_spi_obj_t *self) {
|
|||||||
if (common_hal_busio_spi_deinited(self)) {
|
if (common_hal_busio_spi_deinited(self)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
spi_clock_disable(1<<(self->sck->spi_index - 1));
|
spi_clock_disable(1<<(self->sck->periph_index - 1));
|
||||||
reserved_spi[self->sck->spi_index - 1] = false;
|
reserved_spi[self->sck->periph_index - 1] = false;
|
||||||
never_reset_spi[self->sck->spi_index - 1] = false;
|
never_reset_spi[self->sck->periph_index - 1] = false;
|
||||||
|
|
||||||
reset_pin_number(self->sck->pin->port,self->sck->pin->number);
|
reset_pin_number(self->sck->pin->port,self->sck->pin->number);
|
||||||
if (self->mosi != NULL) {
|
if (self->mosi != NULL) {
|
||||||
|
@ -25,13 +25,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_SPI_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_SPI_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H
|
||||||
|
|
||||||
#include "common-hal/microcontroller/Pin.h"
|
#include "common-hal/microcontroller/Pin.h"
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
#include "peripherals/periph.h"
|
||||||
#include "stm32f4/periph.h"
|
|
||||||
|
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
|
|
||||||
@ -39,10 +38,10 @@ typedef struct {
|
|||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
SPI_HandleTypeDef handle;
|
SPI_HandleTypeDef handle;
|
||||||
bool has_lock;
|
bool has_lock;
|
||||||
const mcu_spi_sck_obj_t *sck;
|
const mcu_periph_obj_t *sck;
|
||||||
const mcu_spi_mosi_obj_t *mosi;
|
const mcu_periph_obj_t *mosi;
|
||||||
const mcu_spi_miso_obj_t *miso;
|
const mcu_periph_obj_t *miso;
|
||||||
const mcu_spi_nss_obj_t *nss;
|
const mcu_periph_obj_t *nss;
|
||||||
uint32_t baudrate;
|
uint32_t baudrate;
|
||||||
uint16_t prescaler;
|
uint16_t prescaler;
|
||||||
uint8_t polarity;
|
uint8_t polarity;
|
||||||
@ -52,4 +51,4 @@ typedef struct {
|
|||||||
|
|
||||||
void spi_reset(void);
|
void spi_reset(void);
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_SPI_H
|
#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_SPI_H
|
||||||
|
@ -35,8 +35,6 @@
|
|||||||
#include "py/stream.h"
|
#include "py/stream.h"
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
#define ALL_UARTS 0xFFFF
|
#define ALL_UARTS 0xFFFF
|
||||||
|
|
||||||
//arrays use 0 based numbering: UART1 is stored at index 0
|
//arrays use 0 based numbering: UART1 is stored at index 0
|
||||||
@ -48,11 +46,11 @@ STATIC void uart_clock_disable(uint16_t mask);
|
|||||||
STATIC void uart_assign_irq(busio_uart_obj_t* self, USART_TypeDef* USARTx);
|
STATIC void uart_assign_irq(busio_uart_obj_t* self, USART_TypeDef* USARTx);
|
||||||
|
|
||||||
STATIC USART_TypeDef * assign_uart_or_throw(busio_uart_obj_t* self, bool pin_eval,
|
STATIC USART_TypeDef * assign_uart_or_throw(busio_uart_obj_t* self, bool pin_eval,
|
||||||
int uart_index, bool uart_taken) {
|
int periph_index, bool uart_taken) {
|
||||||
if (pin_eval) {
|
if (pin_eval) {
|
||||||
//assign a root pointer pointer for IRQ
|
//assign a root pointer pointer for IRQ
|
||||||
MP_STATE_PORT(cpy_uart_obj_all)[uart_index] = self;
|
MP_STATE_PORT(cpy_uart_obj_all)[periph_index] = self;
|
||||||
return mcu_uart_banks[uart_index];
|
return mcu_uart_banks[periph_index];
|
||||||
} else {
|
} else {
|
||||||
if (uart_taken) {
|
if (uart_taken) {
|
||||||
mp_raise_ValueError(translate("Hardware in use, try alternative pins"));
|
mp_raise_ValueError(translate("Hardware in use, try alternative pins"));
|
||||||
@ -83,7 +81,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
uint8_t tx_len = MP_ARRAY_SIZE(mcu_uart_tx_list);
|
uint8_t tx_len = MP_ARRAY_SIZE(mcu_uart_tx_list);
|
||||||
uint8_t rx_len = MP_ARRAY_SIZE(mcu_uart_rx_list);
|
uint8_t rx_len = MP_ARRAY_SIZE(mcu_uart_rx_list);
|
||||||
bool uart_taken = false;
|
bool uart_taken = false;
|
||||||
uint8_t uart_index = 0; //origin 0 corrected
|
uint8_t periph_index = 0; //origin 0 corrected
|
||||||
|
|
||||||
if ((rts != NULL) || (cts != NULL) || (rs485_dir != NULL) || (rs485_invert == true)) {
|
if ((rts != NULL) || (cts != NULL) || (rs485_dir != NULL) || (rs485_invert == true)) {
|
||||||
mp_raise_ValueError(translate("RTS/CTS/RS485 Not yet supported on this device"));
|
mp_raise_ValueError(translate("RTS/CTS/RS485 Not yet supported on this device"));
|
||||||
@ -97,9 +95,9 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
//rx
|
//rx
|
||||||
for (uint j = 0; j < rx_len; j++) {
|
for (uint j = 0; j < rx_len; j++) {
|
||||||
if (mcu_uart_rx_list[j].pin == rx
|
if (mcu_uart_rx_list[j].pin == rx
|
||||||
&& mcu_uart_rx_list[j].uart_index == mcu_uart_tx_list[i].uart_index) {
|
&& mcu_uart_rx_list[j].periph_index == mcu_uart_tx_list[i].periph_index) {
|
||||||
//keep looking if the UART is taken, edge case
|
//keep looking if the UART is taken, edge case
|
||||||
if (reserved_uart[mcu_uart_tx_list[i].uart_index - 1]) {
|
if (reserved_uart[mcu_uart_tx_list[i].periph_index - 1]) {
|
||||||
uart_taken = true;
|
uart_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -109,17 +107,20 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (self->tx != NULL) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uart_index = self->tx->uart_index - 1;
|
periph_index = self->tx->periph_index - 1;
|
||||||
USARTx = assign_uart_or_throw(self, (self->tx != NULL && self->rx != NULL),
|
USARTx = assign_uart_or_throw(self, (self->tx != NULL && self->rx != NULL),
|
||||||
uart_index, uart_taken);
|
periph_index, uart_taken);
|
||||||
} else if (tx == NULL) {
|
} else if (tx == NULL) {
|
||||||
//If there is no tx, run only rx
|
//If there is no tx, run only rx
|
||||||
for (uint i = 0; i < rx_len; i++) {
|
for (uint i = 0; i < rx_len; i++) {
|
||||||
if (mcu_uart_rx_list[i].pin == rx) {
|
if (mcu_uart_rx_list[i].pin == rx) {
|
||||||
//keep looking if the UART is taken, edge case
|
//keep looking if the UART is taken, edge case
|
||||||
if (reserved_uart[mcu_uart_rx_list[i].uart_index - 1]) {
|
if (reserved_uart[mcu_uart_rx_list[i].periph_index - 1]) {
|
||||||
uart_taken = true;
|
uart_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -128,15 +129,15 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uart_index = self->rx->uart_index - 1;
|
periph_index = self->rx->periph_index - 1;
|
||||||
USARTx = assign_uart_or_throw(self, (self->rx != NULL),
|
USARTx = assign_uart_or_throw(self, (self->rx != NULL),
|
||||||
uart_index, uart_taken);
|
periph_index, uart_taken);
|
||||||
} else if (rx == NULL) {
|
} else if (rx == NULL) {
|
||||||
//If there is no rx, run only tx
|
//If there is no rx, run only tx
|
||||||
for (uint i = 0; i < tx_len; i++) {
|
for (uint i = 0; i < tx_len; i++) {
|
||||||
if (mcu_uart_tx_list[i].pin == tx) {
|
if (mcu_uart_tx_list[i].pin == tx) {
|
||||||
//keep looking if the UART is taken, edge case
|
//keep looking if the UART is taken, edge case
|
||||||
if (reserved_uart[mcu_uart_tx_list[i].uart_index - 1]) {
|
if (reserved_uart[mcu_uart_tx_list[i].periph_index - 1]) {
|
||||||
uart_taken = true;
|
uart_taken = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -145,9 +146,9 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uart_index = self->tx->uart_index - 1;
|
periph_index = self->tx->periph_index - 1;
|
||||||
USARTx = assign_uart_or_throw(self, (self->tx != NULL),
|
USARTx = assign_uart_or_throw(self, (self->tx != NULL),
|
||||||
uart_index, uart_taken);
|
periph_index, uart_taken);
|
||||||
} else {
|
} else {
|
||||||
//both pins cannot be empty
|
//both pins cannot be empty
|
||||||
mp_raise_ValueError(translate("Supply at least one UART pin"));
|
mp_raise_ValueError(translate("Supply at least one UART pin"));
|
||||||
@ -184,8 +185,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
|
|||||||
}
|
}
|
||||||
|
|
||||||
//reserve uart and enable the peripheral
|
//reserve uart and enable the peripheral
|
||||||
reserved_uart[uart_index] = true;
|
reserved_uart[periph_index] = true;
|
||||||
uart_clock_enable(1 << (uart_index));
|
uart_clock_enable(1 << (periph_index));
|
||||||
uart_assign_irq(self, USARTx);
|
uart_assign_irq(self, USARTx);
|
||||||
|
|
||||||
self->handle.Instance = USARTx;
|
self->handle.Instance = USARTx;
|
||||||
|
@ -24,12 +24,11 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_UART_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_UART_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_BUSIO_UART_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_BUSIO_UART_H
|
||||||
|
|
||||||
#include "common-hal/microcontroller/Pin.h"
|
#include "common-hal/microcontroller/Pin.h"
|
||||||
#include "stm32f4/periph.h"
|
#include "peripherals/periph.h"
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
#include "py/ringbuf.h"
|
#include "py/ringbuf.h"
|
||||||
@ -45,8 +44,8 @@ typedef struct {
|
|||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
UART_HandleTypeDef handle;
|
UART_HandleTypeDef handle;
|
||||||
IRQn_Type irq;
|
IRQn_Type irq;
|
||||||
const mcu_uart_tx_obj_t *tx;
|
const mcu_periph_obj_t *tx;
|
||||||
const mcu_uart_rx_obj_t *rx;
|
const mcu_periph_obj_t *rx;
|
||||||
|
|
||||||
ringbuf_t rbuf;
|
ringbuf_t rbuf;
|
||||||
uint8_t rx_char;
|
uint8_t rx_char;
|
||||||
|
@ -29,8 +29,14 @@
|
|||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
// The HAL is sparse on obtaining register information, so we use the LLs here.
|
||||||
|
#if (CPY_STM32H7)
|
||||||
|
#include "stm32h7xx_ll_gpio.h"
|
||||||
|
#elif (CPY_STM32F7)
|
||||||
|
#include "stm32f7xx_ll_gpio.h"
|
||||||
|
#elif (CPY_STM32F4)
|
||||||
#include "stm32f4xx_ll_gpio.h"
|
#include "stm32f4xx_ll_gpio.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void common_hal_digitalio_digitalinout_never_reset(
|
void common_hal_digitalio_digitalinout_never_reset(
|
||||||
digitalio_digitalinout_obj_t *self) {
|
digitalio_digitalinout_obj_t *self) {
|
||||||
@ -146,7 +152,6 @@ void common_hal_digitalio_digitalinout_set_pull(
|
|||||||
digitalio_pull_t common_hal_digitalio_digitalinout_get_pull(
|
digitalio_pull_t common_hal_digitalio_digitalinout_get_pull(
|
||||||
digitalio_digitalinout_obj_t *self) {
|
digitalio_digitalinout_obj_t *self) {
|
||||||
|
|
||||||
|
|
||||||
switch (LL_GPIO_GetPinPull(pin_port(self->pin->port), pin_mask(self->pin->number))) {
|
switch (LL_GPIO_GetPinPull(pin_port(self->pin->port), pin_mask(self->pin->number))) {
|
||||||
case LL_GPIO_PULL_UP:
|
case LL_GPIO_PULL_UP:
|
||||||
return PULL_UP;
|
return PULL_UP;
|
||||||
|
@ -25,8 +25,8 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||||
|
|
||||||
#include "common-hal/microcontroller/Pin.h"
|
#include "common-hal/microcontroller/Pin.h"
|
||||||
|
|
||||||
@ -35,4 +35,4 @@ typedef struct {
|
|||||||
const mcu_pin_obj_t *pin;
|
const mcu_pin_obj_t *pin;
|
||||||
} digitalio_digitalinout_obj_t;
|
} digitalio_digitalinout_obj_t;
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_DIGITALIO_DIGITALINOUT_H
|
||||||
|
@ -30,23 +30,22 @@
|
|||||||
#include "supervisor/shared/rgb_led_status.h"
|
#include "supervisor/shared/rgb_led_status.h"
|
||||||
|
|
||||||
#include "py/mphal.h"
|
#include "py/mphal.h"
|
||||||
#include "stm32f4/pins.h"
|
#include "pins.h"
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
#ifdef MICROPY_HW_NEOPIXEL
|
#ifdef MICROPY_HW_NEOPIXEL
|
||||||
bool neopixel_in_use;
|
bool neopixel_in_use;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if MCU_PACKAGE == 144
|
#if defined(LQFP144)
|
||||||
#define GPIO_PORT_COUNT 7
|
#define GPIO_PORT_COUNT 7
|
||||||
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG};
|
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE, GPIOF, GPIOG};
|
||||||
#elif MCU_PACKAGE == 100
|
#elif defined(LQFP100_f4) || (LQFP100_x7)
|
||||||
#define GPIO_PORT_COUNT 5
|
#define GPIO_PORT_COUNT 5
|
||||||
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE};
|
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC, GPIOD, GPIOE};
|
||||||
#elif MCU_PACKAGE == 64
|
#elif defined(LQFP64)
|
||||||
#define GPIO_PORT_COUNT 3
|
#define GPIO_PORT_COUNT 3
|
||||||
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC};
|
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC};
|
||||||
#elif MCU_PACKAGE == 48
|
#elif defined(UFQFPN48)
|
||||||
#define GPIO_PORT_COUNT 3
|
#define GPIO_PORT_COUNT 3
|
||||||
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC};
|
GPIO_TypeDef * ports[GPIO_PORT_COUNT] = {GPIOA, GPIOB, GPIOC};
|
||||||
#endif
|
#endif
|
||||||
|
@ -24,12 +24,12 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM34F4_COMMON_HAL_MICROCONTROLLER_PIN_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||||
#define MICROPY_INCLUDED_STM34F4_COMMON_HAL_MICROCONTROLLER_PIN_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||||
|
|
||||||
#include "py/mphal.h"
|
#include "py/mphal.h"
|
||||||
|
|
||||||
#include "peripherals/stm32f4/pins.h"
|
#include "peripherals/pins.h"
|
||||||
|
|
||||||
#ifdef MICROPY_HW_NEOPIXEL
|
#ifdef MICROPY_HW_NEOPIXEL
|
||||||
extern bool neopixel_in_use;
|
extern bool neopixel_in_use;
|
||||||
@ -49,4 +49,4 @@ void never_reset_pin_number(uint8_t pin_port, uint8_t pin_number);
|
|||||||
GPIO_TypeDef * pin_port(uint8_t pin_port);
|
GPIO_TypeDef * pin_port(uint8_t pin_port);
|
||||||
uint16_t pin_mask(uint8_t pin_number);
|
uint16_t pin_mask(uint8_t pin_number);
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM34F4_COMMON_HAL_MICROCONTROLLER_PIN_H
|
#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PIN_H
|
||||||
|
@ -28,8 +28,9 @@
|
|||||||
#include "common-hal/microcontroller/Processor.h"
|
#include "common-hal/microcontroller/Processor.h"
|
||||||
#include "py/runtime.h"
|
#include "py/runtime.h"
|
||||||
#include "supervisor/shared/translate.h"
|
#include "supervisor/shared/translate.h"
|
||||||
|
#include STM32_HAL_H
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
#if CPY_STM32F4
|
||||||
|
|
||||||
#define STM32_UUID ((uint32_t *)0x1FFF7A10)
|
#define STM32_UUID ((uint32_t *)0x1FFF7A10)
|
||||||
|
|
||||||
@ -58,7 +59,10 @@ STATIC void set_adc_params(ADC_HandleTypeDef *AdcHandle) {
|
|||||||
AdcHandle->Init.EOCSelection = ADC_EOC_SINGLE_CONV;
|
AdcHandle->Init.EOCSelection = ADC_EOC_SINGLE_CONV;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
float common_hal_mcu_processor_get_temperature(void) {
|
float common_hal_mcu_processor_get_temperature(void) {
|
||||||
|
#if CPY_STM32F4
|
||||||
__HAL_RCC_ADC1_CLK_ENABLE();
|
__HAL_RCC_ADC1_CLK_ENABLE();
|
||||||
|
|
||||||
//HAL Implementation
|
//HAL Implementation
|
||||||
@ -68,7 +72,7 @@ float common_hal_mcu_processor_get_temperature(void) {
|
|||||||
HAL_ADC_Init(&AdcHandle);
|
HAL_ADC_Init(&AdcHandle);
|
||||||
|
|
||||||
ADC->CCR |= ADC_CCR_TSVREFE;
|
ADC->CCR |= ADC_CCR_TSVREFE;
|
||||||
ADC->CCR &= ~ADC_CCR_VBATE; // If this somehow got turned on, it'll return bad values.
|
ADC->CCR &= ~ADC_CCR_VBATE; // If this somehow got turned on, it'll return bad values.
|
||||||
|
|
||||||
sConfig.Channel = ADC_CHANNEL_TEMPSENSOR; //either 16 or 18, depending on chip
|
sConfig.Channel = ADC_CHANNEL_TEMPSENSOR; //either 16 or 18, depending on chip
|
||||||
sConfig.Rank = 1;
|
sConfig.Rank = 1;
|
||||||
@ -85,9 +89,13 @@ float common_hal_mcu_processor_get_temperature(void) {
|
|||||||
//There's no F4 specific appnote for this but it works the same as the L1 in AN3964
|
//There's no F4 specific appnote for this but it works the same as the L1 in AN3964
|
||||||
float core_temp_avg_slope = (*ADC_CAL2 - *ADC_CAL1) / 80.0;
|
float core_temp_avg_slope = (*ADC_CAL2 - *ADC_CAL1) / 80.0;
|
||||||
return (((float)value * adc_refcor - *ADC_CAL1) / core_temp_avg_slope) + 30.0f;
|
return (((float)value * adc_refcor - *ADC_CAL1) / core_temp_avg_slope) + 30.0f;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
float common_hal_mcu_processor_get_voltage(void) {
|
float common_hal_mcu_processor_get_voltage(void) {
|
||||||
|
#if CPY_STM32F4
|
||||||
__HAL_RCC_ADC1_CLK_ENABLE();
|
__HAL_RCC_ADC1_CLK_ENABLE();
|
||||||
|
|
||||||
//HAL Implementation
|
//HAL Implementation
|
||||||
@ -110,10 +118,13 @@ float common_hal_mcu_processor_get_voltage(void) {
|
|||||||
uint32_t value = (uint32_t)HAL_ADC_GetValue(&AdcHandle);
|
uint32_t value = (uint32_t)HAL_ADC_GetValue(&AdcHandle);
|
||||||
HAL_ADC_Stop(&AdcHandle);
|
HAL_ADC_Stop(&AdcHandle);
|
||||||
|
|
||||||
//This value could be used to actively correct ADC values.
|
//This value could be used to actively correct ADC values.
|
||||||
adc_refcor = ((float)(*VREFIN_CAL)) / ((float)value);
|
adc_refcor = ((float)(*VREFIN_CAL)) / ((float)value);
|
||||||
|
|
||||||
return adc_refcor * 3.3f;
|
return adc_refcor * 3.3f;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t common_hal_mcu_processor_get_frequency(void) {
|
uint32_t common_hal_mcu_processor_get_frequency(void) {
|
||||||
@ -121,7 +132,9 @@ uint32_t common_hal_mcu_processor_get_frequency(void) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
|
void common_hal_mcu_processor_get_uid(uint8_t raw_id[]) {
|
||||||
|
#if CPY_STM32F4
|
||||||
for (int i=0; i<3; i++) {
|
for (int i=0; i<3; i++) {
|
||||||
((uint32_t*) raw_id)[i] = STM32_UUID[i];
|
((uint32_t*) raw_id)[i] = STM32_UUID[i];
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
@ -24,8 +24,8 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef MICROPY_INCLUDED_STM32F4_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
#ifndef MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
||||||
#define MICROPY_INCLUDED_STM32F4_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
#define MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
||||||
|
|
||||||
#define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 12
|
#define COMMON_HAL_MCU_PROCESSOR_UID_LENGTH 12
|
||||||
|
|
||||||
@ -36,4 +36,4 @@ typedef struct {
|
|||||||
// Stores no state currently.
|
// Stores no state currently.
|
||||||
} mcu_processor_obj_t;
|
} mcu_processor_obj_t;
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32F4_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
#endif // MICROPY_INCLUDED_STM32_COMMON_HAL_MICROCONTROLLER_PROCESSOR_H
|
||||||
|
@ -40,8 +40,6 @@
|
|||||||
#include "supervisor/filesystem.h"
|
#include "supervisor/filesystem.h"
|
||||||
#include "supervisor/shared/safe_mode.h"
|
#include "supervisor/shared/safe_mode.h"
|
||||||
|
|
||||||
#include "stm32f4xx_hal.h"
|
|
||||||
|
|
||||||
void common_hal_mcu_delay_us(uint32_t delay) {
|
void common_hal_mcu_delay_us(uint32_t delay) {
|
||||||
uint32_t ticks_per_us = HAL_RCC_GetSysClockFreq()/1000000;
|
uint32_t ticks_per_us = HAL_RCC_GetSysClockFreq()/1000000;
|
||||||
delay *= ticks_per_us;
|
delay *= ticks_per_us;
|
||||||
@ -101,137 +99,3 @@ const nvm_bytearray_obj_t common_hal_mcu_nvm_obj = {
|
|||||||
.start_address = (uint8_t*) (CIRCUITPY_INTERNAL_NVM_START_ADDR)
|
.start_address = (uint8_t*) (CIRCUITPY_INTERNAL_NVM_START_ADDR)
|
||||||
};
|
};
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
STATIC const mp_rom_map_elem_t mcu_pin_globals_table[] = {
|
|
||||||
#if MCU_PACKAGE >= 100
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE02), MP_ROM_PTR(&pin_PE02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE03), MP_ROM_PTR(&pin_PE03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE04), MP_ROM_PTR(&pin_PE04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE05), MP_ROM_PTR(&pin_PE05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE06), MP_ROM_PTR(&pin_PE06) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC13), MP_ROM_PTR(&pin_PC13) },
|
|
||||||
#if MCU_PACKAGE == 144
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF00), MP_ROM_PTR(&pin_PF00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF01), MP_ROM_PTR(&pin_PF01) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF02), MP_ROM_PTR(&pin_PF02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF03), MP_ROM_PTR(&pin_PF03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF04), MP_ROM_PTR(&pin_PF04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF05), MP_ROM_PTR(&pin_PF05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF06), MP_ROM_PTR(&pin_PF06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF07), MP_ROM_PTR(&pin_PF07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF08), MP_ROM_PTR(&pin_PF08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF09), MP_ROM_PTR(&pin_PF09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF10), MP_ROM_PTR(&pin_PF10) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC00), MP_ROM_PTR(&pin_PC00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC01), MP_ROM_PTR(&pin_PC01) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC02), MP_ROM_PTR(&pin_PC02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC03), MP_ROM_PTR(&pin_PC03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA00), MP_ROM_PTR(&pin_PA00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA01), MP_ROM_PTR(&pin_PA01) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA02), MP_ROM_PTR(&pin_PA02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA03), MP_ROM_PTR(&pin_PA03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA04), MP_ROM_PTR(&pin_PA04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA05), MP_ROM_PTR(&pin_PA05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA06), MP_ROM_PTR(&pin_PA06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA07), MP_ROM_PTR(&pin_PA07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC04), MP_ROM_PTR(&pin_PC04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC05), MP_ROM_PTR(&pin_PC05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB00), MP_ROM_PTR(&pin_PB00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB01), MP_ROM_PTR(&pin_PB01) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB02), MP_ROM_PTR(&pin_PB02) },
|
|
||||||
#if MCU_PACKAGE == 144
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF11), MP_ROM_PTR(&pin_PF11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF12), MP_ROM_PTR(&pin_PF12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF13), MP_ROM_PTR(&pin_PF13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF14), MP_ROM_PTR(&pin_PF14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PF15), MP_ROM_PTR(&pin_PF15) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG00), MP_ROM_PTR(&pin_PG00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG01), MP_ROM_PTR(&pin_PG01) },
|
|
||||||
#endif
|
|
||||||
#if MCU_PACKAGE >= 100
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE07), MP_ROM_PTR(&pin_PE07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE08), MP_ROM_PTR(&pin_PE08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE09), MP_ROM_PTR(&pin_PE09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE10), MP_ROM_PTR(&pin_PE10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE11), MP_ROM_PTR(&pin_PE11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE12), MP_ROM_PTR(&pin_PE12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE13), MP_ROM_PTR(&pin_PE13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE14), MP_ROM_PTR(&pin_PE14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE15), MP_ROM_PTR(&pin_PE15) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB10), MP_ROM_PTR(&pin_PB10) },
|
|
||||||
#if MCU_PACKAGE == 144 || defined STM32F405xx
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB11), MP_ROM_PTR(&pin_PB11) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB12), MP_ROM_PTR(&pin_PB12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB13), MP_ROM_PTR(&pin_PB13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB14), MP_ROM_PTR(&pin_PB14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB15), MP_ROM_PTR(&pin_PB15) },
|
|
||||||
#if MCU_PACKAGE >= 100
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD08), MP_ROM_PTR(&pin_PD08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD09), MP_ROM_PTR(&pin_PD09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD10), MP_ROM_PTR(&pin_PD10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD11), MP_ROM_PTR(&pin_PD11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD12), MP_ROM_PTR(&pin_PD12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD13), MP_ROM_PTR(&pin_PD13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD14), MP_ROM_PTR(&pin_PD14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD15), MP_ROM_PTR(&pin_PD15) },
|
|
||||||
#endif
|
|
||||||
#if MCU_PACKAGE == 144
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG02), MP_ROM_PTR(&pin_PG02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG03), MP_ROM_PTR(&pin_PG03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG04), MP_ROM_PTR(&pin_PG04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG05), MP_ROM_PTR(&pin_PG05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG06), MP_ROM_PTR(&pin_PG06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG07), MP_ROM_PTR(&pin_PG07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG08), MP_ROM_PTR(&pin_PG08) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC06), MP_ROM_PTR(&pin_PC06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC07), MP_ROM_PTR(&pin_PC07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC08), MP_ROM_PTR(&pin_PC08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC09), MP_ROM_PTR(&pin_PC09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA08), MP_ROM_PTR(&pin_PA08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA09), MP_ROM_PTR(&pin_PA09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA10), MP_ROM_PTR(&pin_PA10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA11), MP_ROM_PTR(&pin_PA11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA12), MP_ROM_PTR(&pin_PA12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA13), MP_ROM_PTR(&pin_PA13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA14), MP_ROM_PTR(&pin_PA14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PA15), MP_ROM_PTR(&pin_PA15) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC10), MP_ROM_PTR(&pin_PC10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC11), MP_ROM_PTR(&pin_PC11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PC12), MP_ROM_PTR(&pin_PC12) },
|
|
||||||
#if MCU_PACKAGE >= 100
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD00), MP_ROM_PTR(&pin_PD00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD01), MP_ROM_PTR(&pin_PD01) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD02), MP_ROM_PTR(&pin_PD02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD03), MP_ROM_PTR(&pin_PD03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD04), MP_ROM_PTR(&pin_PD04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD05), MP_ROM_PTR(&pin_PD05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD06), MP_ROM_PTR(&pin_PD06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PD07), MP_ROM_PTR(&pin_PD07) },
|
|
||||||
#endif
|
|
||||||
#if MCU_PACKAGE == 144
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG09), MP_ROM_PTR(&pin_PG09) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG10), MP_ROM_PTR(&pin_PG10) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG11), MP_ROM_PTR(&pin_PG11) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG12), MP_ROM_PTR(&pin_PG12) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG13), MP_ROM_PTR(&pin_PG13) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG14), MP_ROM_PTR(&pin_PG14) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PG15), MP_ROM_PTR(&pin_PG15) },
|
|
||||||
#endif
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB03), MP_ROM_PTR(&pin_PB03) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB04), MP_ROM_PTR(&pin_PB04) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB05), MP_ROM_PTR(&pin_PB05) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB06), MP_ROM_PTR(&pin_PB06) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB07), MP_ROM_PTR(&pin_PB07) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB08), MP_ROM_PTR(&pin_PB08) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PB09), MP_ROM_PTR(&pin_PB09) },
|
|
||||||
#if MCU_PACKAGE >= 100
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE00), MP_ROM_PTR(&pin_PE00) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PE01), MP_ROM_PTR(&pin_PE01) },
|
|
||||||
#endif
|
|
||||||
};
|
|
||||||
MP_DEFINE_CONST_DICT(mcu_pin_globals, mcu_pin_globals_table);
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user