Minor style changes and translations

This commit is contained in:
Lucian Copeland 2020-05-21 11:18:22 -04:00
parent 42baf0061b
commit 75b5142954
17 changed files with 36 additions and 102 deletions

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -816,7 +816,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1538,10 +1538,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -805,7 +805,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1522,10 +1522,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -805,7 +805,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1522,10 +1522,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-05-18 02:48+0000\n"
"Last-Translator: Jeff Epler <jepler@gmail.com>\n"
"Language-Team: German <https://later.unpythonic.net/projects/circuitpython/"
@ -818,7 +818,7 @@ msgstr "Gruppe voll"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1548,10 +1548,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2018-07-27 11:55-0700\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -805,7 +805,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1522,10 +1522,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-03-30 22:11+0000\n"
"Last-Translator: Tannewt <devnull@unpythonic.net>\n"
"Language-Team: English <https://later.unpythonic.net/projects/circuitpython/"
@ -814,7 +814,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1531,10 +1531,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-05-17 20:56+0000\n"
"Last-Translator: Jeff Epler <jepler@gmail.com>\n"
"Language-Team: \n"
@ -812,7 +812,7 @@ msgstr "Group lleno"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1540,10 +1540,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2018-12-20 22:15-0800\n"
"Last-Translator: Timothy <me@timothygarcia.ca>\n"
"Language-Team: fil\n"
@ -819,7 +819,7 @@ msgstr "Puno ang group"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1545,10 +1545,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: 0.1\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-05-17 20:56+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: French <https://later.unpythonic.net/projects/circuitpython/"
@ -834,7 +834,7 @@ msgstr "Groupe plein"
msgid "Hardware busy, try alternative pins"
msgstr "Matériel occupé, essayez d'autres broches"
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr "Matériel utilisé, essayez d'autres broches"
@ -1576,10 +1576,6 @@ msgstr "Erreur d'initialisation UART"
msgid "UART Re-init error"
msgstr "Erreur de réinitialisation UART"
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr "Erreur d'écriture UART"

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2018-10-02 16:27+0200\n"
"Last-Translator: Enrico Paganin <enrico.paganin@mail.com>\n"
"Language-Team: \n"
@ -819,7 +819,7 @@ msgstr "Gruppo pieno"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1556,10 +1556,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2019-05-06 14:22-0700\n"
"Last-Translator: \n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -809,7 +809,7 @@ msgstr ""
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1526,10 +1526,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-05-19 17:08+0000\n"
"Last-Translator: Dustin Watts <dustin_watts@yahoo.com>\n"
"Language-Team: none\n"
@ -823,7 +823,7 @@ msgstr "Groep is vol"
msgid "Hardware busy, try alternative pins"
msgstr "Hardware bezig, probeer alternatieve pinnen"
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr "Hardware in gebruik, probeer alternatieve pinnen"
@ -1564,10 +1564,6 @@ msgstr "UART Init Fout"
msgid "UART Re-init error"
msgstr "UART Re-init Fout"
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr "UART schrijf fout"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: \n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2019-03-19 18:37-0700\n"
"Last-Translator: Radomir Dopieralski <circuitpython@sheep.art.pl>\n"
"Language-Team: pl\n"
@ -808,7 +808,7 @@ msgstr "Grupa pełna"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1527,10 +1527,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2018-10-02 21:14-0000\n"
"Last-Translator: \n"
"Language-Team: \n"
@ -814,7 +814,7 @@ msgstr "Grupo cheio"
msgid "Hardware busy, try alternative pins"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr ""
@ -1539,10 +1539,6 @@ msgstr ""
msgid "UART Re-init error"
msgstr ""
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr ""

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2020-05-17 20:56+0000\n"
"Last-Translator: Anonymous <noreply@weblate.org>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@ -822,7 +822,7 @@ msgstr "Gruppen är full"
msgid "Hardware busy, try alternative pins"
msgstr "Hårdvaran är upptagen, prova alternativa pinnar"
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr "Hårdvaran används redan, prova alternativa pinnar"
@ -1561,10 +1561,6 @@ msgstr "UART Init-fel"
msgid "UART Re-init error"
msgstr "UART reinit-fel"
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr "UART skrivfel"

View File

@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: circuitpython-cn\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-05-20 13:28-0400\n"
"POT-Creation-Date: 2020-05-21 11:18-0400\n"
"PO-Revision-Date: 2019-04-13 10:10-0700\n"
"Last-Translator: hexthat\n"
"Language-Team: Chinese Hanyu Pinyin\n"
@ -816,7 +816,7 @@ msgstr "Fēnzǔ yǐ mǎn"
msgid "Hardware busy, try alternative pins"
msgstr "Yìngjiàn máng, qǐng chángshì qítā zhēnjiǎo"
#: ports/stm/common-hal/busio/UART.c
#: ports/mimxrt10xx/common-hal/busio/UART.c ports/stm/common-hal/busio/UART.c
msgid "Hardware in use, try alternative pins"
msgstr "Shǐyòng de yìngjiàn, qǐng chángshì qítā yǐn jiǎo"
@ -1548,10 +1548,6 @@ msgstr "UART chūshǐhuà cuòwù"
msgid "UART Re-init error"
msgstr "UART chóngxīn chūshǐhuà cuòwù"
#: ports/mimxrt10xx/common-hal/busio/UART.c
msgid "UART peripheral is already in use"
msgstr ""
#: ports/stm/common-hal/busio/UART.c
msgid "UART write error"
msgstr "UART xiě cuòwù"

View File

@ -39,7 +39,7 @@
#include "fsl_lpuart.h"
//arrays use 0 based numbering: UART is stored at index 0
//arrays use 0 based numbering: UART1 is stored at index 0
#define MAX_UART 8
STATIC bool reserved_uart[MAX_UART];
@ -85,10 +85,8 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
self->character_bits = bits;
self->timeout_ms = timeout * 1000;
bool is_onedirection = false;
if (!rx != !tx) {
is_onedirection = true;
}
// We are transmitting one direction if one pin is NULL and the other isn't.
bool is_onedirection = (rx != NULL) != (tx != NULL);
bool uart_taken = false;
const uint32_t rx_count = MP_ARRAY_SIZE(mcu_uart_rx_list);
@ -145,7 +143,7 @@ void common_hal_busio_uart_construct(busio_uart_obj_t *self,
}
if (uart_taken) {
mp_raise_RuntimeError(translate("UART peripheral is already in use"));
mp_raise_RuntimeError(translate("Hardware in use, try alternative pins"));
}
if(self->rx == NULL && self->tx == NULL) {