commit
ba83a4a2ac
23
.github/workflows/build.yml
vendored
23
.github/workflows/build.yml
vendored
@ -1,6 +1,12 @@
|
|||||||
name: Build CI
|
name: Build CI
|
||||||
|
|
||||||
on: [push, pull_request, release]
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
check_suite:
|
||||||
|
types: [rerequested]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
@ -10,9 +16,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
|
|
||||||
run: exit 1
|
|
||||||
if: github.event_name == 'release' && (github.event.action != 'published' && github.event.action != 'rerequested')
|
|
||||||
- name: Set up Python 3.5
|
- name: Set up Python 3.5
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
@ -49,9 +52,6 @@ jobs:
|
|||||||
done
|
done
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
if: failure()
|
if: failure()
|
||||||
- name: Test threads
|
|
||||||
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 -d thread
|
|
||||||
working-directory: tests
|
|
||||||
- name: Native Tests
|
- name: Native Tests
|
||||||
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
|
run: MICROPY_CPYTHON3=python3.5 MICROPY_MICROPYTHON=../ports/unix/micropython_coverage ./run-tests -j1 --emit native
|
||||||
working-directory: tests
|
working-directory: tests
|
||||||
@ -75,6 +75,7 @@ jobs:
|
|||||||
board:
|
board:
|
||||||
- "arduino_mkr1300"
|
- "arduino_mkr1300"
|
||||||
- "arduino_mkrzero"
|
- "arduino_mkrzero"
|
||||||
|
- "arduino_nano_33_ble"
|
||||||
- "arduino_zero"
|
- "arduino_zero"
|
||||||
- "bast_pro_mini_m0"
|
- "bast_pro_mini_m0"
|
||||||
- "capablerobot_usbhub"
|
- "capablerobot_usbhub"
|
||||||
@ -102,12 +103,14 @@ jobs:
|
|||||||
- "feather_m4_express"
|
- "feather_m4_express"
|
||||||
- "feather_nrf52840_express"
|
- "feather_nrf52840_express"
|
||||||
- "feather_radiofruit_zigbee"
|
- "feather_radiofruit_zigbee"
|
||||||
|
- "feather_stm32f405_express"
|
||||||
- "gemma_m0"
|
- "gemma_m0"
|
||||||
- "grandcentral_m4_express"
|
- "grandcentral_m4_express"
|
||||||
- "hallowing_m0_express"
|
- "hallowing_m0_express"
|
||||||
- "hallowing_m4_express"
|
- "hallowing_m4_express"
|
||||||
- "itsybitsy_m0_express"
|
- "itsybitsy_m0_express"
|
||||||
- "itsybitsy_m4_express"
|
- "itsybitsy_m4_express"
|
||||||
|
- "itsybitsy_nrf52840_express"
|
||||||
- "kicksat-sprite"
|
- "kicksat-sprite"
|
||||||
- "makerdiary_nrf52840_mdk"
|
- "makerdiary_nrf52840_mdk"
|
||||||
- "makerdiary_nrf52840_mdk_usb_dongle"
|
- "makerdiary_nrf52840_mdk_usb_dongle"
|
||||||
@ -128,6 +131,7 @@ jobs:
|
|||||||
- "pirkey_m0"
|
- "pirkey_m0"
|
||||||
- "pybadge"
|
- "pybadge"
|
||||||
- "pybadge_airlift"
|
- "pybadge_airlift"
|
||||||
|
- "pyboard_v11"
|
||||||
- "pygamer"
|
- "pygamer"
|
||||||
- "pygamer_advance"
|
- "pygamer_advance"
|
||||||
- "pyportal"
|
- "pyportal"
|
||||||
@ -140,16 +144,21 @@ jobs:
|
|||||||
- "snekboard"
|
- "snekboard"
|
||||||
- "sparkfun_lumidrive"
|
- "sparkfun_lumidrive"
|
||||||
- "sparkfun_nrf52840_mini"
|
- "sparkfun_nrf52840_mini"
|
||||||
|
- "sparkfun_qwiic_micro_no_flash"
|
||||||
|
- "sparkfun_qwiic_micro_with_flash"
|
||||||
- "sparkfun_redboard_turbo"
|
- "sparkfun_redboard_turbo"
|
||||||
- "sparkfun_samd21_dev"
|
- "sparkfun_samd21_dev"
|
||||||
- "sparkfun_samd21_mini"
|
- "sparkfun_samd21_mini"
|
||||||
|
- "spresense"
|
||||||
- "stm32f411ve_discovery"
|
- "stm32f411ve_discovery"
|
||||||
- "stm32f412zg_discovery"
|
- "stm32f412zg_discovery"
|
||||||
|
- "stringcar_m0_express"
|
||||||
- "trellis_m4_express"
|
- "trellis_m4_express"
|
||||||
- "trinket_m0"
|
- "trinket_m0"
|
||||||
- "trinket_m0_haxpress"
|
- "trinket_m0_haxpress"
|
||||||
- "uchip"
|
- "uchip"
|
||||||
- "ugame10"
|
- "ugame10"
|
||||||
|
- "winterbloom_sol"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python 3.5
|
- name: Set up Python 3.5
|
||||||
|
7
.github/workflows/create_website_pr.yml
vendored
7
.github/workflows/create_website_pr.yml
vendored
@ -1,6 +1,8 @@
|
|||||||
name: Update CircuitPython.org
|
name: Update CircuitPython.org
|
||||||
|
|
||||||
on: release
|
on:
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
website:
|
website:
|
||||||
@ -10,9 +12,6 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
GITHUB_CONTEXT: ${{ toJson(github) }}
|
GITHUB_CONTEXT: ${{ toJson(github) }}
|
||||||
run: echo "$GITHUB_CONTEXT"
|
run: echo "$GITHUB_CONTEXT"
|
||||||
- name: Fail if not a release publish # workaround has `on` doesn't have this filter
|
|
||||||
run: exit 1
|
|
||||||
if: github.event.action != 'published'
|
|
||||||
- name: Set up Python 3.5
|
- name: Set up Python 3.5
|
||||||
uses: actions/setup-python@v1
|
uses: actions/setup-python@v1
|
||||||
with:
|
with:
|
||||||
|
3
.gitmodules
vendored
3
.gitmodules
vendored
@ -98,3 +98,6 @@
|
|||||||
[submodule "ports/stm32f4/stm32f4"]
|
[submodule "ports/stm32f4/stm32f4"]
|
||||||
path = ports/stm32f4/stm32f4
|
path = ports/stm32f4/stm32f4
|
||||||
url = https://github.com/adafruit/stm32f4.git
|
url = https://github.com/adafruit/stm32f4.git
|
||||||
|
[submodule "ports/cxd56/spresense-exported-sdk"]
|
||||||
|
path = ports/cxd56/spresense-exported-sdk
|
||||||
|
url = https://github.com/sonydevworld/spresense-exported-sdk.git
|
||||||
|
2
conf.py
2
conf.py
@ -125,6 +125,7 @@ exclude_patterns = ["**/build*",
|
|||||||
"ports/cc3200",
|
"ports/cc3200",
|
||||||
"ports/cc3200/FreeRTOS",
|
"ports/cc3200/FreeRTOS",
|
||||||
"ports/cc3200/hal",
|
"ports/cc3200/hal",
|
||||||
|
"ports/cxd56/spresense-exported-sdk",
|
||||||
"ports/esp32",
|
"ports/esp32",
|
||||||
"ports/esp8266/boards",
|
"ports/esp8266/boards",
|
||||||
"ports/esp8266/common-hal",
|
"ports/esp8266/common-hal",
|
||||||
@ -139,7 +140,6 @@ exclude_patterns = ["**/build*",
|
|||||||
"ports/stm32f4/stm32f4",
|
"ports/stm32f4/stm32f4",
|
||||||
"ports/stm32f4/peripherals",
|
"ports/stm32f4/peripherals",
|
||||||
"ports/stm32f4/ref",
|
"ports/stm32f4/ref",
|
||||||
"ports/stm32f4/README.md",
|
|
||||||
"ports/pic16bit",
|
"ports/pic16bit",
|
||||||
"ports/qemu-arm",
|
"ports/qemu-arm",
|
||||||
"ports/stm32",
|
"ports/stm32",
|
||||||
|
@ -87,7 +87,8 @@ def read_mpconfig():
|
|||||||
def build_module_map():
|
def build_module_map():
|
||||||
""" Establish the base of the JSON file, based on the contents from
|
""" Establish the base of the JSON file, based on the contents from
|
||||||
`configs`. Base will contain module names, if they're part of
|
`configs`. Base will contain module names, if they're part of
|
||||||
the `FULL_BUILD`, or their default value (0 | 1).
|
the `FULL_BUILD`, or their default value (0, 1, or a list of
|
||||||
|
modules that determine default [see audiocore, audiomixer, etc.]).
|
||||||
|
|
||||||
"""
|
"""
|
||||||
base = dict()
|
base = dict()
|
||||||
@ -98,16 +99,17 @@ def build_module_map():
|
|||||||
full_name = module
|
full_name = module
|
||||||
search_name = module.lstrip("_")
|
search_name = module.lstrip("_")
|
||||||
re_pattern = "CIRCUITPY_{}\s=\s(.+)".format(search_name.upper())
|
re_pattern = "CIRCUITPY_{}\s=\s(.+)".format(search_name.upper())
|
||||||
find_config = re.search(re_pattern, configs)
|
find_config = re.findall(re_pattern, configs)
|
||||||
#print(module, "|", find_config)
|
|
||||||
if not find_config:
|
if not find_config:
|
||||||
continue
|
continue
|
||||||
full_build = int("FULL_BUILD" in find_config.group(0))
|
find_config = ", ".join([x.strip("$()") for x in find_config])
|
||||||
#print(find_config[1])
|
|
||||||
|
full_build = int("CIRCUITPY_FULL_BUILD" in find_config)
|
||||||
if not full_build:
|
if not full_build:
|
||||||
default_val = find_config.group(1)
|
default_val = find_config
|
||||||
else:
|
else:
|
||||||
default_val = "None"
|
default_val = "None"
|
||||||
|
|
||||||
base[search_name] = {
|
base[search_name] = {
|
||||||
"name": full_name,
|
"name": full_name,
|
||||||
"full_build": str(full_build),
|
"full_build": str(full_build),
|
||||||
@ -115,6 +117,7 @@ def build_module_map():
|
|||||||
"excluded": {}
|
"excluded": {}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#print(base)
|
||||||
return base
|
return base
|
||||||
|
|
||||||
|
|
||||||
@ -166,6 +169,7 @@ def get_excluded_boards(base):
|
|||||||
if board_chip in port_config:
|
if board_chip in port_config:
|
||||||
contents += "\n" + "\n".join(port_config[board_chip])
|
contents += "\n" + "\n".join(port_config[board_chip])
|
||||||
|
|
||||||
|
check_dependent_modules = dict()
|
||||||
for module in modules:
|
for module in modules:
|
||||||
board_is_excluded = False
|
board_is_excluded = False
|
||||||
# check if board uses `SMALL_BUILD`. if yes, and current
|
# check if board uses `SMALL_BUILD`. if yes, and current
|
||||||
@ -173,14 +177,32 @@ def get_excluded_boards(base):
|
|||||||
small_build = re.search("CIRCUITPY_SMALL_BUILD = 1", contents)
|
small_build = re.search("CIRCUITPY_SMALL_BUILD = 1", contents)
|
||||||
if small_build and base[module]["full_build"] == "1":
|
if small_build and base[module]["full_build"] == "1":
|
||||||
board_is_excluded = True
|
board_is_excluded = True
|
||||||
|
|
||||||
|
# check if board uses `MINIMAL_BUILD`. if yes, and current
|
||||||
|
# module is marked as `DEFAULT_BUILD`, board is excluded
|
||||||
|
min_build = re.search("CIRCUITPY_MINIMAL_BUILD = 1", contents)
|
||||||
|
if min_build and base[module]["default_value"] == "CIRCUITPY_DEFAULT_BUILD":
|
||||||
|
board_is_excluded = True
|
||||||
|
|
||||||
# check if module is specifically disabled for this board
|
# check if module is specifically disabled for this board
|
||||||
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
|
re_pattern = "CIRCUITPY_{}\s=\s(\w)".format(module.upper())
|
||||||
find_module = re.search(re_pattern, contents)
|
find_module = re.search(re_pattern, contents)
|
||||||
if not find_module:
|
if not find_module:
|
||||||
|
if base[module]["default_value"].isdigit():
|
||||||
# check if default inclusion is off ('0'). if the board doesn't
|
# check if default inclusion is off ('0'). if the board doesn't
|
||||||
# have it explicitly enabled, its excluded.
|
# have it explicitly enabled, its excluded.
|
||||||
if base[module]["default_value"] == "0":
|
if base[module]["default_value"] == "0":
|
||||||
board_is_excluded = True
|
board_is_excluded = True
|
||||||
|
else:
|
||||||
|
# this module is dependent on another module. add it
|
||||||
|
# to the list to check after processing all other modules.
|
||||||
|
# only need to check exclusion if it isn't already excluded.
|
||||||
|
if (not board_is_excluded and
|
||||||
|
base[module]["default_value"] not in [
|
||||||
|
"None",
|
||||||
|
"CIRCUITPY_DEFAULT_BUILD"
|
||||||
|
]):
|
||||||
|
check_dependent_modules[module] = base[module]["default_value"]
|
||||||
else:
|
else:
|
||||||
if (find_module.group(1) == "0" and
|
if (find_module.group(1) == "0" and
|
||||||
find_module.group(1) != base[module]["default_value"]):
|
find_module.group(1) != base[module]["default_value"]):
|
||||||
@ -191,6 +213,29 @@ def get_excluded_boards(base):
|
|||||||
base[module]["excluded"][board_chip].append(entry.name)
|
base[module]["excluded"][board_chip].append(entry.name)
|
||||||
else:
|
else:
|
||||||
base[module]["excluded"][board_chip] = [entry.name]
|
base[module]["excluded"][board_chip] = [entry.name]
|
||||||
|
|
||||||
|
for module in check_dependent_modules:
|
||||||
|
depend_results = set()
|
||||||
|
|
||||||
|
parents = check_dependent_modules[module].split("CIRCUITPY_")
|
||||||
|
parents = [item.strip(", ").lower() for item in parents if item]
|
||||||
|
|
||||||
|
for parent in parents:
|
||||||
|
if parent in base:
|
||||||
|
if (board_chip in base[parent]["excluded"] and
|
||||||
|
entry.name in base[parent]["excluded"][board_chip]):
|
||||||
|
depend_results.add(False)
|
||||||
|
else:
|
||||||
|
depend_results.add(True)
|
||||||
|
|
||||||
|
# only exclude the module if there were zero parents enabled
|
||||||
|
# as determined by the 'depend_results' set.
|
||||||
|
if not any(depend_results):
|
||||||
|
if board_chip in base[module]["excluded"]:
|
||||||
|
base[module]["excluded"][board_chip].append(entry.name)
|
||||||
|
else:
|
||||||
|
base[module]["excluded"][board_chip] = [entry.name]
|
||||||
|
|
||||||
#print(json.dumps(base, indent=2))
|
#print(json.dumps(base, indent=2))
|
||||||
return base
|
return base
|
||||||
|
|
||||||
|
@ -8,5 +8,6 @@ and ESP8266.
|
|||||||
:maxdepth: 2
|
:maxdepth: 2
|
||||||
|
|
||||||
../ports/atmel-samd/README
|
../ports/atmel-samd/README
|
||||||
../ports/esp8266/README
|
|
||||||
../ports/nrf/README
|
../ports/nrf/README
|
||||||
|
../ports/stm32f4/README
|
||||||
|
../ports/cxd56/README
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#if MICROPY_PY_FRAMEBUF
|
#if MICROPY_PY_FRAMEBUF
|
||||||
|
|
||||||
#include "ports/stm32/font_petme128_8x8.h"
|
#include "font_petme128_8x8.h"
|
||||||
|
|
||||||
typedef struct _mp_obj_framebuf_t {
|
typedef struct _mp_obj_framebuf_t {
|
||||||
mp_obj_base_t base;
|
mp_obj_base_t base;
|
||||||
|
@ -1 +1 @@
|
|||||||
Subproject commit b9280af5142fc41639229544678e23b5cca07c3a
|
Subproject commit 52d87bd7e571af66ecb57ee32b5af92531134150
|
@ -1 +1 @@
|
|||||||
Subproject commit 154b74de020764597ba49f0d1e8cc18d55b3643b
|
Subproject commit d87ea261c40ecbc6d893d72d337beefbea1cf932
|
@ -1 +1 @@
|
|||||||
Subproject commit 617bb0787f2c61283d248632a62b27be80f64b29
|
Subproject commit a6100fb5d867c7f4980f071119bfa7e0a76e1d47
|
@ -1 +1 @@
|
|||||||
Subproject commit 70865ac6e09f821b26ec727e2df300a6d9ebf6b3
|
Subproject commit 8b7611a2cc076a2ac1b368c70227519f69f1e3e9
|
@ -1 +1 @@
|
|||||||
Subproject commit bd7ddc67dc86f7ad0115f58ab80d5605739c6482
|
Subproject commit 53146ab2e82c318c3c37bd76bac34035a597b311
|
@ -1 +1 @@
|
|||||||
Subproject commit 893c5ec6a9aeef38284985074c2058e87754ad3d
|
Subproject commit 2e5aedf18eb417a4120d4998ac1f387a4f600730
|
@ -1 +1 @@
|
|||||||
Subproject commit f1171f94083ba64d153ff3f90eeb07500331d6e1
|
Subproject commit ea5e445edd4441cacd207aa2d2bfd724b813a253
|
@ -1 +0,0 @@
|
|||||||
Subproject commit d2bcfda543d3b99361e44112aca929225bdcc07f
|
|
@ -1 +1 @@
|
|||||||
Subproject commit f8081536310e5ac7a1e8c8ba9295890429a2cb6f
|
Subproject commit e413c9efa303d70de019a91aa415384fe80ca78f
|
@ -49,7 +49,7 @@ void mp_keyboard_interrupt(void) {
|
|||||||
|
|
||||||
// Check to see if we've been CTRL-C'ed by autoreload or the user.
|
// Check to see if we've been CTRL-C'ed by autoreload or the user.
|
||||||
bool mp_hal_is_interrupted(void) {
|
bool mp_hal_is_interrupted(void) {
|
||||||
return MP_STATE_VM(mp_pending_exception) == MP_OBJ_FROM_PTR(&MP_STATE_VM(mp_kbd_exception));
|
return MP_STATE_VM(mp_pending_exception) != NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
153
locale/ID.po
153
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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -261,6 +261,10 @@ msgstr "Semua timer untuk pin ini sedang digunakan"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Semua timer sedang digunakan"
|
msgstr "Semua timer sedang digunakan"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "fungsionalitas AnalogOut tidak didukung"
|
msgstr "fungsionalitas AnalogOut tidak didukung"
|
||||||
@ -329,6 +333,11 @@ msgstr ""
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -465,6 +474,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -507,7 +522,7 @@ msgstr ""
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Tidak bisa menyesuaikan data ke dalam paket advertisment"
|
msgstr "Tidak bisa menyesuaikan data ke dalam paket advertisment"
|
||||||
@ -554,10 +569,6 @@ msgstr ""
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -567,7 +578,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -576,6 +587,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -586,20 +602,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Gagal untuk mendapatkan mutex, status: 0x%08lX"
|
msgstr "Gagal untuk mendapatkan mutex, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Gagal untuk menambahkan karakteristik, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Gagal untuk menambahkan layanan, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Gagal untuk mengalokasikan buffer RX"
|
msgstr "Gagal untuk mengalokasikan buffer RX"
|
||||||
@ -611,25 +621,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Gagal untuk megalokasikan buffer RX dari %d byte"
|
msgstr "Gagal untuk megalokasikan buffer RX dari %d byte"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgid "Failed to change softdevice state"
|
|
||||||
msgstr "Gagal untuk merubah status softdevice, error: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Gagal untuk melanjutkan scanning, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Gagal untuk menemukan layanan, status: 0x%08lX"
|
msgstr "Gagal untuk menemukan layanan, status: 0x%08lX"
|
||||||
@ -649,7 +656,7 @@ msgstr "Gagal untuk mendapatkan status softdevice, error: 0x%08lX"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -658,8 +665,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Gagal untuk membaca nilai atribut, status: 0x%08lX"
|
msgstr "Gagal untuk membaca nilai atribut, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -679,35 +685,27 @@ msgstr "Gagal untuk menambahkan Vendor Spesific UUID, status: 0x%08lX"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Gagal untuk melepaskan mutex, status: 0x%08lX"
|
msgstr "Gagal untuk melepaskan mutex, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Gagal untuk melakukan scanning, status: 0x%08lX"
|
msgstr "Gagal untuk melakukan scanning, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1004,9 +1002,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Tidak dapat menyambungkan ke AP"
|
msgstr "Tidak dapat menyambungkan ke AP"
|
||||||
@ -1081,6 +1078,10 @@ msgstr "Tambahkan module apapun pada filesystem\n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1151,6 +1152,10 @@ msgstr ""
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Nilai sampel terlalu tinggi. Nilai harus kurang dari %d"
|
msgstr "Nilai sampel terlalu tinggi. Nilai harus kurang dari %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1165,11 +1170,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr "Dukungan soft device, id: 0x%08lX, pc: 0x%08l"
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Memisahkan dengan menggunakan sub-captures"
|
msgstr "Memisahkan dengan menggunakan sub-captures"
|
||||||
@ -1984,7 +1984,7 @@ msgstr ""
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2161,11 +2161,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "keyword harus berupa string"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2216,7 +2211,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2700,7 +2695,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2770,10 +2765,22 @@ msgstr ""
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Gagal untuk mendapatkan mutex, status: 0x%08lX"
|
#~ msgstr "Gagal untuk mendapatkan mutex, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Gagal untuk menambahkan karakteristik, status: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Gagal untuk menambahkan layanan, status: 0x%08lX"
|
#~ msgstr "Gagal untuk menambahkan layanan, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Gagal untuk menambahkan layanan, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Gagal untuk merubah status softdevice, error: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Gagal untuk menyambungkan, status: 0x%08lX"
|
#~ msgstr "Gagal untuk menyambungkan, status: 0x%08lX"
|
||||||
@ -2782,6 +2789,10 @@ msgstr ""
|
|||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Gagal untuk melanjutkan scanning, status: 0x%08lX"
|
#~ msgstr "Gagal untuk melanjutkan scanning, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Gagal untuk melanjutkan scanning, status: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Gagal untuk membuat mutex, status: 0x%08lX"
|
#~ msgstr "Gagal untuk membuat mutex, status: 0x%08lX"
|
||||||
@ -2802,6 +2813,10 @@ msgstr ""
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
|
#~ msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Gagal untuk memulai advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Gagal untuk melakukan scanning, status: 0x%08lX"
|
#~ msgstr "Gagal untuk melakukan scanning, status: 0x%08lX"
|
||||||
@ -2810,6 +2825,10 @@ msgstr ""
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
|
#~ msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Gagal untuk memberhentikan advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
#~ msgid "GPIO16 does not support pull up."
|
#~ msgid "GPIO16 does not support pull up."
|
||||||
#~ msgstr "GPIO16 tidak mendukung pull up"
|
#~ msgstr "GPIO16 tidak mendukung pull up"
|
||||||
|
|
||||||
@ -2859,6 +2878,10 @@ msgstr ""
|
|||||||
#~ msgid "STA required"
|
#~ msgid "STA required"
|
||||||
#~ msgstr "STA dibutuhkan"
|
#~ msgstr "STA dibutuhkan"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
#~ msgstr "Dukungan soft device, id: 0x%08lX, pc: 0x%08l"
|
||||||
|
|
||||||
#~ msgid "UART(%d) does not exist"
|
#~ msgid "UART(%d) does not exist"
|
||||||
#~ msgstr "UART(%d) tidak ada"
|
#~ msgstr "UART(%d) tidak ada"
|
||||||
|
|
||||||
@ -2936,6 +2959,10 @@ msgstr ""
|
|||||||
#~ msgid "memory allocation failed, allocating %u bytes for native code"
|
#~ msgid "memory allocation failed, allocating %u bytes for native code"
|
||||||
#~ msgstr "alokasi memori gagal, mengalokasikan %u byte untuk kode native"
|
#~ msgstr "alokasi memori gagal, mengalokasikan %u byte untuk kode native"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "keyword harus berupa string"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "tidak valid channel ADC: %d"
|
#~ msgstr "tidak valid channel ADC: %d"
|
||||||
|
|
||||||
|
@ -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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -259,6 +259,10 @@ msgstr ""
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -325,6 +329,11 @@ msgstr ""
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -455,6 +464,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -497,7 +512,7 @@ msgstr ""
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -543,10 +558,6 @@ msgstr ""
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -556,7 +567,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -565,6 +576,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -575,8 +591,7 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -584,11 +599,6 @@ msgstr ""
|
|||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -600,24 +610,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to connect: internal error"
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -634,7 +642,7 @@ msgstr ""
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -643,8 +651,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -664,34 +671,26 @@ msgstr ""
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -989,9 +988,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1065,6 +1063,10 @@ msgstr ""
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1131,6 +1133,10 @@ msgstr ""
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1145,11 +1151,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1950,7 +1951,7 @@ msgstr ""
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2127,10 +2128,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2181,7 +2178,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2663,7 +2660,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
337
locale/de_DE.po
337
locale/de_DE.po
@ -7,11 +7,11 @@ msgid ""
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Project-Id-Version: \n"
|
"Project-Id-Version: \n"
|
||||||
"Report-Msgid-Bugs-To: \n"
|
"Report-Msgid-Bugs-To: \n"
|
||||||
"POT-Creation-Date: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
"Language: en_US\n"
|
"Language: de_DE\n"
|
||||||
"MIME-Version: 1.0\n"
|
"MIME-Version: 1.0\n"
|
||||||
"Content-Type: text/plain; charset=UTF-8\n"
|
"Content-Type: text/plain; charset=UTF-8\n"
|
||||||
"Content-Transfer-Encoding: 8bit\n"
|
"Content-Transfer-Encoding: 8bit\n"
|
||||||
@ -48,7 +48,7 @@ msgstr "%q in Benutzung"
|
|||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
msgid "%q index out of range"
|
msgid "%q index out of range"
|
||||||
msgstr "Der Index %q befindet sich außerhalb der Reihung"
|
msgstr "Der Index %q befindet sich außerhalb des Bereiches"
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
msgid "%q indices must be integers, not %s"
|
msgid "%q indices must be integers, not %s"
|
||||||
@ -124,7 +124,7 @@ msgstr "'%s' Integer 0x%x passt nicht in Maske 0x%x"
|
|||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "'%s' object does not support item assignment"
|
msgid "'%s' object does not support item assignment"
|
||||||
msgstr "'%s' Objekt unterstützt keine item assignment"
|
msgstr "'%s' Objekt unterstützt keine Zuordnung von Elementen"
|
||||||
|
|
||||||
#: py/obj.c
|
#: py/obj.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -226,7 +226,7 @@ msgstr "Die Adresse muss %d Bytes lang sein"
|
|||||||
|
|
||||||
#: shared-bindings/_bleio/Address.c
|
#: shared-bindings/_bleio/Address.c
|
||||||
msgid "Address type out of range"
|
msgid "Address type out of range"
|
||||||
msgstr ""
|
msgstr "Adresstyp außerhalb des zulässigen Bereichs"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/busio/I2C.c
|
#: ports/nrf/common-hal/busio/I2C.c
|
||||||
msgid "All I2C peripherals are in use"
|
msgid "All I2C peripherals are in use"
|
||||||
@ -261,6 +261,10 @@ msgstr "Alle timer für diesen Pin werden bereits benutzt"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Alle timer werden benutzt"
|
msgstr "Alle timer werden benutzt"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "AnalogOut-Funktion wird nicht unterstützt"
|
msgstr "AnalogOut-Funktion wird nicht unterstützt"
|
||||||
@ -303,7 +307,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-module/displayio/Display.c
|
#: shared-module/displayio/Display.c
|
||||||
msgid "Below minimum frame rate"
|
msgid "Below minimum frame rate"
|
||||||
msgstr ""
|
msgstr "Unterhalb der minimalen Frame Rate"
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
#: ports/atmel-samd/common-hal/audiobusio/I2SOut.c
|
||||||
msgid "Bit clock and word select must share a clock unit"
|
msgid "Bit clock and word select must share a clock unit"
|
||||||
@ -319,7 +323,7 @@ msgstr "Beide pins müssen Hardware Interrupts unterstützen"
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
msgid "Brightness must be 0-1.0"
|
msgid "Brightness must be 0-1.0"
|
||||||
msgstr ""
|
msgstr "Die Helligkeit muss zwischen 0 und 1.0 liegen"
|
||||||
|
|
||||||
#: shared-bindings/supervisor/__init__.c
|
#: shared-bindings/supervisor/__init__.c
|
||||||
msgid "Brightness must be between 0 and 255"
|
msgid "Brightness must be between 0 and 255"
|
||||||
@ -329,6 +333,11 @@ msgstr "Die Helligkeit muss zwischen 0 und 255 liegen"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "Die Helligkeit ist nicht einstellbar"
|
msgstr "Die Helligkeit ist nicht einstellbar"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -336,16 +345,16 @@ msgstr "Der Puffergröße ist inkorrekt. Sie sollte %d bytes haben."
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
msgid "Buffer is not a bytearray."
|
msgid "Buffer is not a bytearray."
|
||||||
msgstr ""
|
msgstr "Der Puffer ist kein Byte-Array"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
msgid "Buffer is too small"
|
msgid "Buffer is too small"
|
||||||
msgstr ""
|
msgstr "Der Puffer ist zu klein"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
#: ports/nrf/common-hal/audiopwmio/PWMAudioOut.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer length %d too big. It must be less than %d"
|
msgid "Buffer length %d too big. It must be less than %d"
|
||||||
msgstr ""
|
msgstr "Die Pufferlänge %d ist zu groß. Sie muss kleiner als %d sein."
|
||||||
|
|
||||||
#: shared-bindings/bitbangio/I2C.c shared-bindings/busio/I2C.c
|
#: shared-bindings/bitbangio/I2C.c shared-bindings/busio/I2C.c
|
||||||
msgid "Buffer must be at least length 1"
|
msgid "Buffer must be at least length 1"
|
||||||
@ -367,7 +376,7 @@ msgstr "Ein Bytes kann nur Werte zwischen 0 und 255 annehmen."
|
|||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "Call super().__init__() before accessing native object."
|
msgid "Call super().__init__() before accessing native object."
|
||||||
msgstr ""
|
msgstr "Rufe super().__init__() vor dem Zugriff auf ein natives Objekt auf."
|
||||||
|
|
||||||
#: shared-bindings/_pixelbuf/PixelBuf.c
|
#: shared-bindings/_pixelbuf/PixelBuf.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -449,23 +458,29 @@ msgstr "Clock unit wird benutzt"
|
|||||||
|
|
||||||
#: shared-bindings/_pew/PewPew.c
|
#: shared-bindings/_pew/PewPew.c
|
||||||
msgid "Column entry must be digitalio.DigitalInOut"
|
msgid "Column entry must be digitalio.DigitalInOut"
|
||||||
msgstr ""
|
msgstr "Spalteneintrag muss digitalio.DigitalInOut sein"
|
||||||
|
|
||||||
#: shared-bindings/displayio/I2CDisplay.c
|
#: shared-bindings/displayio/I2CDisplay.c
|
||||||
msgid "Command must be 0-255"
|
msgid "Command must be 0-255"
|
||||||
msgstr ""
|
msgstr "Der Befehl muss zwischen 0 und 255 liegen"
|
||||||
|
|
||||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
|
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/ParallelBus.c
|
||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Der Befehl muss ein int zwischen 0 und 255 sein"
|
msgstr "Der Befehl muss ein int zwischen 0 und 255 sein"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr "Beschädigte .mpy Datei"
|
||||||
|
|
||||||
#: py/emitglue.c
|
#: py/emitglue.c
|
||||||
msgid "Corrupt raw code"
|
msgid "Corrupt raw code"
|
||||||
msgstr ""
|
msgstr "Beschädigter raw code"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/UUID.c
|
#: ports/nrf/common-hal/_bleio/UUID.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -499,9 +514,9 @@ msgstr "Data 0 pin muss am Byte ausgerichtet sein"
|
|||||||
|
|
||||||
#: shared-module/audiocore/WaveFile.c
|
#: shared-module/audiocore/WaveFile.c
|
||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr "Dem fmt Block muss ein Datenblock folgen"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Zu vielen Daten für das advertisement packet"
|
msgstr "Zu vielen Daten für das advertisement packet"
|
||||||
|
|
||||||
@ -511,11 +526,11 @@ msgstr "Die Zielkapazität ist kleiner als destination_length."
|
|||||||
|
|
||||||
#: ports/nrf/common-hal/audiobusio/I2SOut.c
|
#: ports/nrf/common-hal/audiobusio/I2SOut.c
|
||||||
msgid "Device in use"
|
msgid "Device in use"
|
||||||
msgstr ""
|
msgstr "Gerät in Benutzung"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
msgid "Display must have a 16 bit colorspace."
|
msgid "Display must have a 16 bit colorspace."
|
||||||
msgstr ""
|
msgstr "Display muss einen 16 Bit Farbraum haben."
|
||||||
|
|
||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/displayio/EPaperDisplay.c
|
#: shared-bindings/displayio/EPaperDisplay.c
|
||||||
@ -547,31 +562,32 @@ msgstr "Erwartet ein(e) %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Characteristic wird erwartet"
|
msgstr "Characteristic wird erwartet"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr "Ein Service wird erwartet"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
|
#: shared-bindings/_bleio/Characteristic.c shared-bindings/_bleio/Descriptor.c
|
||||||
#: shared-bindings/_bleio/Service.c
|
#: shared-bindings/_bleio/Service.c
|
||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Eine UUID wird erwartet"
|
msgstr "Eine UUID wird erwartet"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr "Erwartet eine Adresse"
|
||||||
|
|
||||||
#: shared-module/_pixelbuf/PixelBuf.c
|
#: shared-module/_pixelbuf/PixelBuf.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr "Habe ein Tupel der Länge %d erwartet aber %d erhalten"
|
msgstr "Habe ein Tupel der Länge %d erwartet aber %d erhalten"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr "Kommando nicht gesendet."
|
||||||
|
|
||||||
#: ports/nrf/sd_mutex.c
|
#: ports/nrf/sd_mutex.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -579,19 +595,13 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Mutex konnte nicht akquiriert werden. Status: 0x%04x"
|
msgstr "Mutex konnte nicht akquiriert werden. Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Hinzufügen des Characteristic ist gescheitert. Status: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr "Deskriptor konnte nicht hinzugefügt werden. Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Dienst konnte nicht hinzugefügt werden. Status: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
@ -604,24 +614,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Konnte keine RX Buffer mit %d allozieren"
|
msgstr "Konnte keine RX Buffer mit %d allozieren"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr "Fehler beim Ändern des Softdevice-Status"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
|
msgstr "Verbindung nicht erfolgreich: timeout"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
|
||||||
msgstr "Der Scanvorgang kann nicht fortgesetzt werden. Status: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Es konnten keine Dienste gefunden werden"
|
msgstr "Es konnten keine Dienste gefunden werden"
|
||||||
|
|
||||||
@ -638,20 +646,19 @@ msgstr "Fehler beim Abrufen des Softdevice-Status"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr "Koppeln fehlgeschlagen"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Kann CCCD value nicht lesen. Status: 0x%04x"
|
msgstr "Kann CCCD value nicht lesen. Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr "Kann Attributwert nicht lesen, Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -668,40 +675,32 @@ msgstr "Kann keine herstellerspezifische UUID hinzufügen. Status: 0x%04x"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Mutex konnte nicht freigegeben werden. Status: 0x%04x"
|
msgstr "Mutex konnte nicht freigegeben werden. Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Kann advertisement nicht starten. Status: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
|
msgstr "Verbindung konnte nicht hergestellt werden. Status: 0x%04x"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Der Scanvorgang kann nicht gestartet werden. Status: 0x%04x"
|
msgstr "Der Scanvorgang kann nicht gestartet werden. Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Kann advertisement nicht stoppen. Status: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to write CCCD, err 0x%04x"
|
msgid "Failed to write CCCD, err 0x%04x"
|
||||||
msgstr ""
|
msgstr "Konnte CCCD nicht schreiben, Status: 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -737,7 +736,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
||||||
msgid "Frequency captured is above capability. Capture Paused."
|
msgid "Frequency captured is above capability. Capture Paused."
|
||||||
msgstr ""
|
msgstr "Die aufgezeichnete Frequenz liegt über der Leistungsgrenze. Aufnahme angehalten."
|
||||||
|
|
||||||
#: shared-bindings/bitbangio/I2C.c shared-bindings/bitbangio/SPI.c
|
#: shared-bindings/bitbangio/I2C.c shared-bindings/bitbangio/SPI.c
|
||||||
#: shared-bindings/busio/I2C.c shared-bindings/busio/SPI.c
|
#: shared-bindings/busio/I2C.c shared-bindings/busio/SPI.c
|
||||||
@ -747,7 +746,7 @@ msgstr "Die Funktion erwartet, dass der 'lock'-Befehl zuvor ausgeführt wurde"
|
|||||||
#: shared-bindings/displayio/Display.c
|
#: shared-bindings/displayio/Display.c
|
||||||
#: shared-bindings/displayio/EPaperDisplay.c
|
#: shared-bindings/displayio/EPaperDisplay.c
|
||||||
msgid "Group already used"
|
msgid "Group already used"
|
||||||
msgstr ""
|
msgstr "Gruppe schon benutzt"
|
||||||
|
|
||||||
#: shared-module/displayio/Group.c
|
#: shared-module/displayio/Group.c
|
||||||
msgid "Group full"
|
msgid "Group full"
|
||||||
@ -771,7 +770,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/_pew/PewPew.c
|
#: shared-bindings/_pew/PewPew.c
|
||||||
msgid "Incorrect buffer size"
|
msgid "Incorrect buffer size"
|
||||||
msgstr ""
|
msgstr "Inkorrekte Puffergröße"
|
||||||
|
|
||||||
#: py/moduerrno.c
|
#: py/moduerrno.c
|
||||||
msgid "Input/output error"
|
msgid "Input/output error"
|
||||||
@ -797,7 +796,7 @@ msgstr "Ungültiges Argument"
|
|||||||
|
|
||||||
#: shared-module/displayio/Bitmap.c
|
#: shared-module/displayio/Bitmap.c
|
||||||
msgid "Invalid bits per value"
|
msgid "Invalid bits per value"
|
||||||
msgstr ""
|
msgstr "Ungültige Bits pro Wert"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/busio/UART.c
|
#: ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Invalid buffer size"
|
msgid "Invalid buffer size"
|
||||||
@ -805,7 +804,7 @@ msgstr "Ungültige Puffergröße"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
||||||
msgid "Invalid capture period. Valid range: 1 - 500"
|
msgid "Invalid capture period. Valid range: 1 - 500"
|
||||||
msgstr ""
|
msgstr "Ungültiger Aufnahmezeitraum. Gültiger Bereich: 1 - 500"
|
||||||
|
|
||||||
#: shared-bindings/audiomixer/Mixer.c
|
#: shared-bindings/audiomixer/Mixer.c
|
||||||
msgid "Invalid channel count"
|
msgid "Invalid channel count"
|
||||||
@ -859,7 +858,7 @@ msgstr "Ungültige Polarität"
|
|||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Invalid properties"
|
msgid "Invalid properties"
|
||||||
msgstr ""
|
msgstr "Ungültige Eigenschaften"
|
||||||
|
|
||||||
#: shared-bindings/microcontroller/__init__.c
|
#: shared-bindings/microcontroller/__init__.c
|
||||||
msgid "Invalid run mode."
|
msgid "Invalid run mode."
|
||||||
@ -867,11 +866,11 @@ msgstr "Ungültiger Ausführungsmodus"
|
|||||||
|
|
||||||
#: shared-module/_bleio/Attribute.c
|
#: shared-module/_bleio/Attribute.c
|
||||||
msgid "Invalid security_mode"
|
msgid "Invalid security_mode"
|
||||||
msgstr ""
|
msgstr "Ungültiger security_mode"
|
||||||
|
|
||||||
#: shared-bindings/audiomixer/Mixer.c
|
#: shared-bindings/audiomixer/Mixer.c
|
||||||
msgid "Invalid voice"
|
msgid "Invalid voice"
|
||||||
msgstr ""
|
msgstr "Ungültige Stimme"
|
||||||
|
|
||||||
#: shared-bindings/audiomixer/Mixer.c
|
#: shared-bindings/audiomixer/Mixer.c
|
||||||
msgid "Invalid voice count"
|
msgid "Invalid voice count"
|
||||||
@ -887,7 +886,7 @@ msgstr "LHS des Schlüsselwortarguments muss eine id sein"
|
|||||||
|
|
||||||
#: shared-module/displayio/Group.c
|
#: shared-module/displayio/Group.c
|
||||||
msgid "Layer already in a group."
|
msgid "Layer already in a group."
|
||||||
msgstr ""
|
msgstr "Layer ist bereits in einer Gruppe."
|
||||||
|
|
||||||
#: shared-module/displayio/Group.c
|
#: shared-module/displayio/Group.c
|
||||||
msgid "Layer must be a Group or TileGrid subclass."
|
msgid "Layer must be a Group or TileGrid subclass."
|
||||||
@ -942,11 +941,11 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Group.c
|
#: shared-bindings/displayio/Group.c
|
||||||
msgid "Must be a %q subclass."
|
msgid "Must be a %q subclass."
|
||||||
msgstr ""
|
msgstr "Muss eine %q Unterklasse sein."
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
msgid "No CCCD for this Characteristic"
|
msgid "No CCCD for this Characteristic"
|
||||||
msgstr ""
|
msgstr "Kein CCCD für diese Charakteristik"
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/analogio/AnalogOut.c
|
#: ports/atmel-samd/common-hal/analogio/AnalogOut.c
|
||||||
msgid "No DAC on chip"
|
msgid "No DAC on chip"
|
||||||
@ -967,7 +966,7 @@ msgstr "Kein TX Pin"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
||||||
msgid "No available clocks"
|
msgid "No available clocks"
|
||||||
msgstr ""
|
msgstr "Keine Taktgeber verfügbar"
|
||||||
|
|
||||||
#: shared-bindings/board/__init__.c
|
#: shared-bindings/board/__init__.c
|
||||||
msgid "No default %q bus"
|
msgid "No default %q bus"
|
||||||
@ -983,7 +982,7 @@ msgstr "Kein hardware random verfügbar"
|
|||||||
|
|
||||||
#: ports/atmel-samd/common-hal/ps2io/Ps2.c
|
#: ports/atmel-samd/common-hal/ps2io/Ps2.c
|
||||||
msgid "No hardware support on clk pin"
|
msgid "No hardware support on clk pin"
|
||||||
msgstr ""
|
msgstr "Keine Hardwareunterstützung am clk Pin"
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
#: ports/atmel-samd/common-hal/frequencyio/FrequencyIn.c
|
||||||
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
|
#: ports/atmel-samd/common-hal/pulseio/PulseIn.c
|
||||||
@ -992,26 +991,25 @@ msgstr "Keine Hardwareunterstützung an diesem Pin"
|
|||||||
|
|
||||||
#: shared-module/touchio/TouchIn.c
|
#: shared-module/touchio/TouchIn.c
|
||||||
msgid "No pulldown on pin; 1Mohm recommended"
|
msgid "No pulldown on pin; 1Mohm recommended"
|
||||||
msgstr ""
|
msgstr "Kein Pulldown Widerstand am Pin; 1Mohm wird vorgeschlagen"
|
||||||
|
|
||||||
#: py/moduerrno.c
|
#: py/moduerrno.c
|
||||||
msgid "No space left on device"
|
msgid "No space left on device"
|
||||||
msgstr "Kein Speicherplatz auf Gerät"
|
msgstr "Kein Speicherplatz mehr verfügbar auf dem Gerät"
|
||||||
|
|
||||||
#: py/moduerrno.c
|
#: py/moduerrno.c
|
||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Keine solche Datei/Verzeichnis"
|
msgstr "Keine solche Datei/Verzeichnis"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Nicht verbunden"
|
msgstr "Nicht verbunden"
|
||||||
|
|
||||||
#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audioio/AudioOut.c
|
#: shared-bindings/audiobusio/I2SOut.c shared-bindings/audioio/AudioOut.c
|
||||||
#: shared-bindings/audiopwmio/PWMAudioOut.c
|
#: shared-bindings/audiopwmio/PWMAudioOut.c
|
||||||
msgid "Not playing"
|
msgid "Not playing"
|
||||||
msgstr "Spielt nicht"
|
msgstr "Spielt nicht ab"
|
||||||
|
|
||||||
#: shared-bindings/util.c
|
#: shared-bindings/util.c
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -1033,6 +1031,8 @@ msgstr "Nur 8 oder 16 bit mono mit "
|
|||||||
msgid ""
|
msgid ""
|
||||||
"Only Windows format, uncompressed BMP supported: given header size is %d"
|
"Only Windows format, uncompressed BMP supported: given header size is %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Nur Windows-Format, unkomprimiertes BMP unterstützt: die gegebene Header-"
|
||||||
|
"Größe ist %d"
|
||||||
|
|
||||||
#: shared-module/displayio/OnDiskBitmap.c
|
#: shared-module/displayio/OnDiskBitmap.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1040,6 +1040,8 @@ msgid ""
|
|||||||
"Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs supported: "
|
"Only monochrome, indexed 4bpp or 8bpp, and 16bpp or greater BMPs supported: "
|
||||||
"%d bpp given"
|
"%d bpp given"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Nur monochrome, indizierte 4bpp oder 8bpp, und 16bpp oder größere BMPs "
|
||||||
|
"unterstützt: %d bpp wurden gegeben"
|
||||||
|
|
||||||
#: shared-bindings/_pixelbuf/PixelBuf.c
|
#: shared-bindings/_pixelbuf/PixelBuf.c
|
||||||
msgid "Only slices with step=1 (aka None) are supported"
|
msgid "Only slices with step=1 (aka None) are supported"
|
||||||
@ -1080,6 +1082,10 @@ msgstr "und alle Module im Dateisystem \n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1100,7 +1106,7 @@ msgstr "Eine RTC wird auf diesem Board nicht unterstützt"
|
|||||||
|
|
||||||
#: shared-bindings/_pixelbuf/PixelBuf.c
|
#: shared-bindings/_pixelbuf/PixelBuf.c
|
||||||
msgid "Range out of bounds"
|
msgid "Range out of bounds"
|
||||||
msgstr ""
|
msgstr "Bereich außerhalb der Grenzen"
|
||||||
|
|
||||||
#: shared-bindings/pulseio/PulseIn.c
|
#: shared-bindings/pulseio/PulseIn.c
|
||||||
msgid "Read-only"
|
msgid "Read-only"
|
||||||
@ -1116,7 +1122,7 @@ msgstr "Schreibgeschützte Objekt"
|
|||||||
|
|
||||||
#: shared-bindings/displayio/EPaperDisplay.c
|
#: shared-bindings/displayio/EPaperDisplay.c
|
||||||
msgid "Refresh too soon"
|
msgid "Refresh too soon"
|
||||||
msgstr ""
|
msgstr "Zu früh neu geladen"
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
#: ports/atmel-samd/common-hal/audioio/AudioOut.c
|
||||||
msgid "Right channel unsupported"
|
msgid "Right channel unsupported"
|
||||||
@ -1124,7 +1130,7 @@ msgstr "Rechter Kanal wird nicht unterstützt"
|
|||||||
|
|
||||||
#: shared-bindings/_pew/PewPew.c
|
#: shared-bindings/_pew/PewPew.c
|
||||||
msgid "Row entry must be digitalio.DigitalInOut"
|
msgid "Row entry must be digitalio.DigitalInOut"
|
||||||
msgstr ""
|
msgstr "Zeileneintrag muss ein digitalio.DigitalInOut sein"
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
msgid "Running in safe mode! Auto-reload is off.\n"
|
msgid "Running in safe mode! Auto-reload is off.\n"
|
||||||
@ -1148,6 +1154,10 @@ msgstr "Abtastrate muss positiv sein"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Abtastrate zu hoch. Wert muss unter %d liegen"
|
msgstr "Abtastrate zu hoch. Wert muss unter %d liegen"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1162,11 +1172,6 @@ msgstr "Slice und Wert (value) haben unterschiedliche Längen."
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Slices werden nicht unterstützt"
|
msgstr "Slices werden nicht unterstützt"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Splitting mit sub-captures"
|
msgstr "Splitting mit sub-captures"
|
||||||
@ -1199,6 +1204,8 @@ msgid ""
|
|||||||
"The `microcontroller` module was used to boot into safe mode. Press reset to "
|
"The `microcontroller` module was used to boot into safe mode. Press reset to "
|
||||||
"exit safe mode.\n"
|
"exit safe mode.\n"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Das `Mikrocontroller` Modul wurde benutzt, um in den Sicherheitsmodus zu "
|
||||||
|
"starten. Drücke Reset um den Sicherheitsmodus zu verlassen.\n"
|
||||||
|
|
||||||
#: supervisor/shared/safe_mode.c
|
#: supervisor/shared/safe_mode.c
|
||||||
msgid ""
|
msgid ""
|
||||||
@ -1288,7 +1295,7 @@ msgstr "USB Fehler"
|
|||||||
|
|
||||||
#: shared-bindings/_bleio/UUID.c
|
#: shared-bindings/_bleio/UUID.c
|
||||||
msgid "UUID integer value must be 0-0xffff"
|
msgid "UUID integer value must be 0-0xffff"
|
||||||
msgstr ""
|
msgstr "UUID Integer-Wert muss ein Wert von 0 bis 0xffff sein"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/UUID.c
|
#: shared-bindings/_bleio/UUID.c
|
||||||
msgid "UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
|
msgid "UUID string not 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'"
|
||||||
@ -1306,7 +1313,7 @@ msgstr "Konnte keine Buffer für Vorzeichenumwandlung allozieren"
|
|||||||
#: shared-module/displayio/I2CDisplay.c
|
#: shared-module/displayio/I2CDisplay.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Unable to find I2C Display at %x"
|
msgid "Unable to find I2C Display at %x"
|
||||||
msgstr ""
|
msgstr "Konnte kein I2C Display finden an %x"
|
||||||
|
|
||||||
#: 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
|
||||||
@ -1319,7 +1326,7 @@ msgstr "Parser konnte nicht gestartet werden"
|
|||||||
|
|
||||||
#: shared-module/displayio/OnDiskBitmap.c
|
#: shared-module/displayio/OnDiskBitmap.c
|
||||||
msgid "Unable to read color palette data"
|
msgid "Unable to read color palette data"
|
||||||
msgstr ""
|
msgstr "Konnte Farbpalettendaten nicht lesen"
|
||||||
|
|
||||||
#: shared-bindings/nvm/ByteArray.c
|
#: shared-bindings/nvm/ByteArray.c
|
||||||
msgid "Unable to write to nvm."
|
msgid "Unable to write to nvm."
|
||||||
@ -1364,7 +1371,7 @@ msgstr ""
|
|||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
||||||
msgid "Value length > max_length"
|
msgid "Value length > max_length"
|
||||||
msgstr ""
|
msgstr "Länge des Wertes > max_length"
|
||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "Viper functions don't currently support more than 4 arguments"
|
msgid "Viper functions don't currently support more than 4 arguments"
|
||||||
@ -1471,11 +1478,11 @@ msgstr ""
|
|||||||
|
|
||||||
#: py/objstr.c
|
#: py/objstr.c
|
||||||
msgid "bad format string"
|
msgid "bad format string"
|
||||||
msgstr ""
|
msgstr "Falscher Formatstring"
|
||||||
|
|
||||||
#: py/binary.c
|
#: py/binary.c
|
||||||
msgid "bad typecode"
|
msgid "bad typecode"
|
||||||
msgstr ""
|
msgstr "Falscher Typcode"
|
||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "binary op %q not implemented"
|
msgid "binary op %q not implemented"
|
||||||
@ -1534,7 +1541,7 @@ msgstr ""
|
|||||||
#: shared-bindings/_pixelbuf/PixelBuf.c
|
#: shared-bindings/_pixelbuf/PixelBuf.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
msgid "byteorder is not an instance of ByteOrder (got a %s)"
|
||||||
msgstr ""
|
msgstr "byteorder ist keine Instanz von ByteOrder (%s erhalten)"
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c
|
||||||
msgid "bytes > 8 bits not supported"
|
msgid "bytes > 8 bits not supported"
|
||||||
@ -1558,7 +1565,7 @@ msgstr "Kalibrierwert nicht im Bereich von +/-127"
|
|||||||
|
|
||||||
#: py/emitinlinethumb.c
|
#: py/emitinlinethumb.c
|
||||||
msgid "can only have up to 4 parameters to Thumb assembly"
|
msgid "can only have up to 4 parameters to Thumb assembly"
|
||||||
msgstr ""
|
msgstr "kann nur bis zu 4 Parameter für die Thumb assembly haben"
|
||||||
|
|
||||||
#: py/emitinlinextensa.c
|
#: py/emitinlinextensa.c
|
||||||
msgid "can only have up to 4 parameters to Xtensa assembly"
|
msgid "can only have up to 4 parameters to Xtensa assembly"
|
||||||
@ -1657,7 +1664,7 @@ msgstr "Laden von '%q' nicht möglich"
|
|||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "can't load with '%q' index"
|
msgid "can't load with '%q' index"
|
||||||
msgstr ""
|
msgstr "Laden mit '%q' index nicht möglich"
|
||||||
|
|
||||||
#: py/objgenerator.c
|
#: py/objgenerator.c
|
||||||
msgid "can't pend throw to just-started generator"
|
msgid "can't pend throw to just-started generator"
|
||||||
@ -1669,7 +1676,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: py/objnamedtuple.c
|
#: py/objnamedtuple.c
|
||||||
msgid "can't set attribute"
|
msgid "can't set attribute"
|
||||||
msgstr ""
|
msgstr "kann Attribut nicht setzen"
|
||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "can't store '%q'"
|
msgid "can't store '%q'"
|
||||||
@ -1695,11 +1702,11 @@ msgstr ""
|
|||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "cannot create '%q' instances"
|
msgid "cannot create '%q' instances"
|
||||||
msgstr ""
|
msgstr "Kann '%q' Instanzen nicht erstellen"
|
||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "cannot create instance"
|
msgid "cannot create instance"
|
||||||
msgstr ""
|
msgstr "Kann Instanz nicht erstellen"
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "cannot import name %q"
|
msgid "cannot import name %q"
|
||||||
@ -1727,31 +1734,32 @@ msgstr "chr() arg ist nicht in range(256)"
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
msgid "color buffer must be 3 bytes (RGB) or 4 bytes (RGB + pad byte)"
|
||||||
msgstr ""
|
msgstr "Farbpuffer muss 3 Bytes (RGB) oder 4 Bytes (RGB + pad byte) sein"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a buffer or int"
|
msgid "color buffer must be a buffer or int"
|
||||||
msgstr ""
|
msgstr "Farbpuffer muss ein Puffer oder ein int sein"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
msgid "color buffer must be a bytearray or array of type 'b' or 'B'"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
"Farbpuffer muss ein Byte-Array oder ein Array vom Typ 'b' oder 'B' sein"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "color must be between 0x000000 and 0xffffff"
|
msgid "color must be between 0x000000 and 0xffffff"
|
||||||
msgstr ""
|
msgstr "Farbe muss zwischen 0x000000 und 0xffffff liegen"
|
||||||
|
|
||||||
#: shared-bindings/displayio/ColorConverter.c
|
#: shared-bindings/displayio/ColorConverter.c
|
||||||
msgid "color should be an int"
|
msgid "color should be an int"
|
||||||
msgstr ""
|
msgstr "Farbe sollte ein int sein"
|
||||||
|
|
||||||
#: py/objcomplex.c
|
#: py/objcomplex.c
|
||||||
msgid "complex division by zero"
|
msgid "complex division by zero"
|
||||||
msgstr ""
|
msgstr "Komplexe Division durch null"
|
||||||
|
|
||||||
#: py/objfloat.c py/parsenum.c
|
#: py/objfloat.c py/parsenum.c
|
||||||
msgid "complex values not supported"
|
msgid "complex values not supported"
|
||||||
msgstr ""
|
msgstr "Komplexe Zahlen nicht unterstützt"
|
||||||
|
|
||||||
#: extmod/moduzlib.c
|
#: extmod/moduzlib.c
|
||||||
msgid "compression header"
|
msgid "compression header"
|
||||||
@ -1759,15 +1767,15 @@ msgstr "kompression header"
|
|||||||
|
|
||||||
#: py/parse.c
|
#: py/parse.c
|
||||||
msgid "constant must be an integer"
|
msgid "constant must be an integer"
|
||||||
msgstr ""
|
msgstr "constant muss ein integer sein"
|
||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "conversion to object"
|
msgid "conversion to object"
|
||||||
msgstr ""
|
msgstr "Umwandlung zu Objekt"
|
||||||
|
|
||||||
#: py/parsenum.c
|
#: py/parsenum.c
|
||||||
msgid "decimal numbers not supported"
|
msgid "decimal numbers not supported"
|
||||||
msgstr ""
|
msgstr "Dezimalzahlen nicht unterstützt"
|
||||||
|
|
||||||
#: py/compile.c
|
#: py/compile.c
|
||||||
msgid "default 'except' must be last"
|
msgid "default 'except' must be last"
|
||||||
@ -1784,7 +1792,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/audiobusio/PDMIn.c
|
#: shared-bindings/audiobusio/PDMIn.c
|
||||||
msgid "destination_length must be an int >= 0"
|
msgid "destination_length must be an int >= 0"
|
||||||
msgstr ""
|
msgstr "destination_length muss ein int >= 0 sein"
|
||||||
|
|
||||||
#: py/objdict.c
|
#: py/objdict.c
|
||||||
msgid "dict update sequence has wrong length"
|
msgid "dict update sequence has wrong length"
|
||||||
@ -1817,7 +1825,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Shape.c
|
#: shared-bindings/displayio/Shape.c
|
||||||
msgid "end_x should be an int"
|
msgid "end_x should be an int"
|
||||||
msgstr ""
|
msgstr "end_x sollte ein int sein"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/busio/UART.c
|
#: ports/nrf/common-hal/busio/UART.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1991,10 +1999,10 @@ msgstr "int() arg 2 muss >= 2 und <= 36 sein"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "integer erforderlich"
|
msgstr "integer erforderlich"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr "Das Intervall muss im Bereich %s-%s sein"
|
||||||
|
|
||||||
#: extmod/machine_i2c.c
|
#: extmod/machine_i2c.c
|
||||||
msgid "invalid I2C peripheral"
|
msgid "invalid I2C peripheral"
|
||||||
@ -2127,7 +2135,7 @@ msgstr ""
|
|||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "max_length must be 0-%d when fixed_length is %s"
|
msgid "max_length must be 0-%d when fixed_length is %s"
|
||||||
msgstr ""
|
msgstr "max_length muss 0-%d sein, wenn fixed_length %s ist"
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "maximum recursion depth exceeded"
|
msgid "maximum recursion depth exceeded"
|
||||||
@ -2156,7 +2164,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "multiple inheritance not supported"
|
msgid "multiple inheritance not supported"
|
||||||
msgstr ""
|
msgstr "Mehrfache Vererbung nicht unterstützt"
|
||||||
|
|
||||||
#: py/emitnative.c
|
#: py/emitnative.c
|
||||||
msgid "must raise an object"
|
msgid "must raise an object"
|
||||||
@ -2174,10 +2182,6 @@ msgstr "muss Schlüsselwortargument für key function verwenden"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "Name '%q' ist nirgends definiert worden (Schreibweise kontrollieren)"
|
msgstr "Name '%q' ist nirgends definiert worden (Schreibweise kontrollieren)"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "name muss ein String sein"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "Dieser Name ist nirgends definiert worden (Schreibweise kontrollieren)"
|
msgstr "Dieser Name ist nirgends definiert worden (Schreibweise kontrollieren)"
|
||||||
@ -2209,7 +2213,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/socket/__init__.c shared-module/network/__init__.c
|
#: shared-bindings/socket/__init__.c shared-module/network/__init__.c
|
||||||
msgid "no available NIC"
|
msgid "no available NIC"
|
||||||
msgstr ""
|
msgstr "kein verfügbares Netzwerkadapter (NIC)"
|
||||||
|
|
||||||
#: py/compile.c
|
#: py/compile.c
|
||||||
msgid "no binding for nonlocal found"
|
msgid "no binding for nonlocal found"
|
||||||
@ -2222,13 +2226,13 @@ msgstr "Kein Modul mit dem Namen '%q'"
|
|||||||
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
#: shared-bindings/displayio/FourWire.c shared-bindings/displayio/I2CDisplay.c
|
||||||
#: shared-bindings/displayio/ParallelBus.c
|
#: shared-bindings/displayio/ParallelBus.c
|
||||||
msgid "no reset pin available"
|
msgid "no reset pin available"
|
||||||
msgstr ""
|
msgstr "kein Reset Pin verfügbar"
|
||||||
|
|
||||||
#: py/runtime.c shared-bindings/_pixelbuf/__init__.c
|
#: py/runtime.c shared-bindings/_pixelbuf/__init__.c
|
||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr "kein solches Attribut"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2316,11 +2320,11 @@ msgstr "offset außerhalb der Grenzen"
|
|||||||
|
|
||||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "only bit_depth=16 is supported"
|
msgid "only bit_depth=16 is supported"
|
||||||
msgstr ""
|
msgstr "nur eine bit_depth=16 wird unterstützt"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
#: ports/nrf/common-hal/audiobusio/PDMIn.c
|
||||||
msgid "only sample_rate=16000 is supported"
|
msgid "only sample_rate=16000 is supported"
|
||||||
msgstr ""
|
msgstr "nur eine sample_rate=16000 wird unterstützt"
|
||||||
|
|
||||||
#: py/objarray.c py/objstr.c py/objstrunicode.c py/objtuple.c
|
#: py/objarray.c py/objstr.c py/objstrunicode.c py/objtuple.c
|
||||||
#: shared-bindings/nvm/ByteArray.c
|
#: shared-bindings/nvm/ByteArray.c
|
||||||
@ -2340,7 +2344,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: py/objint_mpz.c
|
#: py/objint_mpz.c
|
||||||
msgid "overflow converting long int to machine word"
|
msgid "overflow converting long int to machine word"
|
||||||
msgstr ""
|
msgstr "Überlauf beim konvertieren von long int zu machine word"
|
||||||
|
|
||||||
#: shared-bindings/_stage/Layer.c shared-bindings/_stage/Text.c
|
#: shared-bindings/_stage/Layer.c shared-bindings/_stage/Text.c
|
||||||
msgid "palette must be 32 bytes long"
|
msgid "palette must be 32 bytes long"
|
||||||
@ -2348,7 +2352,7 @@ msgstr ""
|
|||||||
|
|
||||||
#: shared-bindings/displayio/Palette.c
|
#: shared-bindings/displayio/Palette.c
|
||||||
msgid "palette_index should be an int"
|
msgid "palette_index should be an int"
|
||||||
msgstr ""
|
msgstr "palette_index sollte ein int sein"
|
||||||
|
|
||||||
#: py/compile.c
|
#: py/compile.c
|
||||||
msgid "parameter annotation must be an identifier"
|
msgid "parameter annotation must be an identifier"
|
||||||
@ -2450,7 +2454,7 @@ msgstr "Der schedule stack ist voll"
|
|||||||
|
|
||||||
#: lib/utils/pyexec.c py/builtinimport.c
|
#: lib/utils/pyexec.c py/builtinimport.c
|
||||||
msgid "script compilation not supported"
|
msgid "script compilation not supported"
|
||||||
msgstr "kompilieren von Skripten ist nicht unterstützt"
|
msgstr "kompilieren von Skripten nicht unterstützt"
|
||||||
|
|
||||||
#: py/objstr.c
|
#: py/objstr.c
|
||||||
msgid "sign not allowed in string format specifier"
|
msgid "sign not allowed in string format specifier"
|
||||||
@ -2482,11 +2486,11 @@ msgstr "weicher reboot\n"
|
|||||||
|
|
||||||
#: py/objstr.c
|
#: py/objstr.c
|
||||||
msgid "start/end indices"
|
msgid "start/end indices"
|
||||||
msgstr ""
|
msgstr "start/end Indizes"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Shape.c
|
#: shared-bindings/displayio/Shape.c
|
||||||
msgid "start_x should be an int"
|
msgid "start_x should be an int"
|
||||||
msgstr ""
|
msgstr "start_x sollte ein int sein"
|
||||||
|
|
||||||
#: shared-bindings/random/__init__.c
|
#: shared-bindings/random/__init__.c
|
||||||
msgid "step must be non-zero"
|
msgid "step must be non-zero"
|
||||||
@ -2506,7 +2510,7 @@ msgstr "stream operation ist nicht unterstützt"
|
|||||||
|
|
||||||
#: py/objstrunicode.c
|
#: py/objstrunicode.c
|
||||||
msgid "string index out of range"
|
msgid "string index out of range"
|
||||||
msgstr ""
|
msgstr "String index außerhalb des Bereiches"
|
||||||
|
|
||||||
#: py/objstrunicode.c
|
#: py/objstrunicode.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -2597,11 +2601,11 @@ msgstr "tx und rx können nicht beide None sein"
|
|||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "type '%q' is not an acceptable base type"
|
msgid "type '%q' is not an acceptable base type"
|
||||||
msgstr ""
|
msgstr "Typ '%q' ist kein akzeptierter Basis-Typ"
|
||||||
|
|
||||||
#: py/objtype.c
|
#: py/objtype.c
|
||||||
msgid "type is not an acceptable base type"
|
msgid "type is not an acceptable base type"
|
||||||
msgstr ""
|
msgstr "Typ ist kein akzeptierter Basis-Typ"
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "type object '%q' has no attribute '%q'"
|
msgid "type object '%q' has no attribute '%q'"
|
||||||
@ -2713,13 +2717,13 @@ msgstr "nicht unterstützte Typen für %q: '%s', '%s'"
|
|||||||
#: py/objint.c
|
#: py/objint.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "value must fit in %d byte(s)"
|
msgid "value must fit in %d byte(s)"
|
||||||
msgstr ""
|
msgstr "Wert muss in %d Byte(s) passen"
|
||||||
|
|
||||||
#: shared-bindings/displayio/Bitmap.c
|
#: shared-bindings/displayio/Bitmap.c
|
||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr "value_count muss größer als 0 sein"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2806,18 +2810,36 @@ msgstr ""
|
|||||||
#~ msgid "Error in ffi_prep_cif"
|
#~ msgid "Error in ffi_prep_cif"
|
||||||
#~ msgstr "Fehler in ffi_prep_cif"
|
#~ msgstr "Fehler in ffi_prep_cif"
|
||||||
|
|
||||||
|
#~ msgid "Expected a Peripheral"
|
||||||
|
#~ msgstr "Ein Peripheriegerät wird erwartet"
|
||||||
|
|
||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Akquirieren des Mutex gescheitert"
|
#~ msgstr "Akquirieren des Mutex gescheitert"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Hinzufügen des Characteristic ist gescheitert. Status: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Dienst konnte nicht hinzugefügt werden"
|
#~ msgstr "Dienst konnte nicht hinzugefügt werden"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Dienst konnte nicht hinzugefügt werden. Status: 0x%04x"
|
||||||
|
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Fehler beim Ändern des Softdevice-Status"
|
||||||
|
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Verbindung fehlgeschlagen:"
|
#~ msgstr "Verbindung fehlgeschlagen:"
|
||||||
|
|
||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Der Scanvorgang kann nicht fortgesetzt werden"
|
#~ msgstr "Der Scanvorgang kann nicht fortgesetzt werden"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Der Scanvorgang kann nicht fortgesetzt werden. Status: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Erstellen des Mutex ist fehlgeschlagen"
|
#~ msgstr "Erstellen des Mutex ist fehlgeschlagen"
|
||||||
|
|
||||||
@ -2830,15 +2852,31 @@ msgstr ""
|
|||||||
#~ msgid "Failed to release mutex"
|
#~ msgid "Failed to release mutex"
|
||||||
#~ msgstr "Loslassen des Mutex gescheitert"
|
#~ msgstr "Loslassen des Mutex gescheitert"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to set device name, err 0x%04x"
|
||||||
|
#~ msgstr "Gerätename konnte nicht gesetzt werden, Status: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Kann advertisement nicht starten"
|
#~ msgstr "Kann advertisement nicht starten"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Kann advertisement nicht starten. Status: 0x%04x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start pairing, error 0x%04x"
|
||||||
|
#~ msgstr "Starten des Koppelns fehlgeschlagen, Status: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Der Scanvorgang kann nicht gestartet werden"
|
#~ msgstr "Der Scanvorgang kann nicht gestartet werden"
|
||||||
|
|
||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Kann advertisement nicht stoppen"
|
#~ msgstr "Kann advertisement nicht stoppen"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Kann advertisement nicht stoppen. Status: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Function requires lock."
|
#~ msgid "Function requires lock."
|
||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Die Funktion erwartet, dass der 'lock'-Befehl zuvor ausgeführt wurde"
|
#~ "Die Funktion erwartet, dass der 'lock'-Befehl zuvor ausgeführt wurde"
|
||||||
@ -2972,6 +3010,9 @@ msgstr ""
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Speicherallozierung fehlgeschlagen, alloziere %u Bytes für nativen Code"
|
#~ "Speicherallozierung fehlgeschlagen, alloziere %u Bytes für nativen Code"
|
||||||
|
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "name muss ein String sein"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "Kein gültiger ADC Kanal: %d"
|
#~ msgstr "Kein gültiger ADC Kanal: %d"
|
||||||
|
|
||||||
|
109
locale/en_US.po
109
locale/en_US.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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -259,6 +259,10 @@ msgstr ""
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -325,6 +329,11 @@ msgstr ""
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -455,6 +464,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -497,7 +512,7 @@ msgstr ""
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -543,10 +558,6 @@ msgstr ""
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -556,7 +567,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -565,6 +576,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -575,8 +591,7 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -584,11 +599,6 @@ msgstr ""
|
|||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -600,24 +610,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to connect: internal error"
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -634,7 +642,7 @@ msgstr ""
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -643,8 +651,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -664,34 +671,26 @@ msgstr ""
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -989,9 +988,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1065,6 +1063,10 @@ msgstr ""
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1131,6 +1133,10 @@ msgstr ""
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1145,11 +1151,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1950,7 +1951,7 @@ msgstr ""
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2127,10 +2128,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2181,7 +2178,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2663,7 +2660,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -261,6 +261,10 @@ msgstr ""
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -329,6 +333,11 @@ msgstr ""
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -459,6 +468,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -501,7 +516,7 @@ msgstr ""
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -547,10 +562,6 @@ msgstr ""
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -560,7 +571,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -569,6 +580,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -579,8 +595,7 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -588,11 +603,6 @@ msgstr ""
|
|||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -604,24 +614,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to connect: internal error"
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -638,7 +646,7 @@ msgstr ""
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -647,8 +655,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -668,34 +675,26 @@ msgstr ""
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
@ -993,9 +992,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -1069,6 +1067,10 @@ msgstr ""
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1135,6 +1137,10 @@ msgstr ""
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1149,11 +1155,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1954,7 +1955,7 @@ msgstr ""
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2131,10 +2132,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2185,7 +2182,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2667,7 +2664,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
149
locale/es.po
149
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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -263,6 +263,10 @@ msgstr "Todos los timers para este pin están siendo utilizados"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Todos los timers en uso"
|
msgstr "Todos los timers en uso"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "Funcionalidad AnalogOut no soportada"
|
msgstr "Funcionalidad AnalogOut no soportada"
|
||||||
@ -333,6 +337,11 @@ msgstr "El brillo debe estar entro 0 y 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "El brillo no se puede ajustar"
|
msgstr "El brillo no se puede ajustar"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -463,6 +472,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Command debe estar entre 0 y 255."
|
msgstr "Command debe estar entre 0 y 255."
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -505,7 +520,7 @@ msgstr "El pin Data 0 debe estar alineado a bytes"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Trozo de datos debe seguir fmt chunk"
|
msgstr "Trozo de datos debe seguir fmt chunk"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Data es muy grande para el paquete de advertisement."
|
msgstr "Data es muy grande para el paquete de advertisement."
|
||||||
|
|
||||||
@ -551,10 +566,6 @@ msgstr "Se espera un %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Se esperaba una Característica."
|
msgstr "Se esperaba una Característica."
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -564,7 +575,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Se esperaba un UUID"
|
msgstr "Se esperaba un UUID"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -573,6 +584,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr "Se esperaba un tuple de %d, se obtuvo %d"
|
msgstr "Se esperaba un tuple de %d, se obtuvo %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr "Fallo enviando comando"
|
msgstr "Fallo enviando comando"
|
||||||
@ -583,20 +599,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "No se puede adquirir el mutex, status: 0x%08lX"
|
msgstr "No se puede adquirir el mutex, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Fallo al añadir caracteristica, err: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Fallo al agregar servicio. err: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Ha fallado la asignación del buffer RX"
|
msgstr "Ha fallado la asignación del buffer RX"
|
||||||
@ -608,24 +618,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Falló la asignación del buffer RX de %d bytes"
|
msgstr "Falló la asignación del buffer RX de %d bytes"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr "No se puede cambiar el estado del softdevice"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "No se puede iniciar el escaneo. err: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "No se puede descubrir servicios"
|
msgstr "No se puede descubrir servicios"
|
||||||
@ -643,7 +651,7 @@ msgstr "No se puede obtener el estado del softdevice"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr "Error al notificar o indicar el valor del atributo, err 0x%04x"
|
msgstr "Error al notificar o indicar el valor del atributo, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -652,8 +660,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "No se puede leer el valor del atributo. err 0x%02x"
|
msgstr "No se puede leer el valor del atributo. err 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr "Error al leer valor del atributo, err 0x%04"
|
msgstr "Error al leer valor del atributo, err 0x%04"
|
||||||
@ -673,35 +680,27 @@ msgstr "Fallo al registrar el Vendor-Specific UUID, err 0x%04x"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "No se puede liberar el mutex, err 0x%04x"
|
msgstr "No se puede liberar el mutex, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "No se puede inicar el anuncio. err: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "No se puede iniciar el escaneo. err 0x%04x"
|
msgstr "No se puede iniciar el escaneo. err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "No se puede detener el anuncio. err: 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1004,9 +1003,8 @@ 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"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "No conectado"
|
msgstr "No conectado"
|
||||||
|
|
||||||
@ -1088,6 +1086,10 @@ msgstr "Incapaz de montar de nuevo el sistema de archivos"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr "Pop de un buffer Ps2 vacio"
|
msgstr "Pop de un buffer Ps2 vacio"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1157,6 +1159,10 @@ msgstr "Sample rate debe ser positivo"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Frecuencia de muestreo demasiado alta. Debe ser menor a %d"
|
msgstr "Frecuencia de muestreo demasiado alta. Debe ser menor a %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1171,11 +1177,6 @@ msgstr "Slice y value tienen diferentes longitudes"
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Rebanadas no soportadas"
|
msgstr "Rebanadas no soportadas"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Dividiendo con sub-capturas"
|
msgstr "Dividiendo con sub-capturas"
|
||||||
@ -2004,7 +2005,7 @@ msgstr "int() arg 2 debe ser >= 2 y <= 36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "Entero requerido"
|
msgstr "Entero requerido"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2184,10 +2185,6 @@ msgstr "debe utilizar argumento de palabra clave para la función clave"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "name '%q' no esta definido"
|
msgstr "name '%q' no esta definido"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "name debe de ser un string"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "name no definido"
|
msgstr "name no definido"
|
||||||
@ -2238,7 +2235,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "no hay tal atributo"
|
msgstr "no hay tal atributo"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2728,7 +2725,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2818,10 +2815,21 @@ msgstr "paso cero"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "No se puede adquirir el mutex, status: 0x%08lX"
|
#~ msgstr "No se puede adquirir el mutex, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Fallo al añadir caracteristica, err: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "No se puede detener el anuncio. status: 0x%02x"
|
#~ msgstr "No se puede detener el anuncio. status: 0x%02x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Fallo al agregar servicio. err: 0x%02x"
|
||||||
|
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "No se puede cambiar el estado del softdevice"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "No se puede conectar. status: 0x%02x"
|
#~ msgstr "No se puede conectar. status: 0x%02x"
|
||||||
@ -2830,6 +2838,10 @@ msgstr "paso cero"
|
|||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "No se puede iniciar el escaneo. status: 0x%02x"
|
#~ msgstr "No se puede iniciar el escaneo. status: 0x%02x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "No se puede iniciar el escaneo. err: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "No se puede leer el valor del atributo. status 0x%02x"
|
#~ msgstr "No se puede leer el valor del atributo. status 0x%02x"
|
||||||
@ -2850,6 +2862,10 @@ msgstr "paso cero"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "No se puede inicar el anuncio. status: 0x%02x"
|
#~ msgstr "No se puede inicar el anuncio. status: 0x%02x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "No se puede inicar el anuncio. err: 0x%04x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "No se puede iniciar el escaneo. status: 0x%02x"
|
#~ msgstr "No se puede iniciar el escaneo. status: 0x%02x"
|
||||||
@ -2858,6 +2874,10 @@ msgstr "paso cero"
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "No se puede detener el anuncio. status: 0x%02x"
|
#~ msgstr "No se puede detener el anuncio. status: 0x%02x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "No se puede detener el anuncio. err: 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Function requires lock."
|
#~ msgid "Function requires lock."
|
||||||
#~ msgstr "La función requiere lock"
|
#~ msgstr "La función requiere lock"
|
||||||
|
|
||||||
@ -2932,6 +2952,10 @@ msgstr "paso cero"
|
|||||||
#~ msgid "STA required"
|
#~ msgid "STA required"
|
||||||
#~ msgstr "STA requerido"
|
#~ msgstr "STA requerido"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
#~ msgstr "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
|
||||||
#~ msgid "Tile indices must be 0 - 255"
|
#~ msgid "Tile indices must be 0 - 255"
|
||||||
#~ msgstr "Los índices de Tile deben ser 0 - 255"
|
#~ msgstr "Los índices de Tile deben ser 0 - 255"
|
||||||
|
|
||||||
@ -3027,6 +3051,9 @@ msgstr "paso cero"
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "falló la asignación de memoria, asignando %u bytes para código nativo"
|
#~ "falló la asignación de memoria, asignando %u bytes para código nativo"
|
||||||
|
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "name debe de ser un string"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "no es un canal ADC válido: %d"
|
#~ msgstr "no es un canal ADC válido: %d"
|
||||||
|
|
||||||
|
149
locale/fil.po
149
locale/fil.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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -263,6 +263,10 @@ msgstr "Lahat ng timers para sa pin na ito ay ginagamit"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Lahat ng timer ginagamit"
|
msgstr "Lahat ng timer ginagamit"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "Hindi supportado ang AnalogOut"
|
msgstr "Hindi supportado ang AnalogOut"
|
||||||
@ -331,6 +335,11 @@ msgstr "Ang liwanag ay dapat sa gitna ng 0 o 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -464,6 +473,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Sa gitna ng 0 o 255 dapat ang bytes."
|
msgstr "Sa gitna ng 0 o 255 dapat ang bytes."
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -507,7 +522,7 @@ msgstr "graphic ay dapat 2048 bytes ang haba"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Dapat sunurin ng Data chunk ang fmt chunk"
|
msgstr "Dapat sunurin ng Data chunk ang fmt chunk"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Hindi makasya ang data sa loob ng advertisement packet"
|
msgstr "Hindi makasya ang data sa loob ng advertisement packet"
|
||||||
@ -556,10 +571,6 @@ msgstr "Umasa ng %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Hindi mabasa and Characteristic."
|
msgstr "Hindi mabasa and Characteristic."
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -570,7 +581,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Umasa ng %q"
|
msgstr "Umasa ng %q"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -579,6 +590,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -589,20 +605,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Nabigo sa pag kuha ng mutex, status: 0x%08lX"
|
msgstr "Nabigo sa pag kuha ng mutex, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Nabigo sa paglagay ng characteristic, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Hindi matagumpay ang paglagay ng service, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Nabigong ilaan ang RX buffer"
|
msgstr "Nabigong ilaan ang RX buffer"
|
||||||
@ -614,25 +624,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Nabigong ilaan ang RX buffer ng %d bytes"
|
msgstr "Nabigong ilaan ang RX buffer ng %d bytes"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgid "Failed to change softdevice state"
|
|
||||||
msgstr "Nabigo sa pagbago ng softdevice state, error: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Hindi maituloy ang pag scan, status: 0x%0xlX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Nabigo sa pagdiscover ng services, status: 0x%08lX"
|
msgstr "Nabigo sa pagdiscover ng services, status: 0x%08lX"
|
||||||
@ -652,7 +659,7 @@ msgstr "Nabigo sa pagkuha ng softdevice state, error: 0x%08lX"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -661,8 +668,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Hindi mabasa ang value ng attribute, status: 0x%08lX"
|
msgstr "Hindi mabasa ang value ng attribute, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -682,35 +688,27 @@ msgstr "Hindi matagumpay ang paglagay ng Vender Specific UUID, status: 0x%08lX"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Nabigo sa pagrelease ng mutex, status: 0x%08lX"
|
msgstr "Nabigo sa pagrelease ng mutex, status: 0x%08lX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Hindi masimulaan ang advertisement, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Hindi masimulaan mag i-scan, status: 0x%0xlX"
|
msgstr "Hindi masimulaan mag i-scan, status: 0x%0xlX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Hindi mahinto ang advertisement, status: 0x%08lX"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1013,9 +1011,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Walang file/directory"
|
msgstr "Walang file/directory"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Hindi maka connect sa AP"
|
msgstr "Hindi maka connect sa AP"
|
||||||
@ -1094,6 +1091,10 @@ msgstr "Kasama ang kung ano pang modules na sa filesystem\n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1164,6 +1165,10 @@ msgstr "Sample rate ay dapat positibo"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Sample rate ay masyadong mataas. Ito ay dapat hindi hiigit sa %d"
|
msgstr "Sample rate ay masyadong mataas. Ito ay dapat hindi hiigit sa %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1178,11 +1183,6 @@ msgstr "Slice at value iba't ibang haba."
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Hindi suportado ang Slices"
|
msgstr "Hindi suportado ang Slices"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Binibiyak gamit ang sub-captures"
|
msgstr "Binibiyak gamit ang sub-captures"
|
||||||
@ -2016,7 +2016,7 @@ msgstr "int() arg 2 ay dapat >=2 at <= 36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "kailangan ng int"
|
msgstr "kailangan ng int"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2197,11 +2197,6 @@ msgstr "dapat gumamit ng keyword argument para sa key function"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "name '%q' ay hindi defined"
|
msgstr "name '%q' ay hindi defined"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "ang keywords dapat strings"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "name hindi na define"
|
msgstr "name hindi na define"
|
||||||
@ -2252,7 +2247,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "walang ganoon na attribute"
|
msgstr "walang ganoon na attribute"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2741,7 +2736,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2825,10 +2820,22 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Nabigo sa pag kuha ng mutex, status: 0x%08lX"
|
#~ msgstr "Nabigo sa pag kuha ng mutex, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Nabigo sa paglagay ng characteristic, status: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Hindi matagumpay ang paglagay ng service, status: 0x%08lX"
|
#~ msgstr "Hindi matagumpay ang paglagay ng service, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Hindi matagumpay ang paglagay ng service, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Nabigo sa pagbago ng softdevice state, error: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Hindi makaconnect, status: 0x%08lX"
|
#~ msgstr "Hindi makaconnect, status: 0x%08lX"
|
||||||
@ -2837,6 +2844,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Hindi maituloy ang pag scan, status: 0x%0xlX"
|
#~ msgstr "Hindi maituloy ang pag scan, status: 0x%0xlX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Hindi maituloy ang pag scan, status: 0x%0xlX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Hindi matagumpay ang pagbuo ng mutex, status: 0x%0xlX"
|
#~ msgstr "Hindi matagumpay ang pagbuo ng mutex, status: 0x%0xlX"
|
||||||
@ -2857,6 +2868,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Hindi masimulaan ang advertisement, status: 0x%08lX"
|
#~ msgstr "Hindi masimulaan ang advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Hindi masimulaan ang advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Hindi masimulaan mag i-scan, status: 0x%0xlX"
|
#~ msgstr "Hindi masimulaan mag i-scan, status: 0x%0xlX"
|
||||||
@ -2865,6 +2880,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Hindi mahinto ang advertisement, status: 0x%08lX"
|
#~ msgstr "Hindi mahinto ang advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Hindi mahinto ang advertisement, status: 0x%08lX"
|
||||||
|
|
||||||
#~ msgid "Function requires lock."
|
#~ msgid "Function requires lock."
|
||||||
#~ msgstr "Kailangan ng lock ang function."
|
#~ msgstr "Kailangan ng lock ang function."
|
||||||
|
|
||||||
@ -3010,6 +3029,10 @@ msgstr "zero step"
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "nabigo ang paglalaan ng memorya, naglalaan ng %u bytes para sa native code"
|
#~ "nabigo ang paglalaan ng memorya, naglalaan ng %u bytes para sa native code"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "ang keywords dapat strings"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "hindi tamang ADC Channel: %d"
|
#~ msgstr "hindi tamang ADC Channel: %d"
|
||||||
|
|
||||||
|
153
locale/fr.po
153
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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -266,6 +266,10 @@ msgstr "Tous les timers pour cette broche sont utilisés"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Tous les timers sont utilisés"
|
msgstr "Tous les timers sont utilisés"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "Fonctionnalité AnalogOut non supportée"
|
msgstr "Fonctionnalité AnalogOut non supportée"
|
||||||
@ -336,6 +340,11 @@ msgstr "La luminosité doit être entre 0 et 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "Luminosité non-ajustable"
|
msgstr "Luminosité non-ajustable"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -470,6 +479,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "La commande doit être un entier entre 0 et 255"
|
msgstr "La commande doit être un entier entre 0 et 255"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -513,7 +528,7 @@ msgstr "La broche 'Data 0' doit être aligné sur l'octet"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Un bloc de données doit suivre un bloc de format"
|
msgstr "Un bloc de données doit suivre un bloc de format"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Données trop volumineuses pour un paquet de diffusion"
|
msgstr "Données trop volumineuses pour un paquet de diffusion"
|
||||||
|
|
||||||
@ -560,10 +575,6 @@ msgstr "Attendu un %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Une 'Characteristic' est attendue"
|
msgstr "Une 'Characteristic' est attendue"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -574,7 +585,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Un UUID est attendu"
|
msgstr "Un UUID est attendu"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -583,6 +594,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr "Tuple de longueur %d attendu, obtenu %d"
|
msgstr "Tuple de longueur %d attendu, obtenu %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -593,20 +609,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Echec de l'obtention de mutex, err 0x%04x"
|
msgstr "Echec de l'obtention de mutex, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Echec de l'ajout de caractéristique, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Echec de l'ajout de service, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Echec de l'allocation du tampon RX"
|
msgstr "Echec de l'allocation du tampon RX"
|
||||||
@ -618,25 +628,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Echec de l'allocation de %d octets du tampon RX"
|
msgstr "Echec de l'allocation de %d octets du tampon RX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgid "Failed to change softdevice state"
|
|
||||||
msgstr "Echec de la modification de l'état du périphérique"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Impossible de poursuivre le scan, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Echec de la découverte de services"
|
msgstr "Echec de la découverte de services"
|
||||||
@ -657,7 +664,7 @@ msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Impossible de notifier ou d'indiquer la valeur de l'attribut, err 0x%04x"
|
"Impossible de notifier ou d'indiquer la valeur de l'attribut, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -666,8 +673,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Impossible de lire la valeur 'CCCD', err 0x%04x"
|
msgstr "Impossible de lire la valeur 'CCCD', err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr "Impossible de lire la valeur de l'attribut, err 0x%04x"
|
msgstr "Impossible de lire la valeur de l'attribut, err 0x%04x"
|
||||||
@ -687,35 +693,27 @@ msgstr "Echec de l'ajout de l'UUID du fournisseur, err 0x%04x"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Impossible de libérer mutex, err 0x%04x"
|
msgstr "Impossible de libérer mutex, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Impossible de commencer à diffuser, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Impossible de commencer à scanner, err 0x%04x"
|
msgstr "Impossible de commencer à scanner, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Echec de l'arrêt de diffusion, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1022,9 +1020,8 @@ 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"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Non connecté"
|
msgstr "Non connecté"
|
||||||
@ -1111,6 +1108,10 @@ msgstr "Ainsi que tout autre module présent sur le système de fichiers\n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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."
|
||||||
@ -1180,6 +1181,10 @@ msgstr "Le taux d'échantillonage doit être positif"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Taux d'échantillonage trop élevé. Doit être inf. à %d"
|
msgstr "Taux d'échantillonage trop élevé. Doit être inf. à %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1194,11 +1199,6 @@ msgstr "Tranche et valeur de tailles différentes"
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Tranches non supportées"
|
msgstr "Tranches non supportées"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr "Assertion en mode 'soft-device', id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Fractionnement avec des sous-captures"
|
msgstr "Fractionnement avec des sous-captures"
|
||||||
@ -2048,7 +2048,7 @@ msgstr "l'argument 2 de int() doit être >=2 et <=36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "entier requis"
|
msgstr "entier requis"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2229,11 +2229,6 @@ msgstr "doit utiliser un argument nommé pour une fonction key"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "nom '%q' non défini"
|
msgstr "nom '%q' non défini"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "les noms doivent être des chaînes de caractère"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "nom non défini"
|
msgstr "nom non défini"
|
||||||
@ -2285,7 +2280,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "pas de tel attribut"
|
msgstr "pas de tel attribut"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2783,7 +2778,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr "'value_count' doit être > 0"
|
msgstr "'value_count' doit être > 0"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2873,10 +2868,22 @@ msgstr "'step' nul"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Echec de l'obtention de mutex"
|
#~ msgstr "Echec de l'obtention de mutex"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Echec de l'ajout de caractéristique, err 0x%04x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Echec de l'ajout de service"
|
#~ msgstr "Echec de l'ajout de service"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Echec de l'ajout de service, err 0x%04x"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Echec de la modification de l'état du périphérique"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Echec de connection:"
|
#~ msgstr "Echec de connection:"
|
||||||
@ -2885,6 +2892,10 @@ msgstr "'step' nul"
|
|||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Impossible de poursuivre le scan"
|
#~ msgstr "Impossible de poursuivre le scan"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Impossible de poursuivre le scan, err 0x%04x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Echec de la création de mutex"
|
#~ msgstr "Echec de la création de mutex"
|
||||||
@ -2905,6 +2916,10 @@ msgstr "'step' nul"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Echec du démarrage de la diffusion"
|
#~ msgstr "Echec du démarrage de la diffusion"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Impossible de commencer à diffuser, err 0x%04x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Impossible de commencer à scanner"
|
#~ msgstr "Impossible de commencer à scanner"
|
||||||
@ -2913,6 +2928,10 @@ msgstr "'step' nul"
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Echec de l'arrêt de diffusion"
|
#~ msgstr "Echec de l'arrêt de diffusion"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Echec de l'arrêt de diffusion, err 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Function requires lock."
|
#~ msgid "Function requires lock."
|
||||||
#~ msgstr "La fonction nécessite un verrou."
|
#~ msgstr "La fonction nécessite un verrou."
|
||||||
|
|
||||||
@ -2984,6 +3003,10 @@ msgstr "'step' nul"
|
|||||||
#~ msgid "STA required"
|
#~ msgid "STA required"
|
||||||
#~ msgstr "'STA' requis"
|
#~ msgstr "'STA' requis"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
#~ msgstr "Assertion en mode 'soft-device', id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
|
||||||
#~ msgid "Tile indices must be 0 - 255"
|
#~ msgid "Tile indices must be 0 - 255"
|
||||||
#~ msgstr "Les indices des tuiles doivent être compris entre 0 et 255 "
|
#~ msgstr "Les indices des tuiles doivent être compris entre 0 et 255 "
|
||||||
|
|
||||||
@ -3077,6 +3100,10 @@ msgstr "'step' nul"
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "l'allocation de mémoire a échoué en allouant %u octets pour un code natif"
|
#~ "l'allocation de mémoire a échoué en allouant %u octets pour un code natif"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "les noms doivent être des chaînes de caractère"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "canal ADC non valide : %d"
|
#~ msgstr "canal ADC non valide : %d"
|
||||||
|
|
||||||
|
149
locale/it_IT.po
149
locale/it_IT.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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -262,6 +262,10 @@ msgstr "Tutti i timer per questo pin sono in uso"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Tutti i timer utilizzati"
|
msgstr "Tutti i timer utilizzati"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "funzionalità AnalogOut non supportata"
|
msgstr "funzionalità AnalogOut non supportata"
|
||||||
@ -331,6 +335,11 @@ msgstr "La luminosità deve essere compreso tra 0 e 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "Illiminazione non è regolabile"
|
msgstr "Illiminazione non è regolabile"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -465,6 +474,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "I byte devono essere compresi tra 0 e 255"
|
msgstr "I byte devono essere compresi tra 0 e 255"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -508,7 +523,7 @@ msgstr "graphic deve essere lunga 2048 byte"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Impossibile inserire dati nel pacchetto di advertisement."
|
msgstr "Impossibile inserire dati nel pacchetto di advertisement."
|
||||||
@ -556,10 +571,6 @@ msgstr "Atteso un %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Non è possibile aggiungere Characteristic."
|
msgstr "Non è possibile aggiungere Characteristic."
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -570,7 +581,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Atteso un %q"
|
msgstr "Atteso un %q"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -579,6 +590,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -589,20 +605,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Impossibile allocare buffer RX"
|
msgstr "Impossibile allocare buffer RX"
|
||||||
@ -614,25 +624,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Fallita allocazione del buffer RX di %d byte"
|
msgstr "Fallita allocazione del buffer RX di %d byte"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgid "Failed to change softdevice state"
|
|
||||||
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
@ -651,7 +658,7 @@ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr "Notificamento o indicazione di attribute value fallito, err 0x%04x"
|
msgstr "Notificamento o indicazione di attribute value fallito, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -660,8 +667,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr "Tentative leggere attribute value fallito, err 0x%04x"
|
msgstr "Tentative leggere attribute value fallito, err 0x%04x"
|
||||||
@ -681,35 +687,27 @@ msgstr "Non è possibile aggiungere l'UUID del vendor specifico da 128-bit"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Impossibile avviare advertisement. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1012,9 +1010,8 @@ 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"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Impossible connettersi all'AP"
|
msgstr "Impossible connettersi all'AP"
|
||||||
@ -1099,6 +1096,10 @@ msgstr "Imposssibile rimontare il filesystem"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1170,6 +1171,10 @@ msgid "Sample rate too high. It must be less than %d"
|
|||||||
msgstr ""
|
msgstr ""
|
||||||
"Frequenza di campionamento troppo alta. Il valore deve essere inferiore a %d"
|
"Frequenza di campionamento troppo alta. Il valore deve essere inferiore a %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1184,11 +1189,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Slice non supportate"
|
msgstr "Slice non supportate"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Suddivisione con sotto-catture"
|
msgstr "Suddivisione con sotto-catture"
|
||||||
@ -2008,7 +2008,7 @@ msgstr "il secondo argomanto di int() deve essere >= 2 e <= 36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "intero richiesto"
|
msgstr "intero richiesto"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2190,11 +2190,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "nome '%q'non definito"
|
msgstr "nome '%q'non definito"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "argomenti nominati devono essere stringhe"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "nome non definito"
|
msgstr "nome non definito"
|
||||||
@ -2246,7 +2241,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "attributo inesistente"
|
msgstr "attributo inesistente"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2739,7 +2734,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2829,10 +2824,22 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Impossibile allocare buffer RX"
|
#~ msgstr "Impossibile allocare buffer RX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Impossibile connettersi. status: 0x%02x"
|
#~ msgstr "Impossibile connettersi. status: 0x%02x"
|
||||||
@ -2841,6 +2848,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
#~ msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
#~ msgstr "Impossibile leggere valore dell'attributo. status: 0x%02x"
|
||||||
@ -2861,6 +2872,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Impossibile avviare advertisement. status: 0x%02x"
|
#~ msgstr "Impossibile avviare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Impossibile avviare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
#~ msgstr "Impossible iniziare la scansione. status: 0x%02x"
|
||||||
@ -2869,6 +2884,10 @@ msgstr "zero step"
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Impossibile fermare advertisement. status: 0x%02x"
|
||||||
|
|
||||||
#~ msgid "GPIO16 does not support pull up."
|
#~ msgid "GPIO16 does not support pull up."
|
||||||
#~ msgstr "GPIO16 non supporta pull-up"
|
#~ msgstr "GPIO16 non supporta pull-up"
|
||||||
|
|
||||||
@ -3008,6 +3027,10 @@ msgstr "zero step"
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "allocazione di memoria fallita, allocazione di %d byte per codice nativo"
|
#~ "allocazione di memoria fallita, allocazione di %d byte per codice nativo"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "argomenti nominati devono essere stringhe"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "canale ADC non valido: %d"
|
#~ msgstr "canale ADC non valido: %d"
|
||||||
|
|
||||||
|
149
locale/pl.po
149
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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -260,6 +260,10 @@ msgstr "Wszystkie timery tej nóżki w użyciu"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Wszystkie timery w użyciu"
|
msgstr "Wszystkie timery w użyciu"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "AnalogOut jest niewspierane"
|
msgstr "AnalogOut jest niewspierane"
|
||||||
@ -328,6 +332,11 @@ msgstr "Jasność musi być pomiędzy 0 a 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "Jasność nie jest regulowana"
|
msgstr "Jasność nie jest regulowana"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -458,6 +467,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Komenda musi być int pomiędzy 0 a 255"
|
msgstr "Komenda musi być int pomiędzy 0 a 255"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -500,7 +515,7 @@ msgstr "Nóżka data 0 musi być wyrównana do bajtu"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Fragment danych musi następować po fragmencie fmt"
|
msgstr "Fragment danych musi następować po fragmencie fmt"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Zbyt dużo danych pakietu rozgłoszeniowego"
|
msgstr "Zbyt dużo danych pakietu rozgłoszeniowego"
|
||||||
|
|
||||||
@ -546,10 +561,6 @@ msgstr "Oczekiwano %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Oczekiwano charakterystyki"
|
msgstr "Oczekiwano charakterystyki"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -559,7 +570,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Oczekiwano UUID"
|
msgstr "Oczekiwano UUID"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -568,6 +579,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr "Oczekiwano krotkę długości %d, otrzymano %d"
|
msgstr "Oczekiwano krotkę długości %d, otrzymano %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -578,20 +594,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Nie udało się uzyskać blokady, błąd 0x$04x"
|
msgstr "Nie udało się uzyskać blokady, błąd 0x$04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Nie udało się dodać charakterystyki, błąd 0x$04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Nie udało się dodać serwisu, błąd 0x%04x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Nie udała się alokacja bufora RX"
|
msgstr "Nie udała się alokacja bufora RX"
|
||||||
@ -603,24 +613,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Nie udała się alokacja %d bajtów na bufor RX"
|
msgstr "Nie udała się alokacja %d bajtów na bufor RX"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr "Nie udało się zmienić stanu softdevice"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Nie udała się kontynuacja skanowania, błąd 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Nie udało się odkryć serwisów"
|
msgstr "Nie udało się odkryć serwisów"
|
||||||
|
|
||||||
@ -637,7 +645,7 @@ msgstr "Nie udało się odczytać stanu softdevice"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr "Nie udało się powiadomić o wartości atrybutu, błąd 0x%04x"
|
msgstr "Nie udało się powiadomić o wartości atrybutu, błąd 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -646,8 +654,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Nie udało się odczytać CCCD, błąd 0x%04x"
|
msgstr "Nie udało się odczytać CCCD, błąd 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr "Nie udało się odczytać wartości atrybutu, błąd 0x%04x"
|
msgstr "Nie udało się odczytać wartości atrybutu, błąd 0x%04x"
|
||||||
@ -667,35 +674,27 @@ msgstr "Nie udało się zarejestrować UUID dostawcy, błąd 0x%04x"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Nie udało się zwolnić blokady, błąd 0x%04x"
|
msgstr "Nie udało się zwolnić blokady, błąd 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Nie udało się rozpocząć rozgłaszania, błąd 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Nie udało się rozpocząć skanowania, błąd 0x%04x"
|
msgstr "Nie udało się rozpocząć skanowania, błąd 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Nie udało się zatrzymać rozgłaszania, błąd 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -999,9 +998,8 @@ msgstr "Brak miejsca"
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr "Brak pliku/katalogu"
|
msgstr "Brak pliku/katalogu"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Nie podłączono"
|
msgstr "Nie podłączono"
|
||||||
|
|
||||||
@ -1075,6 +1073,10 @@ msgstr "Oraz moduły w systemie plików\n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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ć."
|
||||||
@ -1141,6 +1143,10 @@ msgstr "Częstotliwość próbkowania musi być dodatnia"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Zbyt wysoka częstotliwość próbkowania. Musi być mniejsza niż %d"
|
msgstr "Zbyt wysoka częstotliwość próbkowania. Musi być mniejsza niż %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1155,11 +1161,6 @@ msgstr "Fragment i wartość są różnych długości."
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Fragmenty nieobsługiwane"
|
msgstr "Fragmenty nieobsługiwane"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Podział z podgrupami"
|
msgstr "Podział z podgrupami"
|
||||||
@ -1975,7 +1976,7 @@ msgstr "argument 2 do int() busi być pomiędzy 2 a 36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "wymagana liczba całkowita"
|
msgstr "wymagana liczba całkowita"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2152,10 +2153,6 @@ msgstr "funkcja key musi być podana jako argument nazwany"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "nazwa '%q' niezdefiniowana"
|
msgstr "nazwa '%q' niezdefiniowana"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "nazwa musi być łańcuchem"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "nazwa niezdefiniowana"
|
msgstr "nazwa niezdefiniowana"
|
||||||
@ -2206,7 +2203,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "nie ma takiego atrybutu"
|
msgstr "nie ma takiego atrybutu"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2690,7 +2687,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr "value_count musi być > 0"
|
msgstr "value_count musi być > 0"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2749,15 +2746,30 @@ msgstr "zerowy krok"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Nie udało się uzyskać blokady"
|
#~ msgstr "Nie udało się uzyskać blokady"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Nie udało się dodać charakterystyki, błąd 0x$04x"
|
||||||
|
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Nie udało się dodać serwisu"
|
#~ msgstr "Nie udało się dodać serwisu"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Nie udało się dodać serwisu, błąd 0x%04x"
|
||||||
|
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Nie udało się zmienić stanu softdevice"
|
||||||
|
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Nie udało się połączenie:"
|
#~ msgstr "Nie udało się połączenie:"
|
||||||
|
|
||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Nie udała się kontynuacja skanowania"
|
#~ msgstr "Nie udała się kontynuacja skanowania"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Nie udała się kontynuacja skanowania, błąd 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Nie udało się stworzyć blokady"
|
#~ msgstr "Nie udało się stworzyć blokady"
|
||||||
|
|
||||||
@ -2767,12 +2779,20 @@ msgstr "zerowy krok"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Nie udało się rozpocząć rozgłaszania"
|
#~ msgstr "Nie udało się rozpocząć rozgłaszania"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Nie udało się rozpocząć rozgłaszania, błąd 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Nie udało się rozpocząć skanowania"
|
#~ msgstr "Nie udało się rozpocząć skanowania"
|
||||||
|
|
||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Nie udało się zatrzymać rozgłaszania"
|
#~ msgstr "Nie udało się zatrzymać rozgłaszania"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Nie udało się zatrzymać rozgłaszania, błąd 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Invalid bit clock pin"
|
#~ msgid "Invalid bit clock pin"
|
||||||
#~ msgstr "Zła nóżka zegara"
|
#~ msgstr "Zła nóżka zegara"
|
||||||
|
|
||||||
@ -2790,6 +2810,10 @@ msgstr "zerowy krok"
|
|||||||
#~ "bpp given"
|
#~ "bpp given"
|
||||||
#~ msgstr "Wspierane są tylko pliki BMP czarno-białe, 8bpp i 16bpp: %d bpp "
|
#~ msgstr "Wspierane są tylko pliki BMP czarno-białe, 8bpp i 16bpp: %d bpp "
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
#~ msgstr "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
|
||||||
#~ msgid "Tile indices must be 0 - 255"
|
#~ msgid "Tile indices must be 0 - 255"
|
||||||
#~ msgstr "Indeks kafelka musi być pomiędzy 0 a 255 włącznie"
|
#~ msgstr "Indeks kafelka musi być pomiędzy 0 a 255 włącznie"
|
||||||
|
|
||||||
@ -2809,6 +2833,9 @@ msgstr "zerowy krok"
|
|||||||
#~ msgid "interval not in range 0.0020 to 10.24"
|
#~ msgid "interval not in range 0.0020 to 10.24"
|
||||||
#~ msgstr "przedział poza zakresem 0.0020 do 10.24"
|
#~ msgstr "przedział poza zakresem 0.0020 do 10.24"
|
||||||
|
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "nazwa musi być łańcuchem"
|
||||||
|
|
||||||
#~ msgid "services includes an object that is not a Service"
|
#~ msgid "services includes an object that is not a Service"
|
||||||
#~ msgstr "obiekt typu innego niż Service w services"
|
#~ msgstr "obiekt typu innego niż Service w services"
|
||||||
|
|
||||||
|
149
locale/pt_BR.po
149
locale/pt_BR.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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -262,6 +262,10 @@ msgstr "Todos os temporizadores para este pino estão em uso"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Todos os temporizadores em uso"
|
msgstr "Todos os temporizadores em uso"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "Funcionalidade AnalogOut não suportada"
|
msgstr "Funcionalidade AnalogOut não suportada"
|
||||||
@ -328,6 +332,11 @@ msgstr "O brilho deve estar entre 0 e 255"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -461,6 +470,12 @@ msgstr ""
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Os bytes devem estar entre 0 e 255."
|
msgstr "Os bytes devem estar entre 0 e 255."
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -503,7 +518,7 @@ msgstr ""
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Pedaço de dados deve seguir o pedaço de cortes"
|
msgstr "Pedaço de dados deve seguir o pedaço de cortes"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Não é possível ajustar dados no pacote de anúncios."
|
msgstr "Não é possível ajustar dados no pacote de anúncios."
|
||||||
@ -551,10 +566,6 @@ msgstr "Esperado um"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Não é possível adicionar Característica."
|
msgstr "Não é possível adicionar Característica."
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -565,7 +576,7 @@ msgstr ""
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Esperado um"
|
msgstr "Esperado um"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -574,6 +585,11 @@ msgstr ""
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr "Falha ao enviar comando."
|
msgstr "Falha ao enviar comando."
|
||||||
@ -584,20 +600,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Não pode parar propaganda. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Não pode parar propaganda. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Falha ao alocar buffer RX"
|
msgstr "Falha ao alocar buffer RX"
|
||||||
@ -609,25 +619,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Falha ao alocar buffer RX de %d bytes"
|
msgstr "Falha ao alocar buffer RX de %d bytes"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgid "Failed to change softdevice state"
|
|
||||||
msgstr "Não pode parar propaganda. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Failed to connect: internal error"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Não pode parar propaganda. status: 0x%02x"
|
msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
@ -646,7 +653,7 @@ msgstr "Não pode parar propaganda. status: 0x%02x"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -655,8 +662,7 @@ msgstr ""
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -676,35 +682,27 @@ msgstr "Não é possível adicionar o UUID de 128 bits específico do fornecedor
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
#, fuzzy, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, fuzzy, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Não pode parar propaganda. status: 0x%02x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -1004,9 +1002,8 @@ msgstr ""
|
|||||||
msgid "No such file/directory"
|
msgid "No such file/directory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Não é possível conectar-se ao AP"
|
msgstr "Não é possível conectar-se ao AP"
|
||||||
@ -1084,6 +1081,10 @@ msgstr "Não é possível remontar o sistema de arquivos"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr "Buffer Ps2 vazio"
|
msgstr "Buffer Ps2 vazio"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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 ""
|
||||||
@ -1151,6 +1152,10 @@ msgstr ""
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Taxa de amostragem muito alta. Deve ser menor que %d"
|
msgstr "Taxa de amostragem muito alta. Deve ser menor que %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1165,11 +1170,6 @@ msgstr ""
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr ""
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -1975,7 +1975,7 @@ msgstr ""
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "inteiro requerido"
|
msgstr "inteiro requerido"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
@ -2152,11 +2152,6 @@ msgstr ""
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
#, fuzzy
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "heap deve ser uma lista"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "nome não definido"
|
msgstr "nome não definido"
|
||||||
@ -2207,7 +2202,7 @@ msgstr ""
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2692,7 +2687,7 @@ msgstr ""
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
@ -2759,10 +2754,26 @@ msgstr "passo zero"
|
|||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Falha ao alocar buffer RX"
|
#~ msgstr "Falha ao alocar buffer RX"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
#~ msgstr "Não é possível ler o valor do atributo. status: 0x%02x"
|
||||||
@ -2783,6 +2794,10 @@ msgstr "passo zero"
|
|||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
||||||
|
|
||||||
#, fuzzy
|
#, fuzzy
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
#~ msgstr "Não é possível iniciar o anúncio. status: 0x%02x"
|
||||||
@ -2791,6 +2806,10 @@ msgstr "passo zero"
|
|||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
|
#, fuzzy, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Não pode parar propaganda. status: 0x%02x"
|
||||||
|
|
||||||
#~ msgid "GPIO16 does not support pull up."
|
#~ msgid "GPIO16 does not support pull up."
|
||||||
#~ msgstr "GPIO16 não suporta pull up."
|
#~ msgstr "GPIO16 não suporta pull up."
|
||||||
|
|
||||||
@ -2921,6 +2940,10 @@ msgstr "passo zero"
|
|||||||
#~ msgid "memory allocation failed, allocating %u bytes for native code"
|
#~ msgid "memory allocation failed, allocating %u bytes for native code"
|
||||||
#~ msgstr "alocação de memória falhou, alocando %u bytes para código nativo"
|
#~ msgstr "alocação de memória falhou, alocando %u bytes para código nativo"
|
||||||
|
|
||||||
|
#, fuzzy
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "heap deve ser uma lista"
|
||||||
|
|
||||||
#~ msgid "not a valid ADC Channel: %d"
|
#~ msgid "not a valid ADC Channel: %d"
|
||||||
#~ msgstr "não é um canal ADC válido: %d"
|
#~ msgstr "não é um canal ADC válido: %d"
|
||||||
|
|
||||||
|
@ -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: 2019-09-08 17:30-0500\n"
|
"POT-Creation-Date: 2019-10-21 19:50-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"
|
||||||
@ -261,6 +261,10 @@ msgstr "Cǐ yǐn jiǎo de suǒyǒu jìshí qì zhèngzài shǐyòng"
|
|||||||
msgid "All timers in use"
|
msgid "All timers in use"
|
||||||
msgstr "Suǒyǒu jìshí qì shǐyòng"
|
msgstr "Suǒyǒu jìshí qì shǐyòng"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Already advertising."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
#: ports/nrf/common-hal/analogio/AnalogOut.c
|
||||||
msgid "AnalogOut functionality not supported"
|
msgid "AnalogOut functionality not supported"
|
||||||
msgstr "Bù zhīchí AnalogOut gōngnéng"
|
msgstr "Bù zhīchí AnalogOut gōngnéng"
|
||||||
@ -329,6 +333,11 @@ msgstr "Liàngdù bìxū jiè yú 0 dào 255 zhī jiān"
|
|||||||
msgid "Brightness not adjustable"
|
msgid "Brightness not adjustable"
|
||||||
msgstr "Liàngdù wúfǎ tiáozhěng"
|
msgstr "Liàngdù wúfǎ tiáozhěng"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/UUID.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Buffer + offset too small %d %d %d"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-module/usb_hid/Device.c
|
#: shared-module/usb_hid/Device.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Buffer incorrect size. Should be %d bytes."
|
msgid "Buffer incorrect size. Should be %d bytes."
|
||||||
@ -459,6 +468,12 @@ msgstr "Mìnglìng bìxū wèi 0-255"
|
|||||||
msgid "Command must be an int between 0 and 255"
|
msgid "Command must be an int between 0 and 255"
|
||||||
msgstr "Mìnglìng bìxū shì 0 dào 255 zhī jiān de int"
|
msgstr "Mìnglìng bìxū shì 0 dào 255 zhī jiān de int"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Connection.c
|
||||||
|
msgid ""
|
||||||
|
"Connection has been disconnected and can no longer be used. Create a new "
|
||||||
|
"connection."
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: py/persistentcode.c
|
#: py/persistentcode.c
|
||||||
msgid "Corrupt .mpy file"
|
msgid "Corrupt .mpy file"
|
||||||
msgstr "Fǔbài de .mpy wénjiàn"
|
msgstr "Fǔbài de .mpy wénjiàn"
|
||||||
@ -501,7 +516,7 @@ msgstr "Shùjù 0 de yǐn jiǎo bìxū shì zì jié duìqí"
|
|||||||
msgid "Data chunk must follow fmt chunk"
|
msgid "Data chunk must follow fmt chunk"
|
||||||
msgstr "Shùjù kuài bìxū zūnxún fmt qū kuài"
|
msgstr "Shùjù kuài bìxū zūnxún fmt qū kuài"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Data too large for advertisement packet"
|
msgid "Data too large for advertisement packet"
|
||||||
msgstr "Guǎnggào bāo de shùjù tài dà"
|
msgstr "Guǎnggào bāo de shùjù tài dà"
|
||||||
|
|
||||||
@ -547,10 +562,6 @@ msgstr "Yùqí %q"
|
|||||||
msgid "Expected a Characteristic"
|
msgid "Expected a Characteristic"
|
||||||
msgstr "Yùqí de tèdiǎn"
|
msgstr "Yùqí de tèdiǎn"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Service.c
|
|
||||||
msgid "Expected a Peripheral"
|
|
||||||
msgstr "Qídài yīgè wàiwéi shèbèi"
|
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Characteristic.c
|
#: shared-bindings/_bleio/Characteristic.c
|
||||||
msgid "Expected a Service"
|
msgid "Expected a Service"
|
||||||
msgstr "Yùqí fúwù"
|
msgstr "Yùqí fúwù"
|
||||||
@ -560,7 +571,7 @@ msgstr "Yùqí fúwù"
|
|||||||
msgid "Expected a UUID"
|
msgid "Expected a UUID"
|
||||||
msgstr "Yùqí UUID"
|
msgstr "Yùqí UUID"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Central.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "Expected an Address"
|
msgid "Expected an Address"
|
||||||
msgstr "Qídài yīgè dìzhǐ"
|
msgstr "Qídài yīgè dìzhǐ"
|
||||||
|
|
||||||
@ -569,6 +580,11 @@ msgstr "Qídài yīgè dìzhǐ"
|
|||||||
msgid "Expected tuple of length %d, got %d"
|
msgid "Expected tuple of length %d, got %d"
|
||||||
msgstr "Qīwàng de chángdù wèi %d de yuán zǔ, dédào %d"
|
msgstr "Qīwàng de chángdù wèi %d de yuán zǔ, dédào %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
|
#, c-format
|
||||||
|
msgid "Failed initiate attribute read, err 0x%04x"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: shared-bindings/ps2io/Ps2.c
|
#: shared-bindings/ps2io/Ps2.c
|
||||||
msgid "Failed sending command."
|
msgid "Failed sending command."
|
||||||
msgstr "Fāsòng mìnglìng shībài."
|
msgstr "Fāsòng mìnglìng shībài."
|
||||||
@ -579,20 +595,14 @@ msgid "Failed to acquire mutex, err 0x%04x"
|
|||||||
msgstr "Wúfǎ huòdé mutex, err 0x%04x"
|
msgstr "Wúfǎ huòdé mutex, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Service.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to add characteristic, NRF_ERROR_%q"
|
||||||
msgid "Failed to add characteristic, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Tiānjiā tèxìng shībài, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to add descriptor, err 0x%04x"
|
msgid "Failed to add descriptor, err 0x%04x"
|
||||||
msgstr "Wúfǎ tiānjiā miáoshù fú, err 0x%04x"
|
msgstr "Wúfǎ tiānjiā miáoshù fú, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Failed to add service, err 0x%04x"
|
|
||||||
msgstr "Tiānjiā fúwù shībài, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
#: ports/atmel-samd/common-hal/busio/UART.c ports/nrf/common-hal/busio/UART.c
|
||||||
msgid "Failed to allocate RX buffer"
|
msgid "Failed to allocate RX buffer"
|
||||||
msgstr "Fēnpèi RX huǎnchōng shībài"
|
msgstr "Fēnpèi RX huǎnchōng shībài"
|
||||||
@ -604,24 +614,22 @@ msgid "Failed to allocate RX buffer of %d bytes"
|
|||||||
msgstr "Fēnpèi RX huǎnchōng qū%d zì jié shībài"
|
msgstr "Fēnpèi RX huǎnchōng qū%d zì jié shībài"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to change softdevice state"
|
msgid "Failed to change softdevice state, NRF_ERROR_%q"
|
||||||
msgstr "Gēnggǎi ruǎn shèbèi zhuàngtài shībài"
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to connect: internal error"
|
||||||
msgid "Failed to configure advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Wúfǎ pèizhì guǎnggào, cuòwù 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
msgid "Failed to connect: timeout"
|
msgid "Failed to connect: timeout"
|
||||||
msgstr "Liánjiē shībài: Chāoshí"
|
msgstr "Liánjiē shībài: Chāoshí"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Service.c
|
||||||
#, c-format
|
msgid "Failed to create service, NRF_ERROR_%q"
|
||||||
msgid "Failed to continue scanning, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Jìxù sǎomiáo shībài, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to discover services"
|
msgid "Failed to discover services"
|
||||||
msgstr "Fāxiàn fúwù shībài"
|
msgstr "Fāxiàn fúwù shībài"
|
||||||
|
|
||||||
@ -638,7 +646,7 @@ msgstr "Wúfǎ huòdé ruǎnjiàn shèbèi zhuàngtài"
|
|||||||
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
msgid "Failed to notify or indicate attribute value, err 0x%04x"
|
||||||
msgstr "Wúfǎ tōngzhī huò xiǎnshì shǔxìng zhí, err 0x%04x"
|
msgstr "Wúfǎ tōngzhī huò xiǎnshì shǔxìng zhí, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "Failed to pair"
|
msgid "Failed to pair"
|
||||||
msgstr "Pèiduì shībài"
|
msgstr "Pèiduì shībài"
|
||||||
|
|
||||||
@ -647,8 +655,7 @@ msgstr "Pèiduì shībài"
|
|||||||
msgid "Failed to read CCCD value, err 0x%04x"
|
msgid "Failed to read CCCD value, err 0x%04x"
|
||||||
msgstr "Dòu qǔ CCCD zhí, err 0x%04x shībài"
|
msgstr "Dòu qǔ CCCD zhí, err 0x%04x shībài"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: ports/nrf/common-hal/_bleio/Descriptor.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to read attribute value, err 0x%04x"
|
msgid "Failed to read attribute value, err 0x%04x"
|
||||||
msgstr "Dòu qǔ shǔxìng zhí shībài, err 0x%04x"
|
msgstr "Dòu qǔ shǔxìng zhí shībài, err 0x%04x"
|
||||||
@ -668,35 +675,27 @@ msgstr "Wúfǎ zhùcè màizhǔ tèdìng de UUID, err 0x%04x"
|
|||||||
msgid "Failed to release mutex, err 0x%04x"
|
msgid "Failed to release mutex, err 0x%04x"
|
||||||
msgstr "Wúfǎ shìfàng mutex, err 0x%04x"
|
msgstr "Wúfǎ shìfàng mutex, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to start advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to set device name, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Wúfǎ shèzhì shèbèi míngchēng, cuòwù 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
|
||||||
msgid "Failed to start advertising, err 0x%04x"
|
|
||||||
msgstr "Qǐdòng guǎnggào shībài, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Central.c
|
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start connecting, error 0x%04x"
|
msgid "Failed to start connecting, error 0x%04x"
|
||||||
msgstr "Wúfǎ kāishǐ liánjiē, cuòwù 0x%04x"
|
msgstr "Wúfǎ kāishǐ liánjiē, cuòwù 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
#, c-format
|
msgid "Failed to start pairing, NRF_ERROR_%q"
|
||||||
msgid "Failed to start pairing, error 0x%04x"
|
msgstr ""
|
||||||
msgstr "Wúfǎ kāishǐ pèiduì, cuòwù 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Scanner.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "Failed to start scanning, err 0x%04x"
|
msgid "Failed to start scanning, err 0x%04x"
|
||||||
msgstr "Qǐdòng sǎomiáo shībài, err 0x%04x"
|
msgstr "Qǐdòng sǎomiáo shībài, err 0x%04x"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Peripheral.c
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
#, c-format
|
msgid "Failed to stop advertising, NRF_ERROR_%q"
|
||||||
msgid "Failed to stop advertising, err 0x%04x"
|
msgstr ""
|
||||||
msgstr "Wúfǎ tíngzhǐ guǎnggào, err 0x%04x"
|
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
#: ports/nrf/common-hal/_bleio/Characteristic.c
|
||||||
#, c-format
|
#, c-format
|
||||||
@ -999,9 +998,8 @@ 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ù"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c shared-bindings/_bleio/Central.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
#: shared-bindings/_bleio/CharacteristicBuffer.c
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "Not connected"
|
msgid "Not connected"
|
||||||
msgstr "Wèi liánjiē"
|
msgstr "Wèi liánjiē"
|
||||||
|
|
||||||
@ -1079,6 +1077,10 @@ msgstr "Zài wénjiàn xìtǒng shàng tiānjiā rènhé mókuài\n"
|
|||||||
msgid "Pop from an empty Ps2 buffer"
|
msgid "Pop from an empty Ps2 buffer"
|
||||||
msgstr "Cóng kōng de Ps2 huǎnchōng qū dànchū"
|
msgstr "Cóng kōng de Ps2 huǎnchōng qū dànchū"
|
||||||
|
|
||||||
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
|
msgid "Prefix buffer must be on the heap"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: main.c
|
#: main.c
|
||||||
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."
|
||||||
@ -1145,6 +1147,10 @@ msgstr "Cǎiyàng lǜ bìxū wèi zhèng shù"
|
|||||||
msgid "Sample rate too high. It must be less than %d"
|
msgid "Sample rate too high. It must be less than %d"
|
||||||
msgstr "Cǎiyàng lǜ tài gāo. Tā bìxū xiǎoyú %d"
|
msgstr "Cǎiyàng lǜ tài gāo. Tā bìxū xiǎoyú %d"
|
||||||
|
|
||||||
|
#: ports/nrf/common-hal/_bleio/Adapter.c
|
||||||
|
msgid "Scan already in progess. Stop with stop_scan."
|
||||||
|
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 "Serializer in use"
|
msgid "Serializer in use"
|
||||||
@ -1159,11 +1165,6 @@ msgstr "Qiēpiàn hé zhí bùtóng chángdù."
|
|||||||
msgid "Slices not supported"
|
msgid "Slices not supported"
|
||||||
msgstr "Qiēpiàn bù shòu zhīchí"
|
msgstr "Qiēpiàn bù shòu zhīchí"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/Adapter.c
|
|
||||||
#, c-format
|
|
||||||
msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
|
||||||
msgstr "Ruǎn shèbèi wéihù, id: 0X%08lX, pc: 0X%08lX"
|
|
||||||
|
|
||||||
#: extmod/modure.c
|
#: extmod/modure.c
|
||||||
msgid "Splitting with sub-captures"
|
msgid "Splitting with sub-captures"
|
||||||
msgstr "Yǔ zi bǔhuò fēnliè"
|
msgstr "Yǔ zi bǔhuò fēnliè"
|
||||||
@ -1986,7 +1987,7 @@ msgstr "zhěngshù() cānshù 2 bìxū > = 2 qiě <= 36"
|
|||||||
msgid "integer required"
|
msgid "integer required"
|
||||||
msgstr "xūyào zhěngshù"
|
msgstr "xūyào zhěngshù"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
#, c-format
|
#, c-format
|
||||||
msgid "interval must be in range %s-%s"
|
msgid "interval must be in range %s-%s"
|
||||||
msgstr "Jiàngé bìxū zài %s-%s fànwéi nèi"
|
msgstr "Jiàngé bìxū zài %s-%s fànwéi nèi"
|
||||||
@ -2164,10 +2165,6 @@ msgstr "bìxū shǐyòng guānjiàn cí cānshù"
|
|||||||
msgid "name '%q' is not defined"
|
msgid "name '%q' is not defined"
|
||||||
msgstr "míngchēng '%q' wèi dìngyì"
|
msgstr "míngchēng '%q' wèi dìngyì"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Peripheral.c
|
|
||||||
msgid "name must be a string"
|
|
||||||
msgstr "míngchēng bìxū shì yīgè zìfú chuàn"
|
|
||||||
|
|
||||||
#: py/runtime.c
|
#: py/runtime.c
|
||||||
msgid "name not defined"
|
msgid "name not defined"
|
||||||
msgstr "míngchēng wèi dìngyì"
|
msgstr "míngchēng wèi dìngyì"
|
||||||
@ -2219,7 +2216,7 @@ msgstr "Méiyǒu kěyòng de fùwèi yǐn jiǎo"
|
|||||||
msgid "no such attribute"
|
msgid "no such attribute"
|
||||||
msgstr "méiyǒu cǐ shǔxìng"
|
msgstr "méiyǒu cǐ shǔxìng"
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/Connection.c
|
||||||
msgid "non-UUID found in service_uuids_whitelist"
|
msgid "non-UUID found in service_uuids_whitelist"
|
||||||
msgstr "Zài service_uuids bái míngdān zhōng zhǎodào fēi UUID"
|
msgstr "Zài service_uuids bái míngdān zhōng zhǎodào fēi UUID"
|
||||||
|
|
||||||
@ -2703,7 +2700,7 @@ msgstr "Zhí bìxū fúhé %d zì jié"
|
|||||||
msgid "value_count must be > 0"
|
msgid "value_count must be > 0"
|
||||||
msgstr "zhí jìshù bìxū wèi > 0"
|
msgstr "zhí jìshù bìxū wèi > 0"
|
||||||
|
|
||||||
#: shared-bindings/_bleio/Scanner.c
|
#: shared-bindings/_bleio/Adapter.c
|
||||||
msgid "window must be <= interval"
|
msgid "window must be <= interval"
|
||||||
msgstr "Chuāngkǒu bìxū shì <= jiàngé"
|
msgstr "Chuāngkǒu bìxū shì <= jiàngé"
|
||||||
|
|
||||||
@ -2762,33 +2759,71 @@ msgstr "líng bù"
|
|||||||
#~ msgid "Data too large for the advertisement packet"
|
#~ msgid "Data too large for the advertisement packet"
|
||||||
#~ msgstr "Guǎnggào bāo de shùjù tài dà"
|
#~ msgstr "Guǎnggào bāo de shùjù tài dà"
|
||||||
|
|
||||||
|
#~ msgid "Expected a Peripheral"
|
||||||
|
#~ msgstr "Qídài yīgè wàiwéi shèbèi"
|
||||||
|
|
||||||
#~ msgid "Failed to acquire mutex"
|
#~ msgid "Failed to acquire mutex"
|
||||||
#~ msgstr "Wúfǎ huòdé mutex"
|
#~ msgstr "Wúfǎ huòdé mutex"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add characteristic, err 0x%04x"
|
||||||
|
#~ msgstr "Tiānjiā tèxìng shībài, err 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to add service"
|
#~ msgid "Failed to add service"
|
||||||
#~ msgstr "Tiānjiā fúwù shībài"
|
#~ msgstr "Tiānjiā fúwù shībài"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to add service, err 0x%04x"
|
||||||
|
#~ msgstr "Tiānjiā fúwù shībài, err 0x%04x"
|
||||||
|
|
||||||
|
#~ msgid "Failed to change softdevice state"
|
||||||
|
#~ msgstr "Gēnggǎi ruǎn shèbèi zhuàngtài shībài"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to configure advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Wúfǎ pèizhì guǎnggào, cuòwù 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to connect:"
|
#~ msgid "Failed to connect:"
|
||||||
#~ msgstr "Liánjiē shībài:"
|
#~ msgstr "Liánjiē shībài:"
|
||||||
|
|
||||||
#~ msgid "Failed to continue scanning"
|
#~ msgid "Failed to continue scanning"
|
||||||
#~ msgstr "Jìxù sǎomiáo shībài"
|
#~ msgstr "Jìxù sǎomiáo shībài"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to continue scanning, err 0x%04x"
|
||||||
|
#~ msgstr "Jìxù sǎomiáo shībài, err 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to create mutex"
|
#~ msgid "Failed to create mutex"
|
||||||
#~ msgstr "Wúfǎ chuàngjiàn hù chì suǒ"
|
#~ msgstr "Wúfǎ chuàngjiàn hù chì suǒ"
|
||||||
|
|
||||||
#~ msgid "Failed to release mutex"
|
#~ msgid "Failed to release mutex"
|
||||||
#~ msgstr "Wúfǎ shìfàng mutex"
|
#~ msgstr "Wúfǎ shìfàng mutex"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to set device name, err 0x%04x"
|
||||||
|
#~ msgstr "Wúfǎ shèzhì shèbèi míngchēng, cuòwù 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to start advertising"
|
#~ msgid "Failed to start advertising"
|
||||||
#~ msgstr "Qǐdòng guǎnggào shībài"
|
#~ msgstr "Qǐdòng guǎnggào shībài"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Qǐdòng guǎnggào shībài, err 0x%04x"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to start pairing, error 0x%04x"
|
||||||
|
#~ msgstr "Wúfǎ kāishǐ pèiduì, cuòwù 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Failed to start scanning"
|
#~ msgid "Failed to start scanning"
|
||||||
#~ msgstr "Qǐdòng sǎomiáo shībài"
|
#~ msgstr "Qǐdòng sǎomiáo shībài"
|
||||||
|
|
||||||
#~ msgid "Failed to stop advertising"
|
#~ msgid "Failed to stop advertising"
|
||||||
#~ msgstr "Wúfǎ tíngzhǐ guǎnggào"
|
#~ msgstr "Wúfǎ tíngzhǐ guǎnggào"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Failed to stop advertising, err 0x%04x"
|
||||||
|
#~ msgstr "Wúfǎ tíngzhǐ guǎnggào, err 0x%04x"
|
||||||
|
|
||||||
#~ msgid "Invalid bit clock pin"
|
#~ msgid "Invalid bit clock pin"
|
||||||
#~ msgstr "Wúxiào de wèi shízhōng yǐn jiǎo"
|
#~ msgstr "Wúxiào de wèi shízhōng yǐn jiǎo"
|
||||||
|
|
||||||
@ -2819,6 +2854,10 @@ msgstr "líng bù"
|
|||||||
#~ msgstr ""
|
#~ msgstr ""
|
||||||
#~ "Jǐn zhīchí dān sè, suǒyǐn 8bpp hé 16bpp huò gèng dà de BMP: %d bpp tígōng"
|
#~ "Jǐn zhīchí dān sè, suǒyǐn 8bpp hé 16bpp huò gèng dà de BMP: %d bpp tígōng"
|
||||||
|
|
||||||
|
#, c-format
|
||||||
|
#~ msgid "Soft device assert, id: 0x%08lX, pc: 0x%08lX"
|
||||||
|
#~ msgstr "Ruǎn shèbèi wéihù, id: 0X%08lX, pc: 0X%08lX"
|
||||||
|
|
||||||
#~ msgid "Tile indices must be 0 - 255"
|
#~ msgid "Tile indices must be 0 - 255"
|
||||||
#~ msgstr "Píng pū zhǐshù bìxū wèi 0 - 255"
|
#~ msgstr "Píng pū zhǐshù bìxū wèi 0 - 255"
|
||||||
|
|
||||||
@ -2840,6 +2879,9 @@ msgstr "líng bù"
|
|||||||
#~ msgid "interval not in range 0.0020 to 10.24"
|
#~ msgid "interval not in range 0.0020 to 10.24"
|
||||||
#~ msgstr "jùlí 0.0020 Zhì 10.24 Zhī jiān de jiàngé shíjiān"
|
#~ msgstr "jùlí 0.0020 Zhì 10.24 Zhī jiān de jiàngé shíjiān"
|
||||||
|
|
||||||
|
#~ msgid "name must be a string"
|
||||||
|
#~ msgstr "míngchēng bìxū shì yīgè zìfú chuàn"
|
||||||
|
|
||||||
#~ msgid "row must be packed and word aligned"
|
#~ msgid "row must be packed and word aligned"
|
||||||
#~ msgstr "xíng bìxū dǎbāo bìngqiě zì duìqí"
|
#~ msgstr "xíng bìxū dǎbāo bìngqiě zì duìqí"
|
||||||
|
|
||||||
|
15
main.c
15
main.c
@ -69,6 +69,11 @@
|
|||||||
#include "shared-module/board/__init__.h"
|
#include "shared-module/board/__init__.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CIRCUITPY_BLEIO
|
||||||
|
#include "shared-bindings/_bleio/__init__.h"
|
||||||
|
#include "supervisor/shared/bluetooth.h"
|
||||||
|
#endif
|
||||||
|
|
||||||
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
|
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
|
||||||
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
|
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
|
||||||
if (lex == NULL) {
|
if (lex == NULL) {
|
||||||
@ -439,6 +444,10 @@ int __attribute__((used)) main(void) {
|
|||||||
// Start serial and HID after giving boot.py a chance to tweak behavior.
|
// Start serial and HID after giving boot.py a chance to tweak behavior.
|
||||||
serial_init();
|
serial_init();
|
||||||
|
|
||||||
|
#if CIRCUITPY_BLEIO
|
||||||
|
supervisor_start_bluetooth();
|
||||||
|
#endif
|
||||||
|
|
||||||
// Boot script is finished, so now go into REPL/main mode.
|
// Boot script is finished, so now go into REPL/main mode.
|
||||||
int exit_code = PYEXEC_FORCED_EXIT;
|
int exit_code = PYEXEC_FORCED_EXIT;
|
||||||
bool skip_repl = true;
|
bool skip_repl = true;
|
||||||
@ -475,9 +484,13 @@ void gc_collect(void) {
|
|||||||
displayio_gc_collect();
|
displayio_gc_collect();
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if CIRCUITPY_BLEIO
|
||||||
|
common_hal_bleio_gc_collect();
|
||||||
|
#endif
|
||||||
|
|
||||||
// This naively collects all object references from an approximate stack
|
// This naively collects all object references from an approximate stack
|
||||||
// range.
|
// range.
|
||||||
gc_collect_root((void**)sp, ((uint32_t)&_estack - sp) / sizeof(uint32_t));
|
gc_collect_root((void**)sp, ((uint32_t)port_stack_get_top() - sp) / sizeof(uint32_t));
|
||||||
gc_collect_end();
|
gc_collect_end();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -74,24 +74,21 @@ uint8_t display_init_sequence[] = {
|
|||||||
0x11, 0x1d, 0x23, 0x35, 0x41, 0x4b, 0x4b, 0x42, 0x3A,
|
0x11, 0x1d, 0x23, 0x35, 0x41, 0x4b, 0x4b, 0x42, 0x3A,
|
||||||
0x27, 0x1B, 0x08, 0x09, 0x03, 0x00, 0x01,
|
0x27, 0x1B, 0x08, 0x09, 0x03, 0x00, 0x01,
|
||||||
0x3a, 1, 0x55,
|
0x3a, 1, 0x55,
|
||||||
0x36, 1, 0x00,
|
0x36, 1, 0x60,
|
||||||
0x11, DELAY, 150/5, // Exit Sleep, then delay 150 ms
|
0x11, DELAY, 150/5, // Exit Sleep, then delay 150 ms
|
||||||
0x29, DELAY, 50/5
|
0x29, DELAY, 50/5
|
||||||
};
|
};
|
||||||
|
|
||||||
void board_init(void) {
|
void board_init(void) {
|
||||||
busio_spi_obj_t* spi = &displays[0].fourwire_bus.inline_bus;
|
displayio_parallelbus_obj_t* bus = &displays[0].parallel_bus;
|
||||||
common_hal_busio_spi_construct(spi, &pin_PA13, &pin_PA12, &pin_PA14);
|
bus->base.type = &displayio_parallelbus_type;
|
||||||
common_hal_busio_spi_never_reset(spi);
|
common_hal_displayio_parallelbus_construct(bus,
|
||||||
|
&pin_PA16, // Data0
|
||||||
displayio_fourwire_obj_t* bus = &displays[0].fourwire_bus;
|
&pin_PB05, // Command or data
|
||||||
bus->base.type = &displayio_fourwire_type;
|
&pin_PB06, // Chip select
|
||||||
common_hal_displayio_fourwire_construct(bus,
|
&pin_PB09, // Write
|
||||||
spi,
|
&pin_PB04, // Read
|
||||||
&pin_PB05, // TFT_DC Command or data
|
&pin_PA00); // Reset
|
||||||
&pin_PB06, // TFT_CS Chip select
|
|
||||||
&pin_PA00, // TFT_RST Reset
|
|
||||||
24000000);
|
|
||||||
|
|
||||||
displayio_display_obj_t* display = &displays[0].display;
|
displayio_display_obj_t* display = &displays[0].display;
|
||||||
display->base.type = &displayio_display_type;
|
display->base.type = &displayio_display_type;
|
||||||
@ -101,7 +98,7 @@ void board_init(void) {
|
|||||||
320, // Height
|
320, // Height
|
||||||
0, // column start
|
0, // column start
|
||||||
0, // row start
|
0, // row start
|
||||||
270, // rotation
|
0, // rotation
|
||||||
16, // Color depth
|
16, // Color depth
|
||||||
false, // grayscale
|
false, // grayscale
|
||||||
false, // pixels_in_byte_share_row (unused for depths > 8)
|
false, // pixels_in_byte_share_row (unused for depths > 8)
|
||||||
|
@ -3,7 +3,6 @@
|
|||||||
|
|
||||||
#define CIRCUITPY_MCU_FAMILY samd51
|
#define CIRCUITPY_MCU_FAMILY samd51
|
||||||
|
|
||||||
|
|
||||||
#define MICROPY_HW_LED_STATUS (&pin_PA27)
|
#define MICROPY_HW_LED_STATUS (&pin_PA27)
|
||||||
|
|
||||||
#define MICROPY_HW_NEOPIXEL (&pin_PB22)
|
#define MICROPY_HW_NEOPIXEL (&pin_PB22)
|
||||||
|
@ -80,15 +80,6 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
|||||||
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
||||||
|
|
||||||
// TFT control pins
|
|
||||||
{MP_OBJ_NEW_QSTR(MP_QSTR_TFT_LITE), MP_ROM_PTR(&pin_PB31)},
|
|
||||||
{MP_OBJ_NEW_QSTR(MP_QSTR_TFT_MOSI), MP_ROM_PTR(&pin_PA12)},
|
|
||||||
{MP_OBJ_NEW_QSTR(MP_QSTR_TFT_SCK), MP_ROM_PTR(&pin_PA13)},
|
|
||||||
{MP_OBJ_NEW_QSTR(MP_QSTR_TFT_MISO), MP_ROM_PTR(&pin_PA14)},
|
|
||||||
{MP_OBJ_NEW_QSTR(MP_QSTR_TFT_RST), MP_ROM_PTR(&pin_PA00)},
|
|
||||||
{MP_ROM_QSTR(MP_QSTR_TFT_CS), MP_ROM_PTR(&pin_PB06)},
|
|
||||||
{MP_ROM_QSTR(MP_QSTR_TFT_DC), MP_ROM_PTR(&pin_PB05)},
|
|
||||||
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display) },
|
{ MP_ROM_QSTR(MP_QSTR_DISPLAY), MP_ROM_PTR(&displays[0].display) },
|
||||||
};
|
};
|
||||||
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
||||||
|
@ -28,8 +28,7 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
|||||||
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PB23) },
|
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PB23) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_PB22) },
|
{ MP_ROM_QSTR(MP_QSTR_LED), MP_ROM_PTR(&pin_PB22) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PB02) },
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PB03) },
|
|
||||||
|
|
||||||
// GROVE on SERCOM0
|
// GROVE on SERCOM0
|
||||||
{ MP_ROM_QSTR(MP_QSTR_GROVE_SCL), MP_ROM_PTR(&pin_PA09) },
|
{ MP_ROM_QSTR(MP_QSTR_GROVE_SCL), MP_ROM_PTR(&pin_PA09) },
|
||||||
@ -50,8 +49,8 @@ STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
|||||||
// UART on SERCOM1 (Raspberry Pi)
|
// UART on SERCOM1 (Raspberry Pi)
|
||||||
{ MP_ROM_QSTR(MP_QSTR_TX1), MP_ROM_PTR(&pin_PA16) },
|
{ MP_ROM_QSTR(MP_QSTR_TX1), MP_ROM_PTR(&pin_PA16) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_RX1), MP_ROM_PTR(&pin_PA17) },
|
{ MP_ROM_QSTR(MP_QSTR_RX1), MP_ROM_PTR(&pin_PA17) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PI_RX), MP_ROM_PTR(&pin_PA16) },
|
{ MP_ROM_QSTR(MP_QSTR_PI_TX), MP_ROM_PTR(&pin_PA16) },
|
||||||
{ MP_ROM_QSTR(MP_QSTR_PI_TX), MP_ROM_PTR(&pin_PA17) },
|
{ MP_ROM_QSTR(MP_QSTR_PI_RX), MP_ROM_PTR(&pin_PA17) },
|
||||||
|
|
||||||
// I2C on SERCOM1 (External Connector)
|
// I2C on SERCOM1 (External Connector)
|
||||||
{ MP_ROM_QSTR(MP_QSTR_SDA1), MP_ROM_PTR(&pin_PA00) },
|
{ MP_ROM_QSTR(MP_QSTR_SDA1), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014 Paul Sokolovsky
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -23,8 +23,16 @@
|
|||||||
* 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.
|
||||||
*/
|
*/
|
||||||
#ifndef MICROPY_INCLUDED_CC3200_MODS_MODUBINASCII_H
|
|
||||||
#define MICROPY_INCLUDED_CC3200_MODS_MODUBINASCII_H
|
|
||||||
|
|
||||||
|
#include "boards/board.h"
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_CC3200_MODS_MODUBINASCII_H
|
void board_init(void)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
bool board_requests_safe_mode(void) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset_board(void) {
|
||||||
|
}
|
@ -0,0 +1,38 @@
|
|||||||
|
#define MICROPY_HW_BOARD_NAME "SparkFun Qwiic Micro"
|
||||||
|
#define MICROPY_HW_MCU_NAME "samd21e18"
|
||||||
|
|
||||||
|
#define MICROPY_PORT_A ( 0 )
|
||||||
|
#define MICROPY_PORT_B ( 0 )
|
||||||
|
#define MICROPY_PORT_C ( 0 )
|
||||||
|
|
||||||
|
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
|
||||||
|
|
||||||
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - 0x010000 - CIRCUITPY_INTERNAL_NVM_SIZE)
|
||||||
|
|
||||||
|
#define CALIBRATE_CRYSTALLESS 1
|
||||||
|
#define BOARD_HAS_CRYSTAL 0
|
||||||
|
|
||||||
|
//I2C and Qwiic Connector
|
||||||
|
#define DEFAULT_I2C_BUS_SCL (&pin_PA09)
|
||||||
|
#define DEFAULT_I2C_BUS_SDA (&pin_PA08)
|
||||||
|
|
||||||
|
//SPI
|
||||||
|
#define DEFAULT_SPI_BUS_SCK (&pin_PA07)
|
||||||
|
#define DEFAULT_SPI_BUS_MOSI (&pin_PA06)
|
||||||
|
#define DEFAULT_SPI_BUS_MISO (&pin_PA05)
|
||||||
|
|
||||||
|
//UART
|
||||||
|
#define DEFAULT_UART_BUS_RX (&pin_PA23)
|
||||||
|
#define DEFAULT_UART_BUS_TX (&pin_PA22)
|
||||||
|
|
||||||
|
// USB is always used internally so skip the pin objects for it.
|
||||||
|
#define IGNORE_PIN_PA24 1
|
||||||
|
#define IGNORE_PIN_PA25 1
|
||||||
|
|
||||||
|
// Unused
|
||||||
|
#define IGNORE_PIN_PA03 1
|
||||||
|
#define IGNORE_PIN_PA11 1
|
||||||
|
#define IGNORE_PIN_PA14 1
|
||||||
|
#define IGNORE_PIN_PA15 1
|
||||||
|
#define IGNORE_PIN_PA27 1
|
||||||
|
#define IGNORE_PIN_PA28 1
|
@ -0,0 +1,14 @@
|
|||||||
|
LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld
|
||||||
|
USB_VID = 0x1B4F
|
||||||
|
USB_PID = 0x8D24
|
||||||
|
USB_PRODUCT = "SparkFun Qwiic Micro"
|
||||||
|
USB_MANUFACTURER = "SparkFun Electronics"
|
||||||
|
|
||||||
|
CHIP_VARIANT = SAMD21E18A
|
||||||
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
|
INTERNAL_FLASH_FILESYSTEM = 1
|
||||||
|
LONGINT_IMPL = NONE
|
||||||
|
|
||||||
|
CIRCUITPY_SMALL_BUILD = 1
|
||||||
|
SUPEROPT_GC = 0
|
42
ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/pins.c
Normal file
42
ports/atmel-samd/boards/sparkfun_qwiic_micro_no_flash/pins.c
Normal file
@ -0,0 +1,42 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A5), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PA08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D3), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PA01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_PA22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D17), MP_ROM_PTR(&pin_PA23) },
|
||||||
|
|
||||||
|
// External SPI
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||||
|
|
||||||
|
// UART
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PA22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PA23) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
||||||
|
|
||||||
|
// I2C and Qwiic Connector
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) }
|
||||||
|
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
@ -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) {
|
||||||
|
}
|
@ -0,0 +1,46 @@
|
|||||||
|
#define MICROPY_HW_BOARD_NAME "SparkFun Qwiic Micro"
|
||||||
|
#define MICROPY_HW_MCU_NAME "samd21e18"
|
||||||
|
|
||||||
|
// Clock rates are off: Salae reads 12MHz which is the limit even though we set it to the safer 8MHz.
|
||||||
|
#define SPI_FLASH_BAUDRATE (8000000)
|
||||||
|
|
||||||
|
#define SPI_FLASH_MOSI_PIN &pin_PA16
|
||||||
|
#define SPI_FLASH_MISO_PIN &pin_PA18
|
||||||
|
#define SPI_FLASH_SCK_PIN &pin_PA17
|
||||||
|
#define SPI_FLASH_CS_PIN &pin_PA19
|
||||||
|
|
||||||
|
#define MICROPY_PORT_A ( 0 )
|
||||||
|
#define MICROPY_PORT_B ( 0 )
|
||||||
|
#define MICROPY_PORT_C ( 0 )
|
||||||
|
|
||||||
|
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
|
||||||
|
|
||||||
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - CIRCUITPY_INTERNAL_NVM_SIZE)
|
||||||
|
|
||||||
|
#define CALIBRATE_CRYSTALLESS 1
|
||||||
|
#define BOARD_HAS_CRYSTAL 0
|
||||||
|
|
||||||
|
//I2C and Qwiic Connector
|
||||||
|
#define DEFAULT_I2C_BUS_SCL (&pin_PA09)
|
||||||
|
#define DEFAULT_I2C_BUS_SDA (&pin_PA08)
|
||||||
|
|
||||||
|
//SPI
|
||||||
|
#define DEFAULT_SPI_BUS_SCK (&pin_PA07)
|
||||||
|
#define DEFAULT_SPI_BUS_MOSI (&pin_PA06)
|
||||||
|
#define DEFAULT_SPI_BUS_MISO (&pin_PA05)
|
||||||
|
|
||||||
|
//UART
|
||||||
|
#define DEFAULT_UART_BUS_RX (&pin_PA23)
|
||||||
|
#define DEFAULT_UART_BUS_TX (&pin_PA22)
|
||||||
|
|
||||||
|
// USB is always used internally so skip the pin objects for it.
|
||||||
|
#define IGNORE_PIN_PA24 1
|
||||||
|
#define IGNORE_PIN_PA25 1
|
||||||
|
|
||||||
|
// Unused
|
||||||
|
#define IGNORE_PIN_PA03 1
|
||||||
|
#define IGNORE_PIN_PA11 1
|
||||||
|
#define IGNORE_PIN_PA14 1
|
||||||
|
#define IGNORE_PIN_PA15 1
|
||||||
|
#define IGNORE_PIN_PA27 1
|
||||||
|
#define IGNORE_PIN_PA28 1
|
@ -0,0 +1,16 @@
|
|||||||
|
LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld
|
||||||
|
USB_VID = 0x1B4F
|
||||||
|
USB_PID = 0x8D24
|
||||||
|
USB_PRODUCT = "SparkFun Qwiic Micro"
|
||||||
|
USB_MANUFACTURER = "SparkFun Electronics"
|
||||||
|
|
||||||
|
CHIP_VARIANT = SAMD21E18A
|
||||||
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
|
EXTERNAL_FLASH_DEVICES = "W25Q32FV"
|
||||||
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
CIRCUITPY_SMALL_BUILD = 1
|
||||||
|
SUPEROPT_GC = 0
|
@ -0,0 +1,42 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A0), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A1), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A2), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A3), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A4), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_A5), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D0), MP_ROM_PTR(&pin_PA08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D1), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D2), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D3), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D4), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D5), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D6), MP_ROM_PTR(&pin_PA01) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D7), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D8), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D13), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D16), MP_ROM_PTR(&pin_PA22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_D17), MP_ROM_PTR(&pin_PA23) },
|
||||||
|
|
||||||
|
// External SPI
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||||
|
|
||||||
|
// UART
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_TX), MP_ROM_PTR(&pin_PA22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_RX), MP_ROM_PTR(&pin_PA23) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_UART), MP_ROM_PTR(&board_uart_obj) },
|
||||||
|
|
||||||
|
// I2C and Qwiic Connector
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA08) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) }
|
||||||
|
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
37
ports/atmel-samd/boards/stringcar_m0_express/board.c
Normal file
37
ports/atmel-samd/boards/stringcar_m0_express/board.c
Normal file
@ -0,0 +1,37 @@
|
|||||||
|
/*
|
||||||
|
* 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) {
|
||||||
|
}
|
50
ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h
Normal file
50
ports/atmel-samd/boards/stringcar_m0_express/mpconfigboard.h
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
#define MICROPY_HW_BOARD_NAME "Cedar Grove StringCar M0 Express"
|
||||||
|
#define MICROPY_HW_MCU_NAME "samd21e18"
|
||||||
|
|
||||||
|
#define MICROPY_HW_LED_STATUS (&pin_PA10)
|
||||||
|
|
||||||
|
#define MICROPY_HW_APA102_MOSI (&pin_PA00)
|
||||||
|
#define MICROPY_HW_APA102_SCK (&pin_PA01)
|
||||||
|
|
||||||
|
#define SPI_FLASH_MOSI_PIN &pin_PA16
|
||||||
|
#define SPI_FLASH_MISO_PIN &pin_PA19
|
||||||
|
#define SPI_FLASH_SCK_PIN &pin_PA17
|
||||||
|
#define SPI_FLASH_CS_PIN &pin_PA11
|
||||||
|
|
||||||
|
// These are pins not to reset.
|
||||||
|
#define MICROPY_PORT_A (PORT_PA00 | PORT_PA01)
|
||||||
|
#define MICROPY_PORT_B (0)
|
||||||
|
#define MICROPY_PORT_C (0)
|
||||||
|
|
||||||
|
// If you change this, then make sure to update the linker scripts as well to
|
||||||
|
// make sure you don't overwrite code.
|
||||||
|
#define CIRCUITPY_INTERNAL_NVM_SIZE 256
|
||||||
|
|
||||||
|
#define BOARD_FLASH_SIZE (0x00040000 - 0x2000 - CIRCUITPY_INTERNAL_NVM_SIZE)
|
||||||
|
|
||||||
|
#define DEFAULT_I2C_BUS_SCL (&pin_PA05)
|
||||||
|
#define DEFAULT_I2C_BUS_SDA (&pin_PA04)
|
||||||
|
|
||||||
|
// #define DEFAULT_SPI_BUS_SCK (&pin_PB11)
|
||||||
|
// #define DEFAULT_SPI_BUS_MOSI (&pin_PB10)
|
||||||
|
// #define DEFAULT_SPI_BUS_MISO (&pin_PA12)
|
||||||
|
|
||||||
|
// #define DEFAULT_UART_BUS_RX (&pin_PA11)
|
||||||
|
// #define DEFAULT_UART_BUS_TX (&pin_PA10)
|
||||||
|
|
||||||
|
// USB is always used internally so skip the pin objects for it.
|
||||||
|
#define IGNORE_PIN_PA24 1
|
||||||
|
#define IGNORE_PIN_PA25 1
|
||||||
|
|
||||||
|
// Not connected
|
||||||
|
#define IGNORE_PIN_PA03 1
|
||||||
|
#define IGNORE_PIN_PA14 1
|
||||||
|
#define IGNORE_PIN_PA15 1
|
||||||
|
#define IGNORE_PIN_PA18 1
|
||||||
|
#define IGNORE_PIN_PA22 1
|
||||||
|
#define IGNORE_PIN_PA23 1
|
||||||
|
#define IGNORE_PIN_PA27 1
|
||||||
|
#define IGNORE_PIN_PA28 1
|
||||||
|
#define IGNORE_PIN_PA30 1
|
||||||
|
#define IGNORE_PIN_PA31 1
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
LD_FILE = boards/samd21x18-bootloader-external-flash-crystalless.ld
|
||||||
|
USB_VID = 0x239A
|
||||||
|
USB_PID = 0x8060
|
||||||
|
USB_PRODUCT = "StringCar M0 Express"
|
||||||
|
USB_MANUFACTURER = "Cedar Grove Studios"
|
||||||
|
|
||||||
|
CHIP_VARIANT = SAMD21E18A
|
||||||
|
CHIP_FAMILY = samd21
|
||||||
|
|
||||||
|
SPI_FLASH_FILESYSTEM = 1
|
||||||
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
|
EXTERNAL_FLASH_DEVICES = AT25SF161
|
||||||
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
CIRCUITPY_BITBANG_APA102 = 1
|
||||||
|
|
||||||
|
CIRCUITPY_BITBANGIO = 0
|
||||||
|
CIRCUITPY_GAMEPAD = 0
|
||||||
|
CIRCUITPY_I2CSLAVE = 0
|
||||||
|
CIRCUITPY_RTC = 0
|
||||||
|
|
||||||
|
CFLAGS_INLINE_LIMIT = 60
|
||||||
|
SUPEROPT_GC = 0
|
||||||
|
|
23
ports/atmel-samd/boards/stringcar_m0_express/pins.c
Normal file
23
ports/atmel-samd/boards/stringcar_m0_express/pins.c
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_PIEZO), MP_ROM_PTR(&pin_PA08) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_VOLTAGE_MONITOR), MP_ROM_PTR(&pin_PA02) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SENSOR_IN), MP_ROM_PTR(&pin_PA09) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOTOR_OUT_1), MP_ROM_PTR(&pin_PA06) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOTOR_OUT_2), MP_ROM_PTR(&pin_PA07) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_LED_STATUS), MP_ROM_PTR(&pin_PA10) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCL), MP_ROM_PTR(&pin_PA05) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SDA), MP_ROM_PTR(&pin_PA04) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_DOTSTAR_DI), MP_ROM_PTR(&pin_PA00) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_DOTSTAR_CI), MP_ROM_PTR(&pin_PA01) },
|
||||||
|
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_I2C), MP_ROM_PTR(&board_i2c_obj) },
|
||||||
|
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
@ -3,7 +3,7 @@
|
|||||||
*
|
*
|
||||||
* The MIT License (MIT)
|
* The MIT License (MIT)
|
||||||
*
|
*
|
||||||
* Copyright (c) 2013, 2014 Damien P. George
|
* Copyright (c) 2017 Scott Shawcroft for Adafruit Industries
|
||||||
*
|
*
|
||||||
* 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
|
||||||
@ -23,11 +23,16 @@
|
|||||||
* 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.
|
||||||
*/
|
*/
|
||||||
#ifndef MICROPY_INCLUDED_STM32_DAC_H
|
|
||||||
#define MICROPY_INCLUDED_STM32_DAC_H
|
|
||||||
|
|
||||||
void dac_init(void);
|
#include "boards/board.h"
|
||||||
|
#include "mpconfigboard.h"
|
||||||
|
|
||||||
extern const mp_obj_type_t pyb_dac_type;
|
void board_init(void) {
|
||||||
|
}
|
||||||
|
|
||||||
#endif // MICROPY_INCLUDED_STM32_DAC_H
|
bool board_requests_safe_mode(void) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
void reset_board(void) {
|
||||||
|
}
|
33
ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h
Normal file
33
ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.h
Normal file
@ -0,0 +1,33 @@
|
|||||||
|
#define MICROPY_HW_BOARD_NAME "Winterbloom Sol"
|
||||||
|
#define MICROPY_HW_MCU_NAME "samd51j20"
|
||||||
|
|
||||||
|
#define CIRCUITPY_MCU_FAMILY samd51
|
||||||
|
|
||||||
|
#define MICROPY_HW_LED_STATUS (&pin_PA23)
|
||||||
|
#define MICROPY_HW_NEOPIXEL (&pin_PB03)
|
||||||
|
|
||||||
|
// These are pins not to reset.
|
||||||
|
// QSPI Data pins
|
||||||
|
#define MICROPY_PORT_A (PORT_PA08 | PORT_PA09 | PORT_PA10 | PORT_PA11)
|
||||||
|
// QSPI CS, QSPI SCK and NeoPixel pin
|
||||||
|
#define MICROPY_PORT_B (PORT_PB03 | PORT_PB10 | PORT_PB11)
|
||||||
|
#define MICROPY_PORT_C (0)
|
||||||
|
#define MICROPY_PORT_D (0)
|
||||||
|
|
||||||
|
#define AUTORESET_DELAY_MS 500
|
||||||
|
|
||||||
|
// If you change this, then make sure to update the linker scripts as well to
|
||||||
|
// make sure you don't overwrite code
|
||||||
|
#define CIRCUITPY_INTERNAL_NVM_SIZE 8192
|
||||||
|
|
||||||
|
#define BOARD_FLASH_SIZE (FLASH_SIZE - 0x4000 - CIRCUITPY_INTERNAL_NVM_SIZE)
|
||||||
|
|
||||||
|
#define BOARD_HAS_CRYSTAL 1
|
||||||
|
|
||||||
|
#define DEFAULT_SPI_BUS_SCK (&pin_PA17)
|
||||||
|
#define DEFAULT_SPI_BUS_MOSI (&pin_PB23)
|
||||||
|
#define DEFAULT_SPI_BUS_MISO (&pin_PB22)
|
||||||
|
|
||||||
|
// USB is always used internally so skip the pin objects for it.
|
||||||
|
#define IGNORE_PIN_PA24 1
|
||||||
|
#define IGNORE_PIN_PA25 1
|
27
ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.mk
Normal file
27
ports/atmel-samd/boards/winterbloom_sol/mpconfigboard.mk
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
LD_FILE = boards/samd51x20-bootloader-external-flash.ld
|
||||||
|
# Adafruit
|
||||||
|
USB_VID = 0x239A
|
||||||
|
# Allocated for Winterbloom Sol
|
||||||
|
# https://github.com/adafruit/circuitpython/issues/2217
|
||||||
|
USB_PID = 0x8062
|
||||||
|
USB_PRODUCT = "Sol"
|
||||||
|
USB_MANUFACTURER = "Winterbloom"
|
||||||
|
|
||||||
|
CHIP_VARIANT = SAMD51J20A
|
||||||
|
CHIP_FAMILY = samd51
|
||||||
|
|
||||||
|
QSPI_FLASH_FILESYSTEM = 1
|
||||||
|
EXTERNAL_FLASH_DEVICE_COUNT = 1
|
||||||
|
EXTERNAL_FLASH_DEVICES = W25Q32JV_IQ
|
||||||
|
LONGINT_IMPL = MPZ
|
||||||
|
|
||||||
|
# Disable modules that are unusable on this special-purpose board.
|
||||||
|
CIRCUITPY_AUDIOBUSIO = 0
|
||||||
|
CIRCUITPY_AUDIOIO = 0
|
||||||
|
CIRCUITPY_BLEIO = 0
|
||||||
|
CIRCUITPY_DISPLAYIO = 0
|
||||||
|
CIRCUITPY_GAMEPAD = 0
|
||||||
|
CIRCUITPY_I2CSLAVE = 0
|
||||||
|
CIRCUITPY_NETWORK = 0
|
||||||
|
CIRCUITPY_TOUCHIO = 0
|
||||||
|
CIRCUITPY_PS2IO = 0
|
15
ports/atmel-samd/boards/winterbloom_sol/pins.c
Normal file
15
ports/atmel-samd/boards/winterbloom_sol/pins.c
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#include "shared-bindings/board/__init__.h"
|
||||||
|
|
||||||
|
STATIC const mp_rom_map_elem_t board_global_dict_table[] = {
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SCK), MP_ROM_PTR(&pin_PA17) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MOSI), MP_ROM_PTR(&pin_PB23) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_MISO), MP_ROM_PTR(&pin_PB22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_DAC_CS), MP_ROM_PTR(&pin_PA18) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_G1), MP_ROM_PTR(&pin_PA20) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_G2), MP_ROM_PTR(&pin_PA21) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_G3), MP_ROM_PTR(&pin_PA22) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_G4), MP_ROM_PTR(&pin_PA23) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_NEOPIXEL), MP_ROM_PTR(&pin_PB03) },
|
||||||
|
{ MP_ROM_QSTR(MP_QSTR_SPI), MP_ROM_PTR(&board_spi_obj) },
|
||||||
|
};
|
||||||
|
MP_DEFINE_CONST_DICT(board_module_globals, board_global_dict_table);
|
@ -116,6 +116,7 @@ void common_hal_busio_i2c_construct(busio_i2c_obj_t *self,
|
|||||||
if (i2c_m_sync_set_baudrate(&self->i2c_desc, 0, frequency / 1000) != ERR_NONE) {
|
if (i2c_m_sync_set_baudrate(&self->i2c_desc, 0, frequency / 1000) != ERR_NONE) {
|
||||||
reset_pin_number(sda->number);
|
reset_pin_number(sda->number);
|
||||||
reset_pin_number(scl->number);
|
reset_pin_number(scl->number);
|
||||||
|
common_hal_busio_i2c_deinit(self);
|
||||||
mp_raise_ValueError(translate("Unsupported baudrate"));
|
mp_raise_ValueError(translate("Unsupported baudrate"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -72,6 +72,8 @@
|
|||||||
#define INT1V_DIVIDER_1000 1000.0
|
#define INT1V_DIVIDER_1000 1000.0
|
||||||
#define ADC_12BIT_FULL_SCALE_VALUE_FLOAT 4095.0
|
#define ADC_12BIT_FULL_SCALE_VALUE_FLOAT 4095.0
|
||||||
|
|
||||||
|
// channel argument (ignored in calls below)
|
||||||
|
#define IGNORED_CHANNEL 0
|
||||||
|
|
||||||
// Decimal to fraction conversion. (adapted from ASF sample).
|
// Decimal to fraction conversion. (adapted from ASF sample).
|
||||||
STATIC float convert_dec_to_frac(uint8_t val) {
|
STATIC float convert_dec_to_frac(uint8_t val) {
|
||||||
@ -196,14 +198,12 @@ float common_hal_mcu_processor_get_temperature(void) {
|
|||||||
|
|
||||||
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
||||||
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INT1V_Val);
|
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INT1V_Val);
|
||||||
// Channel passed in adc_sync_enable_channel is actually ignored (!).
|
// Channel arg is ignored.
|
||||||
adc_sync_enable_channel(&adc, ADC_INPUTCTRL_MUXPOS_TEMP_Val);
|
adc_sync_enable_channel(&adc, IGNORED_CHANNEL);
|
||||||
adc_sync_set_inputs(&adc,
|
adc_sync_set_inputs(&adc,
|
||||||
ADC_INPUTCTRL_MUXPOS_TEMP_Val, // pos_input
|
ADC_INPUTCTRL_MUXPOS_TEMP_Val, // pos_input
|
||||||
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
||||||
ADC_INPUTCTRL_MUXPOS_TEMP_Val); // channel channel (this arg is ignored (!))
|
IGNORED_CHANNEL); // channel (ignored)
|
||||||
|
|
||||||
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
|
||||||
|
|
||||||
hri_adc_write_CTRLB_PRESCALER_bf(adc.device.hw, ADC_CTRLB_PRESCALER_DIV32_Val);
|
hri_adc_write_CTRLB_PRESCALER_bf(adc.device.hw, ADC_CTRLB_PRESCALER_DIV32_Val);
|
||||||
hri_adc_write_SAMPCTRL_SAMPLEN_bf(adc.device.hw, ADC_TEMP_SAMPLE_LENGTH);
|
hri_adc_write_SAMPCTRL_SAMPLEN_bf(adc.device.hw, ADC_TEMP_SAMPLE_LENGTH);
|
||||||
@ -222,10 +222,9 @@ float common_hal_mcu_processor_get_temperature(void) {
|
|||||||
// like voltage reference / ADC channel change"
|
// like voltage reference / ADC channel change"
|
||||||
// Empirical observation shows the first reading is quite different than subsequent ones.
|
// Empirical observation shows the first reading is quite different than subsequent ones.
|
||||||
|
|
||||||
// The channel listed in adc_sync_read_channel is actually ignored(!).
|
// Channel arg is ignored.
|
||||||
// Must be set as above with adc_sync_set_inputs.
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &value), 2);
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_TEMP_Val, ((uint8_t*) &value), 2);
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &value), 2);
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_TEMP_Val, ((uint8_t*) &value), 2);
|
|
||||||
|
|
||||||
adc_sync_deinit(&adc);
|
adc_sync_deinit(&adc);
|
||||||
return calculate_temperature(value);
|
return calculate_temperature(value);
|
||||||
@ -233,51 +232,90 @@ float common_hal_mcu_processor_get_temperature(void) {
|
|||||||
|
|
||||||
#ifdef SAMD51
|
#ifdef SAMD51
|
||||||
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
||||||
// Reference voltage choice is a guess. It's not specified in the datasheet that I can see.
|
// Using INTVCC0 as the reference voltage.
|
||||||
// INTVCC1 seems to read a little high.
|
// INTVCC1 seems to read a little high.
|
||||||
// INTREF doesn't work: ADC hangs BUSY.
|
// INTREF doesn't work: ADC hangs BUSY. It's supposed to work, but does not.
|
||||||
|
// The SAME54 example from Atmel START implicitly uses INTREF.
|
||||||
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INTVCC0_Val);
|
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INTVCC0_Val);
|
||||||
|
|
||||||
// If ONDEMAND=1, we don't need to use the VREF.TSSEL bit to choose PTAT and CTAT.
|
|
||||||
hri_supc_set_VREF_ONDEMAND_bit(SUPC);
|
hri_supc_set_VREF_ONDEMAND_bit(SUPC);
|
||||||
|
// Enable temperature sensor.
|
||||||
hri_supc_set_VREF_TSEN_bit(SUPC);
|
hri_supc_set_VREF_TSEN_bit(SUPC);
|
||||||
|
hri_supc_set_VREF_VREFOE_bit(SUPC);
|
||||||
|
|
||||||
// Channel passed in adc_sync_enable_channel is actually ignored (!).
|
// Channel arg is ignored.
|
||||||
adc_sync_enable_channel(&adc, ADC_INPUTCTRL_MUXPOS_PTAT_Val);
|
adc_sync_enable_channel(&adc, IGNORED_CHANNEL);
|
||||||
adc_sync_set_inputs(&adc,
|
adc_sync_set_inputs(&adc,
|
||||||
ADC_INPUTCTRL_MUXPOS_PTAT_Val, // pos_input
|
ADC_INPUTCTRL_MUXPOS_PTAT_Val, // pos_input
|
||||||
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
||||||
ADC_INPUTCTRL_MUXPOS_PTAT_Val); // channel (this arg is ignored (!))
|
IGNORED_CHANNEL); // channel (ignored)
|
||||||
|
|
||||||
// Read both temperature sensors.
|
// Read both temperature sensors.
|
||||||
volatile uint16_t ptat;
|
volatile uint16_t ptat;
|
||||||
volatile uint16_t ctat;
|
volatile uint16_t ctat;
|
||||||
|
|
||||||
// The channel listed in adc_sync_read_channel is actually ignored(!).
|
// Read twice for stability (necessary?).
|
||||||
// Must be set as above with adc_sync_set_inputs.
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &ptat), 2);
|
||||||
// Read twice for stability (necessary?)
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &ptat), 2);
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_PTAT_Val, ((uint8_t*) &ptat), 2);
|
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_PTAT_Val, ((uint8_t*) &ptat), 2);
|
|
||||||
|
|
||||||
adc_sync_set_inputs(&adc,
|
adc_sync_set_inputs(&adc,
|
||||||
ADC_INPUTCTRL_MUXPOS_CTAT_Val, // pos_input
|
ADC_INPUTCTRL_MUXPOS_CTAT_Val, // pos_input
|
||||||
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
||||||
ADC_INPUTCTRL_MUXPOS_CTAT_Val); // channel (this arg is ignored (!))
|
IGNORED_CHANNEL); // channel (ignored)
|
||||||
|
|
||||||
// Channel passed in adc_sync_enable_channel is actually ignored (!).
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &ctat), 2);
|
||||||
adc_sync_enable_channel(&adc, ADC_INPUTCTRL_MUXPOS_CTAT_Val);
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &ctat), 2);
|
||||||
// The channel listed in adc_sync_read_channel is actually ignored(!).
|
|
||||||
// Must be set as above with adc_sync_set_inputs.
|
// Turn off temp sensor.
|
||||||
// Read twice for stability (necessary?)
|
hri_supc_clear_VREF_TSEN_bit(SUPC);
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_CTAT_Val, ((uint8_t*) &ctat), 2);
|
|
||||||
adc_sync_read_channel(&adc, ADC_INPUTCTRL_MUXPOS_CTAT_Val, ((uint8_t*) &ctat), 2);
|
|
||||||
hri_supc_set_VREF_ONDEMAND_bit(SUPC);
|
|
||||||
|
|
||||||
adc_sync_deinit(&adc);
|
adc_sync_deinit(&adc);
|
||||||
return calculate_temperature(ptat, ctat);
|
return calculate_temperature(ptat, ctat);
|
||||||
#endif // SAMD51
|
#endif // SAMD51
|
||||||
}
|
}
|
||||||
|
|
||||||
|
float common_hal_mcu_processor_get_voltage(void) {
|
||||||
|
struct adc_sync_descriptor adc;
|
||||||
|
|
||||||
|
static Adc* adc_insts[] = ADC_INSTS;
|
||||||
|
samd_peripherals_adc_setup(&adc, adc_insts[0]);
|
||||||
|
|
||||||
|
#ifdef SAMD21
|
||||||
|
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INT1V_Val);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef SAMD51
|
||||||
|
hri_supc_set_VREF_SEL_bf(SUPC, SUPC_VREF_SEL_1V0_Val);
|
||||||
|
// ONDEMAND must be clear, and VREFOE must be set, or else the ADC conversion will not complete.
|
||||||
|
// See https://community.atmel.com/forum/samd51-using-intref-adc-voltage-reference
|
||||||
|
hri_supc_clear_VREF_ONDEMAND_bit(SUPC);
|
||||||
|
hri_supc_set_VREF_VREFOE_bit(SUPC);
|
||||||
|
adc_sync_set_reference(&adc, ADC_REFCTRL_REFSEL_INTREF_Val);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
adc_sync_set_resolution(&adc, ADC_CTRLB_RESSEL_12BIT_Val);
|
||||||
|
// Channel arg is ignored.
|
||||||
|
adc_sync_set_inputs(&adc,
|
||||||
|
ADC_INPUTCTRL_MUXPOS_SCALEDIOVCC_Val, // IOVCC/4 (nominal 3.3V/4)
|
||||||
|
ADC_INPUTCTRL_MUXNEG_GND_Val, // neg_input
|
||||||
|
IGNORED_CHANNEL); // channel (ignored).
|
||||||
|
adc_sync_enable_channel(&adc, IGNORED_CHANNEL);
|
||||||
|
|
||||||
|
volatile uint16_t reading;
|
||||||
|
|
||||||
|
// Channel arg is ignored.
|
||||||
|
// Read twice and discard first result, as recommended in section 14 of
|
||||||
|
// http://www.atmel.com/images/Atmel-42645-ADC-Configurations-with-Examples_ApplicationNote_AT11481.pdf
|
||||||
|
// "Discard the first conversion result whenever there is a change in ADC configuration
|
||||||
|
// like voltage reference / ADC channel change"
|
||||||
|
// Empirical observation shows the first reading is quite different than subsequent ones.
|
||||||
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &reading), 2);
|
||||||
|
adc_sync_read_channel(&adc, IGNORED_CHANNEL, ((uint8_t*) &reading), 2);
|
||||||
|
|
||||||
|
adc_sync_deinit(&adc);
|
||||||
|
// Multiply by 4 to compensate for SCALEDIOVCC division by 4.
|
||||||
|
return (reading / 4095.0f) * 4.0f;
|
||||||
|
}
|
||||||
|
|
||||||
uint32_t common_hal_mcu_processor_get_frequency(void) {
|
uint32_t common_hal_mcu_processor_get_frequency(void) {
|
||||||
// TODO(tannewt): Determine this dynamically.
|
// TODO(tannewt): Determine this dynamically.
|
||||||
|
@ -135,6 +135,7 @@ pwmout_result_t common_hal_pulseio_pwmout_construct(pulseio_pwmout_obj_t* self,
|
|||||||
bool variable_frequency) {
|
bool variable_frequency) {
|
||||||
self->pin = pin;
|
self->pin = pin;
|
||||||
self->variable_frequency = variable_frequency;
|
self->variable_frequency = variable_frequency;
|
||||||
|
self->duty_cycle = duty;
|
||||||
|
|
||||||
if (pin->timer[0].index >= TC_INST_NUM &&
|
if (pin->timer[0].index >= TC_INST_NUM &&
|
||||||
pin->timer[1].index >= TCC_INST_NUM
|
pin->timer[1].index >= TCC_INST_NUM
|
||||||
@ -322,6 +323,13 @@ void common_hal_pulseio_pwmout_deinit(pulseio_pwmout_obj_t* self) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern void common_hal_pulseio_pwmout_set_duty_cycle(pulseio_pwmout_obj_t* self, uint16_t duty) {
|
extern void common_hal_pulseio_pwmout_set_duty_cycle(pulseio_pwmout_obj_t* self, uint16_t duty) {
|
||||||
|
// Store the unadjusted duty cycle. It turns out the the process of adjusting and calculating
|
||||||
|
// the duty cycle here and reading it back is lossy - the value will decay over time.
|
||||||
|
// Track it here so that if frequency is changed we can use this value to recalculate the
|
||||||
|
// proper duty cycle.
|
||||||
|
// See https://github.com/adafruit/circuitpython/issues/2086 for more details
|
||||||
|
self->duty_cycle = duty;
|
||||||
|
|
||||||
const pin_timer_t* t = self->timer;
|
const pin_timer_t* t = self->timer;
|
||||||
if (t->is_tc) {
|
if (t->is_tc) {
|
||||||
uint16_t adjusted_duty = tc_periods[t->index] * duty / 0xffff;
|
uint16_t adjusted_duty = tc_periods[t->index] * duty / 0xffff;
|
||||||
@ -415,7 +423,6 @@ void common_hal_pulseio_pwmout_set_frequency(pulseio_pwmout_obj_t* self,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
uint16_t old_duty = common_hal_pulseio_pwmout_get_duty_cycle(self);
|
|
||||||
if (t->is_tc) {
|
if (t->is_tc) {
|
||||||
Tc* tc = tc_insts[t->index];
|
Tc* tc = tc_insts[t->index];
|
||||||
uint8_t old_divisor = tc->COUNT16.CTRLA.bit.PRESCALER;
|
uint8_t old_divisor = tc->COUNT16.CTRLA.bit.PRESCALER;
|
||||||
@ -450,7 +457,7 @@ void common_hal_pulseio_pwmout_set_frequency(pulseio_pwmout_obj_t* self,
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
common_hal_pulseio_pwmout_set_duty_cycle(self, old_duty);
|
common_hal_pulseio_pwmout_set_duty_cycle(self, self->duty_cycle);
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32_t common_hal_pulseio_pwmout_get_frequency(pulseio_pwmout_obj_t* self) {
|
uint32_t common_hal_pulseio_pwmout_get_frequency(pulseio_pwmout_obj_t* self) {
|
||||||
|
@ -36,6 +36,7 @@ typedef struct {
|
|||||||
const mcu_pin_obj_t *pin;
|
const mcu_pin_obj_t *pin;
|
||||||
const pin_timer_t* timer;
|
const pin_timer_t* timer;
|
||||||
bool variable_frequency;
|
bool variable_frequency;
|
||||||
|
uint16_t duty_cycle;
|
||||||
} pulseio_pwmout_obj_t;
|
} pulseio_pwmout_obj_t;
|
||||||
|
|
||||||
void pwmout_reset(void);
|
void pwmout_reset(void);
|
||||||
|
@ -22,7 +22,7 @@ CIRCUITPY_FREQUENCYIO = 0
|
|||||||
CIRCUITPY_TOUCHIO_USE_NATIVE = 1
|
CIRCUITPY_TOUCHIO_USE_NATIVE = 1
|
||||||
|
|
||||||
# SAMD21 needs separate endpoint pairs for MSC BULK IN and BULK OUT, otherwise it's erratic.
|
# SAMD21 needs separate endpoint pairs for MSC BULK IN and BULK OUT, otherwise it's erratic.
|
||||||
USB_MSC_NUM_ENDPOINT_PAIRS = 2
|
USB_MSC_EP_NUM_OUT = 1
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# Put samd51-only choices here.
|
# Put samd51-only choices here.
|
||||||
|
@ -271,6 +271,14 @@ void reset_cpu(void) {
|
|||||||
reset();
|
reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t *port_stack_get_limit(void) {
|
||||||
|
return &_ebss;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32_t *port_stack_get_top(void) {
|
||||||
|
return &_estack;
|
||||||
|
}
|
||||||
|
|
||||||
// Place the word to save 8k from the end of RAM so we and the bootloader don't clobber it.
|
// Place the word to save 8k from the end of RAM so we and the bootloader don't clobber it.
|
||||||
#ifdef SAMD21
|
#ifdef SAMD21
|
||||||
uint32_t* safe_word = (uint32_t*) (HMCRAMC0_ADDR + HMCRAMC0_SIZE - 0x2000);
|
uint32_t* safe_word = (uint32_t*) (HMCRAMC0_ADDR + HMCRAMC0_SIZE - 0x2000);
|
||||||
|
@ -1,48 +0,0 @@
|
|||||||
include ../../py/mkenv.mk
|
|
||||||
|
|
||||||
# qstr definitions (must come before including py.mk)
|
|
||||||
QSTR_DEFS = qstrdefsport.h
|
|
||||||
|
|
||||||
# include py core make definitions
|
|
||||||
include $(TOP)/py/py.mk
|
|
||||||
|
|
||||||
CROSS_COMPILE = arm-none-eabi-
|
|
||||||
|
|
||||||
INC += -I.
|
|
||||||
INC += -I$(TOP)
|
|
||||||
INC += -I$(BUILD)
|
|
||||||
|
|
||||||
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -mabi=aapcs-linux -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -fsingle-precision-constant -Wdouble-promotion
|
|
||||||
CFLAGS = $(INC) -Wall -Werror -std=c99 -nostdlib $(CFLAGS_CORTEX_M4) $(COPT)
|
|
||||||
|
|
||||||
#Debugging/Optimization
|
|
||||||
ifeq ($(DEBUG), 1)
|
|
||||||
CFLAGS += -O0 -ggdb
|
|
||||||
else
|
|
||||||
CFLAGS += -Os -DNDEBUG
|
|
||||||
endif
|
|
||||||
|
|
||||||
LDFLAGS = -nostdlib -T stm32f405.ld -Map=$@.map --cref
|
|
||||||
LIBS =
|
|
||||||
|
|
||||||
SRC_C = \
|
|
||||||
main.c \
|
|
||||||
# printf.c \
|
|
||||||
string0.c \
|
|
||||||
malloc0.c \
|
|
||||||
gccollect.c \
|
|
||||||
|
|
||||||
SRC_S = \
|
|
||||||
# startup_stm32f40xx.s \
|
|
||||||
gchelper.s \
|
|
||||||
|
|
||||||
OBJ = $(PY_CORE_O) $(addprefix $(BUILD)/, $(SRC_C:.c=.o) $(SRC_S:.s=.o))
|
|
||||||
|
|
||||||
all: $(BUILD)/firmware.elf
|
|
||||||
|
|
||||||
$(BUILD)/firmware.elf: $(OBJ)
|
|
||||||
$(ECHO) "LINK $@"
|
|
||||||
$(Q)$(LD) $(LDFLAGS) -o $@ $^ $(LIBS)
|
|
||||||
$(Q)$(SIZE) $@
|
|
||||||
|
|
||||||
include $(TOP)/py/mkrules.mk
|
|
@ -1,96 +0,0 @@
|
|||||||
#include <stdint.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#include "py/compile.h"
|
|
||||||
#include "py/runtime.h"
|
|
||||||
#include "py/repl.h"
|
|
||||||
#include "py/mperrno.h"
|
|
||||||
|
|
||||||
void do_str(const char *src, mp_parse_input_kind_t input_kind) {
|
|
||||||
nlr_buf_t nlr;
|
|
||||||
if (nlr_push(&nlr) == 0) {
|
|
||||||
mp_lexer_t *lex = mp_lexer_new_from_str_len(MP_QSTR__lt_stdin_gt_, src, strlen(src), 0);
|
|
||||||
qstr source_name = lex->source_name;
|
|
||||||
mp_parse_tree_t parse_tree = mp_parse(lex, input_kind);
|
|
||||||
mp_obj_t module_fun = mp_compile(&parse_tree, source_name, MP_EMIT_OPT_NONE, true);
|
|
||||||
mp_call_function_0(module_fun);
|
|
||||||
nlr_pop();
|
|
||||||
} else {
|
|
||||||
// uncaught exception
|
|
||||||
mp_obj_print_exception(&mp_plat_print, (mp_obj_t)nlr.ret_val);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
|
||||||
mp_init();
|
|
||||||
do_str("print('hello world!', list(x+1 for x in range(10)), end='eol\\n')", MP_PARSE_SINGLE_INPUT);
|
|
||||||
do_str("for i in range(10):\n print(i)", MP_PARSE_FILE_INPUT);
|
|
||||||
mp_deinit();
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
mp_lexer_t *mp_lexer_new_from_file(const char *filename) {
|
|
||||||
mp_raise_OSError(MP_ENOENT);
|
|
||||||
}
|
|
||||||
|
|
||||||
mp_import_stat_t mp_import_stat(const char *path) {
|
|
||||||
return MP_IMPORT_STAT_NO_EXIST;
|
|
||||||
}
|
|
||||||
|
|
||||||
mp_obj_t mp_builtin_open(size_t n_args, const mp_obj_t *args, mp_map_t *kwargs) {
|
|
||||||
return mp_const_none;
|
|
||||||
}
|
|
||||||
MP_DEFINE_CONST_FUN_OBJ_KW(mp_builtin_open_obj, 1, mp_builtin_open);
|
|
||||||
|
|
||||||
void nlr_jump_fail(void *val) {
|
|
||||||
while (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
void NORETURN __fatal_error(const char *msg) {
|
|
||||||
while (1);
|
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef NDEBUG
|
|
||||||
void MP_WEAK __assert_func(const char *file, int line, const char *func, const char *expr) {
|
|
||||||
printf("Assertion '%s' failed, at file %s:%d\n", expr, file, line);
|
|
||||||
__fatal_error("Assertion failed");
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
|
||||||
int _lseek() {return 0;}
|
|
||||||
int _read() {return 0;}
|
|
||||||
int _write() {return 0;}
|
|
||||||
int _close() {return 0;}
|
|
||||||
void _exit(int x) {for(;;){}}
|
|
||||||
int _sbrk() {return 0;}
|
|
||||||
int _kill() {return 0;}
|
|
||||||
int _getpid() {return 0;}
|
|
||||||
int _fstat() {return 0;}
|
|
||||||
int _isatty() {return 0;}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void *malloc(size_t n) {return NULL;}
|
|
||||||
void *calloc(size_t nmemb, size_t size) {return NULL;}
|
|
||||||
void *realloc(void *ptr, size_t size) {return NULL;}
|
|
||||||
void free(void *p) {}
|
|
||||||
int printf(const char *m, ...) {return 0;}
|
|
||||||
void *memcpy(void *dest, const void *src, size_t n) {return NULL;}
|
|
||||||
int memcmp(const void *s1, const void *s2, size_t n) {return 0;}
|
|
||||||
void *memmove(void *dest, const void *src, size_t n) {return NULL;}
|
|
||||||
void *memset(void *s, int c, size_t n) {return NULL;}
|
|
||||||
int strcmp(const char *s1, const char* s2) {return 0;}
|
|
||||||
int strncmp(const char *s1, const char* s2, size_t n) {return 0;}
|
|
||||||
size_t strlen(const char *s) {return 0;}
|
|
||||||
char *strcat(char *dest, const char *src) {return NULL;}
|
|
||||||
char *strchr(const char *dest, int c) {return NULL;}
|
|
||||||
#include <stdarg.h>
|
|
||||||
int vprintf(const char *format, va_list ap) {return 0;}
|
|
||||||
int vsnprintf(char *str, size_t size, const char *format, va_list ap) {return 0;}
|
|
||||||
|
|
||||||
#undef putchar
|
|
||||||
int putchar(int c) {return 0;}
|
|
||||||
int puts(const char *s) {return 0;}
|
|
||||||
|
|
||||||
void _start(void) {main(0, NULL);}
|
|
@ -1,66 +0,0 @@
|
|||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
// options to control how MicroPython is built
|
|
||||||
|
|
||||||
#define MICROPY_QSTR_BYTES_IN_HASH (1)
|
|
||||||
#define MICROPY_ALLOC_PATH_MAX (512)
|
|
||||||
#define MICROPY_EMIT_X64 (0)
|
|
||||||
#define MICROPY_EMIT_THUMB (0)
|
|
||||||
#define MICROPY_EMIT_INLINE_THUMB (0)
|
|
||||||
#define MICROPY_COMP_MODULE_CONST (0)
|
|
||||||
#define MICROPY_COMP_CONST (0)
|
|
||||||
#define MICROPY_COMP_DOUBLE_TUPLE_ASSIGN (0)
|
|
||||||
#define MICROPY_COMP_TRIPLE_TUPLE_ASSIGN (0)
|
|
||||||
#define MICROPY_MEM_STATS (0)
|
|
||||||
#define MICROPY_DEBUG_PRINTERS (0)
|
|
||||||
#define MICROPY_ENABLE_GC (0)
|
|
||||||
#define MICROPY_HELPER_REPL (0)
|
|
||||||
#define MICROPY_HELPER_LEXER_UNIX (0)
|
|
||||||
#define MICROPY_ENABLE_SOURCE_LINE (0)
|
|
||||||
#define MICROPY_ENABLE_DOC_STRING (0)
|
|
||||||
#define MICROPY_ERROR_REPORTING (MICROPY_ERROR_REPORTING_TERSE)
|
|
||||||
#define MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG (0)
|
|
||||||
#define MICROPY_PY_ASYNC_AWAIT (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_BYTEARRAY (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_MEMORYVIEW (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_ENUMERATE (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_FROZENSET (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_REVERSED (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_SET (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_SLICE (0)
|
|
||||||
#define MICROPY_PY_BUILTINS_PROPERTY (0)
|
|
||||||
#define MICROPY_PY___FILE__ (0)
|
|
||||||
#define MICROPY_PY_GC (0)
|
|
||||||
#define MICROPY_PY_ARRAY (0)
|
|
||||||
#define MICROPY_PY_ATTRTUPLE (0)
|
|
||||||
#define MICROPY_PY_COLLECTIONS (0)
|
|
||||||
#define MICROPY_PY_MATH (0)
|
|
||||||
#define MICROPY_PY_CMATH (0)
|
|
||||||
#define MICROPY_PY_IO (0)
|
|
||||||
#define MICROPY_PY_STRUCT (0)
|
|
||||||
#define MICROPY_PY_SYS (0)
|
|
||||||
#define MICROPY_CPYTHON_COMPAT (0)
|
|
||||||
#define MICROPY_LONGINT_IMPL (MICROPY_LONGINT_IMPL_NONE)
|
|
||||||
#define MICROPY_FLOAT_IMPL (MICROPY_FLOAT_IMPL_NONE)
|
|
||||||
#define MICROPY_USE_INTERNAL_PRINTF (0)
|
|
||||||
|
|
||||||
// type definitions for the specific machine
|
|
||||||
|
|
||||||
#define MICROPY_MAKE_POINTER_CALLABLE(p) ((void*)((mp_uint_t)(p) | 1))
|
|
||||||
|
|
||||||
#define UINT_FMT "%lu"
|
|
||||||
#define INT_FMT "%ld"
|
|
||||||
|
|
||||||
typedef int32_t mp_int_t; // must be pointer size
|
|
||||||
typedef uint32_t mp_uint_t; // must be pointer size
|
|
||||||
typedef long mp_off_t;
|
|
||||||
|
|
||||||
// dummy print
|
|
||||||
#define MP_PLAT_PRINT_STRN(str, len) (void)0
|
|
||||||
|
|
||||||
// extra built in names to add to the global namespace
|
|
||||||
#define MICROPY_PORT_BUILTINS \
|
|
||||||
{ MP_ROM_QSTR(MP_QSTR_open), MP_ROM_PTR(&mp_builtin_open_obj) },
|
|
||||||
|
|
||||||
// We need to provide a declaration/definition of alloca()
|
|
||||||
#include <alloca.h>
|
|
@ -1 +0,0 @@
|
|||||||
// empty file
|
|
@ -1,117 +0,0 @@
|
|||||||
/*
|
|
||||||
GNU linker script for STM32F405
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Specify the memory areas */
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
FLASH (rx) : ORIGIN = 0x08000000, LENGTH = 0x100000 /* entire flash, 1 MiB */
|
|
||||||
FLASH_ISR (rx) : ORIGIN = 0x08000000, LENGTH = 0x004000 /* sector 0, 16 KiB */
|
|
||||||
FLASH_TEXT (rx) : ORIGIN = 0x08020000, LENGTH = 0x080000 /* sectors 5,6,7,8, 4*128KiB = 512 KiB (could increase it more) */
|
|
||||||
CCMRAM (xrw) : ORIGIN = 0x10000000, LENGTH = 0x010000 /* 64 KiB */
|
|
||||||
RAM (xrw) : ORIGIN = 0x20000000, LENGTH = 0x020000 /* 128 KiB */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* top end of the stack */
|
|
||||||
_estack = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
|
|
||||||
/* RAM extents for the garbage collector */
|
|
||||||
_ram_end = ORIGIN(RAM) + LENGTH(RAM);
|
|
||||||
_heap_end = 0x2001c000; /* tunable */
|
|
||||||
|
|
||||||
/* define output sections */
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* The startup code goes first into FLASH */
|
|
||||||
.isr_vector :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
KEEP(*(.isr_vector)) /* Startup code */
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >FLASH_ISR
|
|
||||||
|
|
||||||
/* The program code and other data goes into FLASH */
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
. = 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);
|
|
||||||
_etext = .; /* define a global symbol at end of code */
|
|
||||||
_sidata = _etext; /* This is used by the startup in order to initialize the .data secion */
|
|
||||||
} >FLASH_TEXT
|
|
||||||
|
|
||||||
/*
|
|
||||||
.ARM.extab :
|
|
||||||
{
|
|
||||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
|
||||||
} >FLASH
|
|
||||||
|
|
||||||
.ARM :
|
|
||||||
{
|
|
||||||
__exidx_start = .;
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = .;
|
|
||||||
} >FLASH
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* 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 : AT ( _sidata )
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sdata = .; /* create a global symbol at data start; used by startup code in order to initialise the .data section in RAM */
|
|
||||||
_ram_start = .; /* create a global symbol at ram start for garbage collector */
|
|
||||||
*(.data) /* .data sections */
|
|
||||||
*(.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
|
|
||||||
|
|
||||||
/* Uninitialized data section */
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_sbss = .; /* define a global symbol at bss start; used by startup code */
|
|
||||||
*(.bss)
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
|
|
||||||
. = ALIGN(4);
|
|
||||||
_ebss = .; /* define a global symbol at bss end; used by startup code */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this is to define the start of the heap, and make sure we have a minimum size */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
_heap_start = .; /* define a global symbol at heap start */
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* this just checks there is enough RAM for the stack */
|
|
||||||
.stack :
|
|
||||||
{
|
|
||||||
. = ALIGN(4);
|
|
||||||
} >RAM
|
|
||||||
|
|
||||||
/* Remove information from the standard libraries */
|
|
||||||
/*
|
|
||||||
/DISCARD/ :
|
|
||||||
{
|
|
||||||
libc.a ( * )
|
|
||||||
libm.a ( * )
|
|
||||||
libgcc.a ( * )
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
.ARM.attributes 0 : { *(.ARM.attributes) }
|
|
||||||
}
|
|
@ -1,173 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V8.1.2 - Copyright (C) 2014 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that has become a de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly and support the FreeRTOS *
|
|
||||||
* project by purchasing a FreeRTOS tutorial book, reference *
|
|
||||||
* manual, or both from: http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
* Thank you! *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>!AND MODIFIED BY!<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available from the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* Having a problem? Start by reading the FAQ "My application does *
|
|
||||||
* not run, what could be wrong?" *
|
|
||||||
* *
|
|
||||||
* http://www.FreeRTOS.org/FAQHelp.html *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org - Documentation, books, training, latest versions,
|
|
||||||
license and Real Time Engineers Ltd. contact details.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd license FreeRTOS to High
|
|
||||||
Integrity Systems to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef FREERTOS_CONFIG_H
|
|
||||||
#define FREERTOS_CONFIG_H
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
|
||||||
* Application specific definitions.
|
|
||||||
*
|
|
||||||
* These definitions should be adjusted for your particular hardware and
|
|
||||||
* application requirements.
|
|
||||||
*
|
|
||||||
* THESE PARAMETERS ARE DESCRIBED WITHIN THE 'CONFIGURATION' SECTION OF THE
|
|
||||||
* FreeRTOS API DOCUMENTATION AVAILABLE ON THE FreeRTOS.org WEB SITE.
|
|
||||||
*
|
|
||||||
* See http://www.freertos.org/a00110.html.
|
|
||||||
*----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#define configUSE_PREEMPTION 1
|
|
||||||
#define configUSE_IDLE_HOOK 1
|
|
||||||
#define configUSE_TICK_HOOK 1
|
|
||||||
#define configCPU_CLOCK_HZ ( ( unsigned long ) 80000000 )
|
|
||||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
|
||||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 72 )
|
|
||||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( \
|
|
||||||
16384 /* 16kbytes for FreeRTOS data structures and heap */ \
|
|
||||||
- sizeof(StaticTask_t) - configMINIMAL_STACK_SIZE * sizeof(StackType_t) /* TCB+stack for idle task */ \
|
|
||||||
- sizeof(StaticTask_t) - 1024 /* TCB+stack for servers task */ \
|
|
||||||
- sizeof(StaticTask_t) - 6656 /* TCB+stack for main MicroPython task */ \
|
|
||||||
- sizeof(StaticTask_t) - 896 /* TCB+stack for simplelink spawn task */ \
|
|
||||||
) )
|
|
||||||
#define configMAX_TASK_NAME_LEN ( 8 )
|
|
||||||
#define configUSE_TRACE_FACILITY 0
|
|
||||||
#define configUSE_16_BIT_TICKS 0
|
|
||||||
#define configIDLE_SHOULD_YIELD 1
|
|
||||||
#define configUSE_CO_ROUTINES 0
|
|
||||||
#define configUSE_MUTEXES 0
|
|
||||||
#define configUSE_RECURSIVE_MUTEXES 0
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define configCHECK_FOR_STACK_OVERFLOW 1
|
|
||||||
#else
|
|
||||||
#define configCHECK_FOR_STACK_OVERFLOW 0
|
|
||||||
#endif
|
|
||||||
#define configUSE_QUEUE_SETS 0
|
|
||||||
#define configUSE_COUNTING_SEMAPHORES 0
|
|
||||||
#define configUSE_ALTERNATIVE_API 0
|
|
||||||
|
|
||||||
#define configMAX_PRIORITIES ( 4UL )
|
|
||||||
#define configMAX_CO_ROUTINE_PRIORITIES ( 2 )
|
|
||||||
#define configQUEUE_REGISTRY_SIZE 0
|
|
||||||
|
|
||||||
/* Timer related defines. */
|
|
||||||
#define configUSE_TIMERS 0
|
|
||||||
#define configTIMER_TASK_PRIORITY 2
|
|
||||||
#define configTIMER_QUEUE_LENGTH 20
|
|
||||||
#define configTIMER_TASK_STACK_DEPTH ( configMINIMAL_STACK_SIZE * 2 )
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define configUSE_MALLOC_FAILED_HOOK 1
|
|
||||||
#else
|
|
||||||
#define configUSE_MALLOC_FAILED_HOOK 0
|
|
||||||
#endif
|
|
||||||
#define configENABLE_BACKWARD_COMPATIBILITY 0
|
|
||||||
/* Set the following definitions to 1 to include the API function, or zero
|
|
||||||
to exclude the API function. */
|
|
||||||
|
|
||||||
#define INCLUDE_vTaskPrioritySet 0
|
|
||||||
#define INCLUDE_uxTaskPriorityGet 0
|
|
||||||
#define INCLUDE_vTaskDelete 0
|
|
||||||
#define INCLUDE_vTaskCleanUpResources 0
|
|
||||||
#define INCLUDE_vTaskSuspend 0
|
|
||||||
#define INCLUDE_vTaskDelayUntil 0
|
|
||||||
#define INCLUDE_vTaskDelay 1
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define INCLUDE_uxTaskGetStackHighWaterMark 1
|
|
||||||
#else
|
|
||||||
#define INCLUDE_uxTaskGetStackHighWaterMark 0
|
|
||||||
#endif
|
|
||||||
#define INCLUDE_xTaskGetSchedulerState 0
|
|
||||||
#define INCLUDE_xTimerGetTimerDaemonTaskHandle 0
|
|
||||||
#ifdef DEBUG
|
|
||||||
#define INCLUDE_xTaskGetIdleTaskHandle 1
|
|
||||||
#else
|
|
||||||
#define INCLUDE_xTaskGetIdleTaskHandle 0
|
|
||||||
#endif
|
|
||||||
#define INCLUDE_pcTaskGetTaskName 0
|
|
||||||
#define INCLUDE_eTaskGetState 0
|
|
||||||
#define INCLUDE_xSemaphoreGetMutexHolder 0
|
|
||||||
|
|
||||||
#define configKERNEL_INTERRUPT_PRIORITY ( 7 << 5 ) /* Priority 7, or 255 as only the top three bits are implemented. This is the lowest priority. */
|
|
||||||
/* !!!! configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to zero !!!!
|
|
||||||
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
|
|
||||||
#define configMAX_SYSCALL_INTERRUPT_PRIORITY ( 1 << 5 ) /* Priority 5, or 160 as only the top three bits are implemented. */
|
|
||||||
|
|
||||||
/* Use the Cortex-M3 optimised task selection rather than the generic C code
|
|
||||||
version. */
|
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
|
||||||
|
|
||||||
/* We provide a definition of ucHeap so it can go in a special segment. */
|
|
||||||
#define configAPPLICATION_ALLOCATED_HEAP 1
|
|
||||||
|
|
||||||
/* We use static versions of functions (like xTaskCreateStatic) */
|
|
||||||
#define configSUPPORT_STATIC_ALLOCATION 1
|
|
||||||
|
|
||||||
/* For threading */
|
|
||||||
#define configNUM_THREAD_LOCAL_STORAGE_POINTERS 1
|
|
||||||
#undef configUSE_MUTEXES
|
|
||||||
#define configUSE_MUTEXES 1
|
|
||||||
#undef INCLUDE_vTaskDelete
|
|
||||||
#define INCLUDE_vTaskDelete 1
|
|
||||||
|
|
||||||
#endif /* FREERTOS_CONFIG_H */
|
|
@ -1,399 +0,0 @@
|
|||||||
The FreeRTOS open source license covers the FreeRTOS source files,
|
|
||||||
which are located in the /FreeRTOS/Source directory of the official FreeRTOS
|
|
||||||
download. It also covers most of the source files in the demo application
|
|
||||||
projects, which are located in the /FreeRTOS/Demo directory of the official
|
|
||||||
FreeRTOS download. The demo projects may also include third party software that
|
|
||||||
is not part of FreeRTOS and is licensed separately to FreeRTOS. Examples of
|
|
||||||
third party software includes header files provided by chip or tools vendors,
|
|
||||||
linker scripts, peripheral drivers, etc. All the software in subdirectories of
|
|
||||||
the /FreeRTOS directory is either open source or distributed with permission,
|
|
||||||
and is free for use. For the avoidance of doubt, refer to the comments at the
|
|
||||||
top of each source file.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
NOTE: The modification to the GPL is included to allow you to distribute a
|
|
||||||
combined work that includes FreeRTOS without being obliged to provide the source
|
|
||||||
code for proprietary components.
|
|
||||||
|
|
||||||
----------------------------------------------------------------------------
|
|
||||||
|
|
||||||
Applying to FreeRTOS V8.2.3 up to the latest version, the FreeRTOS GPL Exception
|
|
||||||
Text follows:
|
|
||||||
|
|
||||||
Any FreeRTOS *source code*, whether modified or in it's original release form,
|
|
||||||
or whether in whole or in part, can only be distributed by you under the terms
|
|
||||||
of the GNU General Public License plus this exception. An independent module is
|
|
||||||
a module which is not derived from or based on FreeRTOS.
|
|
||||||
|
|
||||||
Clause 1:
|
|
||||||
|
|
||||||
Linking FreeRTOS with other modules is making a combined work based on FreeRTOS.
|
|
||||||
Thus, the terms and conditions of the GNU General Public License V2 cover the
|
|
||||||
whole combination.
|
|
||||||
|
|
||||||
As a special exception, the copyright holders of FreeRTOS give you permission to
|
|
||||||
link FreeRTOS with independent modules to produce a statically linked
|
|
||||||
executable, regardless of the license terms of these independent modules, and to
|
|
||||||
copy and distribute the resulting executable under terms of your choice,
|
|
||||||
provided that you also meet, for each linked independent module, the terms and
|
|
||||||
conditions of the license of that module. An independent module is a module
|
|
||||||
which is not derived from or based on FreeRTOS.
|
|
||||||
|
|
||||||
Clause 2:
|
|
||||||
|
|
||||||
FreeRTOS may not be used for any competitive or comparative purpose, including
|
|
||||||
the publication of any form of run time or compile time metric, without the
|
|
||||||
express permission of Real Time Engineers Ltd. (this is the norm within the
|
|
||||||
industry and is intended to ensure information accuracy).
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--------------------------------------------------------------------
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
The standard GPL V2 text:
|
|
||||||
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
Version 2, June 1991
|
|
||||||
|
|
||||||
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
|
||||||
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
Everyone is permitted to copy and distribute verbatim copies
|
|
||||||
of this license document, but changing it is not allowed.
|
|
||||||
|
|
||||||
Preamble
|
|
||||||
|
|
||||||
The licenses for most software are designed to take away your
|
|
||||||
freedom to share and change it. By contrast, the GNU General Public
|
|
||||||
License is intended to guarantee your freedom to share and change free
|
|
||||||
software--to make sure the software is free for all its users. This
|
|
||||||
General Public License applies to most of the Free Software
|
|
||||||
Foundation's software and to any other program whose authors commit to
|
|
||||||
using it. (Some other Free Software Foundation software is covered by
|
|
||||||
the GNU Library General Public License instead.) You can apply it to
|
|
||||||
your programs, too.
|
|
||||||
|
|
||||||
When we speak of free software, we are referring to freedom, not
|
|
||||||
price. Our General Public Licenses are designed to make sure that you
|
|
||||||
have the freedom to distribute copies of free software (and charge for
|
|
||||||
this service if you wish), that you receive source code or can get it
|
|
||||||
if you want it, that you can change the software or use pieces of it
|
|
||||||
in new free programs; and that you know you can do these things.
|
|
||||||
|
|
||||||
To protect your rights, we need to make restrictions that forbid
|
|
||||||
anyone to deny you these rights or to ask you to surrender the rights.
|
|
||||||
These restrictions translate to certain responsibilities for you if you
|
|
||||||
distribute copies of the software, or if you modify it.
|
|
||||||
|
|
||||||
For example, if you distribute copies of such a program, whether
|
|
||||||
gratis or for a fee, you must give the recipients all the rights that
|
|
||||||
you have. You must make sure that they, too, receive or can get the
|
|
||||||
source code. And you must show them these terms so they know their
|
|
||||||
rights.
|
|
||||||
|
|
||||||
We protect your rights with two steps: (1) copyright the software, and
|
|
||||||
(2) offer you this license which gives you legal permission to copy,
|
|
||||||
distribute and/or modify the software.
|
|
||||||
|
|
||||||
Also, for each author's protection and ours, we want to make certain
|
|
||||||
that everyone understands that there is no warranty for this free
|
|
||||||
software. If the software is modified by someone else and passed on, we
|
|
||||||
want its recipients to know that what they have is not the original, so
|
|
||||||
that any problems introduced by others will not reflect on the original
|
|
||||||
authors' reputations.
|
|
||||||
|
|
||||||
Finally, any free program is threatened constantly by software
|
|
||||||
patents. We wish to avoid the danger that redistributors of a free
|
|
||||||
program will individually obtain patent licenses, in effect making the
|
|
||||||
program proprietary. To prevent this, we have made it clear that any
|
|
||||||
patent must be licensed for everyone's free use or not licensed at all.
|
|
||||||
|
|
||||||
The precise terms and conditions for copying, distribution and
|
|
||||||
modification follow.
|
|
||||||
|
|
||||||
GNU GENERAL PUBLIC LICENSE
|
|
||||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
|
||||||
|
|
||||||
0. This License applies to any program or other work which contains
|
|
||||||
a notice placed by the copyright holder saying it may be distributed
|
|
||||||
under the terms of this General Public License. The "Program", below,
|
|
||||||
refers to any such program or work, and a "work based on the Program"
|
|
||||||
means either the Program or any derivative work under copyright law:
|
|
||||||
that is to say, a work containing the Program or a portion of it,
|
|
||||||
either verbatim or with modifications and/or translated into another
|
|
||||||
language. (Hereinafter, translation is included without limitation in
|
|
||||||
the term "modification".) Each licensee is addressed as "you".
|
|
||||||
|
|
||||||
Activities other than copying, distribution and modification are not
|
|
||||||
covered by this License; they are outside its scope. The act of
|
|
||||||
running the Program is not restricted, and the output from the Program
|
|
||||||
is covered only if its contents constitute a work based on the
|
|
||||||
Program (independent of having been made by running the Program).
|
|
||||||
Whether that is true depends on what the Program does.
|
|
||||||
|
|
||||||
1. You may copy and distribute verbatim copies of the Program's
|
|
||||||
source code as you receive it, in any medium, provided that you
|
|
||||||
conspicuously and appropriately publish on each copy an appropriate
|
|
||||||
copyright notice and disclaimer of warranty; keep intact all the
|
|
||||||
notices that refer to this License and to the absence of any warranty;
|
|
||||||
and give any other recipients of the Program a copy of this License
|
|
||||||
along with the Program.
|
|
||||||
|
|
||||||
You may charge a fee for the physical act of transferring a copy, and
|
|
||||||
you may at your option offer warranty protection in exchange for a fee.
|
|
||||||
|
|
||||||
2. You may modify your copy or copies of the Program or any portion
|
|
||||||
of it, thus forming a work based on the Program, and copy and
|
|
||||||
distribute such modifications or work under the terms of Section 1
|
|
||||||
above, provided that you also meet all of these conditions:
|
|
||||||
|
|
||||||
a) You must cause the modified files to carry prominent notices
|
|
||||||
stating that you changed the files and the date of any change.
|
|
||||||
|
|
||||||
b) You must cause any work that you distribute or publish, that in
|
|
||||||
whole or in part contains or is derived from the Program or any
|
|
||||||
part thereof, to be licensed as a whole at no charge to all third
|
|
||||||
parties under the terms of this License.
|
|
||||||
|
|
||||||
c) If the modified program normally reads commands interactively
|
|
||||||
when run, you must cause it, when started running for such
|
|
||||||
interactive use in the most ordinary way, to print or display an
|
|
||||||
announcement including an appropriate copyright notice and a
|
|
||||||
notice that there is no warranty (or else, saying that you provide
|
|
||||||
a warranty) and that users may redistribute the program under
|
|
||||||
these conditions, and telling the user how to view a copy of this
|
|
||||||
License. (Exception: if the Program itself is interactive but
|
|
||||||
does not normally print such an announcement, your work based on
|
|
||||||
the Program is not required to print an announcement.)
|
|
||||||
|
|
||||||
These requirements apply to the modified work as a whole. If
|
|
||||||
identifiable sections of that work are not derived from the Program,
|
|
||||||
and can be reasonably considered independent and separate works in
|
|
||||||
themselves, then this License, and its terms, do not apply to those
|
|
||||||
sections when you distribute them as separate works. But when you
|
|
||||||
distribute the same sections as part of a whole which is a work based
|
|
||||||
on the Program, the distribution of the whole must be on the terms of
|
|
||||||
this License, whose permissions for other licensees extend to the
|
|
||||||
entire whole, and thus to each and every part regardless of who wrote it.
|
|
||||||
|
|
||||||
Thus, it is not the intent of this section to claim rights or contest
|
|
||||||
your rights to work written entirely by you; rather, the intent is to
|
|
||||||
exercise the right to control the distribution of derivative or
|
|
||||||
collective works based on the Program.
|
|
||||||
|
|
||||||
In addition, mere aggregation of another work not based on the Program
|
|
||||||
with the Program (or with a work based on the Program) on a volume of
|
|
||||||
a storage or distribution medium does not bring the other work under
|
|
||||||
the scope of this License.
|
|
||||||
|
|
||||||
3. You may copy and distribute the Program (or a work based on it,
|
|
||||||
under Section 2) in object code or executable form under the terms of
|
|
||||||
Sections 1 and 2 above provided that you also do one of the following:
|
|
||||||
|
|
||||||
a) Accompany it with the complete corresponding machine-readable
|
|
||||||
source code, which must be distributed under the terms of Sections
|
|
||||||
1 and 2 above on a medium customarily used for software interchange; or,
|
|
||||||
|
|
||||||
b) Accompany it with a written offer, valid for at least three
|
|
||||||
years, to give any third party, for a charge no more than your
|
|
||||||
cost of physically performing source distribution, a complete
|
|
||||||
machine-readable copy of the corresponding source code, to be
|
|
||||||
distributed under the terms of Sections 1 and 2 above on a medium
|
|
||||||
customarily used for software interchange; or,
|
|
||||||
|
|
||||||
c) Accompany it with the information you received as to the offer
|
|
||||||
to distribute corresponding source code. (This alternative is
|
|
||||||
allowed only for noncommercial distribution and only if you
|
|
||||||
received the program in object code or executable form with such
|
|
||||||
an offer, in accord with Subsection b above.)
|
|
||||||
|
|
||||||
The source code for a work means the preferred form of the work for
|
|
||||||
making modifications to it. For an executable work, complete source
|
|
||||||
code means all the source code for all modules it contains, plus any
|
|
||||||
associated interface definition files, plus the scripts used to
|
|
||||||
control compilation and installation of the executable. However, as a
|
|
||||||
special exception, the source code distributed need not include
|
|
||||||
anything that is normally distributed (in either source or binary
|
|
||||||
form) with the major components (compiler, kernel, and so on) of the
|
|
||||||
operating system on which the executable runs, unless that component
|
|
||||||
itself accompanies the executable.
|
|
||||||
|
|
||||||
If distribution of executable or object code is made by offering
|
|
||||||
access to copy from a designated place, then offering equivalent
|
|
||||||
access to copy the source code from the same place counts as
|
|
||||||
distribution of the source code, even though third parties are not
|
|
||||||
compelled to copy the source along with the object code.
|
|
||||||
|
|
||||||
4. You may not copy, modify, sublicense, or distribute the Program
|
|
||||||
except as expressly provided under this License. Any attempt
|
|
||||||
otherwise to copy, modify, sublicense or distribute the Program is
|
|
||||||
void, and will automatically terminate your rights under this License.
|
|
||||||
However, parties who have received copies, or rights, from you under
|
|
||||||
this License will not have their licenses terminated so long as such
|
|
||||||
parties remain in full compliance.
|
|
||||||
|
|
||||||
5. You are not required to accept this License, since you have not
|
|
||||||
signed it. However, nothing else grants you permission to modify or
|
|
||||||
distribute the Program or its derivative works. These actions are
|
|
||||||
prohibited by law if you do not accept this License. Therefore, by
|
|
||||||
modifying or distributing the Program (or any work based on the
|
|
||||||
Program), you indicate your acceptance of this License to do so, and
|
|
||||||
all its terms and conditions for copying, distributing or modifying
|
|
||||||
the Program or works based on it.
|
|
||||||
|
|
||||||
6. Each time you redistribute the Program (or any work based on the
|
|
||||||
Program), the recipient automatically receives a license from the
|
|
||||||
original licensor to copy, distribute or modify the Program subject to
|
|
||||||
these terms and conditions. You may not impose any further
|
|
||||||
restrictions on the recipients' exercise of the rights granted herein.
|
|
||||||
You are not responsible for enforcing compliance by third parties to
|
|
||||||
this License.
|
|
||||||
|
|
||||||
7. If, as a consequence of a court judgment or allegation of patent
|
|
||||||
infringement or for any other reason (not limited to patent issues),
|
|
||||||
conditions are imposed on you (whether by court order, agreement or
|
|
||||||
otherwise) that contradict the conditions of this License, they do not
|
|
||||||
excuse you from the conditions of this License. If you cannot
|
|
||||||
distribute so as to satisfy simultaneously your obligations under this
|
|
||||||
License and any other pertinent obligations, then as a consequence you
|
|
||||||
may not distribute the Program at all. For example, if a patent
|
|
||||||
license would not permit royalty-free redistribution of the Program by
|
|
||||||
all those who receive copies directly or indirectly through you, then
|
|
||||||
the only way you could satisfy both it and this License would be to
|
|
||||||
refrain entirely from distribution of the Program.
|
|
||||||
|
|
||||||
If any portion of this section is held invalid or unenforceable under
|
|
||||||
any particular circumstance, the balance of the section is intended to
|
|
||||||
apply and the section as a whole is intended to apply in other
|
|
||||||
circumstances.
|
|
||||||
|
|
||||||
It is not the purpose of this section to induce you to infringe any
|
|
||||||
patents or other property right claims or to contest validity of any
|
|
||||||
such claims; this section has the sole purpose of protecting the
|
|
||||||
integrity of the free software distribution system, which is
|
|
||||||
implemented by public license practices. Many people have made
|
|
||||||
generous contributions to the wide range of software distributed
|
|
||||||
through that system in reliance on consistent application of that
|
|
||||||
system; it is up to the author/donor to decide if he or she is willing
|
|
||||||
to distribute software through any other system and a licensee cannot
|
|
||||||
impose that choice.
|
|
||||||
|
|
||||||
This section is intended to make thoroughly clear what is believed to
|
|
||||||
be a consequence of the rest of this License.
|
|
||||||
|
|
||||||
8. If the distribution and/or use of the Program is restricted in
|
|
||||||
certain countries either by patents or by copyrighted interfaces, the
|
|
||||||
original copyright holder who places the Program under this License
|
|
||||||
may add an explicit geographical distribution limitation excluding
|
|
||||||
those countries, so that distribution is permitted only in or among
|
|
||||||
countries not thus excluded. In such case, this License incorporates
|
|
||||||
the limitation as if written in the body of this License.
|
|
||||||
|
|
||||||
9. The Free Software Foundation may publish revised and/or new versions
|
|
||||||
of the General Public License from time to time. Such new versions will
|
|
||||||
be similar in spirit to the present version, but may differ in detail to
|
|
||||||
address new problems or concerns.
|
|
||||||
|
|
||||||
Each version is given a distinguishing version number. If the Program
|
|
||||||
specifies a version number of this License which applies to it and "any
|
|
||||||
later version", you have the option of following the terms and conditions
|
|
||||||
either of that version or of any later version published by the Free
|
|
||||||
Software Foundation. If the Program does not specify a version number of
|
|
||||||
this License, you may choose any version ever published by the Free Software
|
|
||||||
Foundation.
|
|
||||||
|
|
||||||
10. If you wish to incorporate parts of the Program into other free
|
|
||||||
programs whose distribution conditions are different, write to the author
|
|
||||||
to ask for permission. For software which is copyrighted by the Free
|
|
||||||
Software Foundation, write to the Free Software Foundation; we sometimes
|
|
||||||
make exceptions for this. Our decision will be guided by the two goals
|
|
||||||
of preserving the free status of all derivatives of our free software and
|
|
||||||
of promoting the sharing and reuse of software generally.
|
|
||||||
|
|
||||||
NO WARRANTY
|
|
||||||
|
|
||||||
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
|
||||||
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
|
||||||
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
|
||||||
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
|
||||||
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
|
||||||
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
|
||||||
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
|
||||||
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
|
||||||
REPAIR OR CORRECTION.
|
|
||||||
|
|
||||||
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
|
||||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
|
||||||
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
|
||||||
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
|
||||||
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
|
||||||
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
|
||||||
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
|
||||||
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGES.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
How to Apply These Terms to Your New Programs
|
|
||||||
|
|
||||||
If you develop a new program, and you want it to be of the greatest
|
|
||||||
possible use to the public, the best way to achieve this is to make it
|
|
||||||
free software which everyone can redistribute and change under these terms.
|
|
||||||
|
|
||||||
To do so, attach the following notices to the program. It is safest
|
|
||||||
to attach them to the start of each source file to most effectively
|
|
||||||
convey the exclusion of warranty; and each file should have at least
|
|
||||||
the "copyright" line and a pointer to where the full notice is found.
|
|
||||||
|
|
||||||
<one line to give the program's name and a brief idea of what it does.>
|
|
||||||
Copyright (C) <year> <name of author>
|
|
||||||
|
|
||||||
This program is free software; you can redistribute it and/or modify
|
|
||||||
it under the terms of the GNU General Public License** as published by
|
|
||||||
the Free Software Foundation; either version 2 of the License, or
|
|
||||||
(at your option) any later version.
|
|
||||||
|
|
||||||
This program is distributed in the hope that it will be useful,
|
|
||||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
GNU General Public License for more details.
|
|
||||||
|
|
||||||
You should have received a copy of the GNU General Public License
|
|
||||||
along with this program; if not, write to the Free Software
|
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
||||||
|
|
||||||
|
|
||||||
Also add information on how to contact you by electronic and paper mail.
|
|
||||||
|
|
||||||
If the program is interactive, make it output a short notice like this
|
|
||||||
when it starts in an interactive mode:
|
|
||||||
|
|
||||||
Gnomovision version 69, Copyright (C) year name of author
|
|
||||||
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
|
||||||
This is free software, and you are welcome to redistribute it
|
|
||||||
under certain conditions; type `show c' for details.
|
|
||||||
|
|
||||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
|
||||||
parts of the General Public License. Of course, the commands you use may
|
|
||||||
be called something other than `show w' and `show c'; they could even be
|
|
||||||
mouse-clicks or menu items--whatever suits your program.
|
|
||||||
|
|
||||||
You should also get your employer (if you work as a programmer) or your
|
|
||||||
school, if any, to sign a "copyright disclaimer" for the program, if
|
|
||||||
necessary. Here is a sample; alter the names:
|
|
||||||
|
|
||||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
|
||||||
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
|
||||||
|
|
||||||
<signature of Ty Coon>, 1 April 1989
|
|
||||||
Ty Coon, President of Vice
|
|
||||||
|
|
||||||
This General Public License does not permit incorporating your program into
|
|
||||||
proprietary programs. If your program is a subroutine library, you may
|
|
||||||
consider it more useful to permit linking proprietary applications with the
|
|
||||||
library. If this is what you want to do, use the GNU Library General
|
|
||||||
Public License instead of this License.
|
|
||||||
|
|
@ -1,395 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
#include "croutine.h"
|
|
||||||
|
|
||||||
/* Remove the whole file is co-routines are not being used. */
|
|
||||||
#if( configUSE_CO_ROUTINES != 0 )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Some kernel aware debuggers require data to be viewed to be global, rather
|
|
||||||
* than file scope.
|
|
||||||
*/
|
|
||||||
#ifdef portREMOVE_STATIC_QUALIFIER
|
|
||||||
#define static
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* Lists for ready and blocked co-routines. --------------------*/
|
|
||||||
static List_t pxReadyCoRoutineLists[ configMAX_CO_ROUTINE_PRIORITIES ]; /*< Prioritised ready co-routines. */
|
|
||||||
static List_t xDelayedCoRoutineList1; /*< Delayed co-routines. */
|
|
||||||
static List_t xDelayedCoRoutineList2; /*< Delayed co-routines (two lists are used - one for delays that have overflowed the current tick count. */
|
|
||||||
static List_t * pxDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used. */
|
|
||||||
static List_t * pxOverflowDelayedCoRoutineList; /*< Points to the delayed co-routine list currently being used to hold co-routines that have overflowed the current tick count. */
|
|
||||||
static List_t xPendingReadyCoRoutineList; /*< Holds co-routines that have been readied by an external event. They cannot be added directly to the ready lists as the ready lists cannot be accessed by interrupts. */
|
|
||||||
|
|
||||||
/* Other file private variables. --------------------------------*/
|
|
||||||
CRCB_t * pxCurrentCoRoutine = NULL;
|
|
||||||
static UBaseType_t uxTopCoRoutineReadyPriority = 0;
|
|
||||||
static TickType_t xCoRoutineTickCount = 0, xLastTickCount = 0, xPassedTicks = 0;
|
|
||||||
|
|
||||||
/* The initial state of the co-routine when it is created. */
|
|
||||||
#define corINITIAL_STATE ( 0 )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Place the co-routine represented by pxCRCB into the appropriate ready queue
|
|
||||||
* for the priority. It is inserted at the end of the list.
|
|
||||||
*
|
|
||||||
* This macro accesses the co-routine ready lists and therefore must not be
|
|
||||||
* used from within an ISR.
|
|
||||||
*/
|
|
||||||
#define prvAddCoRoutineToReadyQueue( pxCRCB ) \
|
|
||||||
{ \
|
|
||||||
if( pxCRCB->uxPriority > uxTopCoRoutineReadyPriority ) \
|
|
||||||
{ \
|
|
||||||
uxTopCoRoutineReadyPriority = pxCRCB->uxPriority; \
|
|
||||||
} \
|
|
||||||
vListInsertEnd( ( List_t * ) &( pxReadyCoRoutineLists[ pxCRCB->uxPriority ] ), &( pxCRCB->xGenericListItem ) ); \
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Utility to ready all the lists used by the scheduler. This is called
|
|
||||||
* automatically upon the creation of the first co-routine.
|
|
||||||
*/
|
|
||||||
static void prvInitialiseCoRoutineLists( void );
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Co-routines that are readied by an interrupt cannot be placed directly into
|
|
||||||
* the ready lists (there is no mutual exclusion). Instead they are placed in
|
|
||||||
* in the pending ready list in order that they can later be moved to the ready
|
|
||||||
* list by the co-routine scheduler.
|
|
||||||
*/
|
|
||||||
static void prvCheckPendingReadyList( void );
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Macro that looks at the list of co-routines that are currently delayed to
|
|
||||||
* see if any require waking.
|
|
||||||
*
|
|
||||||
* Co-routines are stored in the queue in the order of their wake time -
|
|
||||||
* meaning once one co-routine has been found whose timer has not expired
|
|
||||||
* we need not look any further down the list.
|
|
||||||
*/
|
|
||||||
static void prvCheckDelayedList( void );
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
BaseType_t xReturn;
|
|
||||||
CRCB_t *pxCoRoutine;
|
|
||||||
|
|
||||||
/* Allocate the memory that will store the co-routine control block. */
|
|
||||||
pxCoRoutine = ( CRCB_t * ) pvPortMalloc( sizeof( CRCB_t ) );
|
|
||||||
if( pxCoRoutine )
|
|
||||||
{
|
|
||||||
/* If pxCurrentCoRoutine is NULL then this is the first co-routine to
|
|
||||||
be created and the co-routine data structures need initialising. */
|
|
||||||
if( pxCurrentCoRoutine == NULL )
|
|
||||||
{
|
|
||||||
pxCurrentCoRoutine = pxCoRoutine;
|
|
||||||
prvInitialiseCoRoutineLists();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check the priority is within limits. */
|
|
||||||
if( uxPriority >= configMAX_CO_ROUTINE_PRIORITIES )
|
|
||||||
{
|
|
||||||
uxPriority = configMAX_CO_ROUTINE_PRIORITIES - 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Fill out the co-routine control block from the function parameters. */
|
|
||||||
pxCoRoutine->uxState = corINITIAL_STATE;
|
|
||||||
pxCoRoutine->uxPriority = uxPriority;
|
|
||||||
pxCoRoutine->uxIndex = uxIndex;
|
|
||||||
pxCoRoutine->pxCoRoutineFunction = pxCoRoutineCode;
|
|
||||||
|
|
||||||
/* Initialise all the other co-routine control block parameters. */
|
|
||||||
vListInitialiseItem( &( pxCoRoutine->xGenericListItem ) );
|
|
||||||
vListInitialiseItem( &( pxCoRoutine->xEventListItem ) );
|
|
||||||
|
|
||||||
/* Set the co-routine control block as a link back from the ListItem_t.
|
|
||||||
This is so we can get back to the containing CRCB from a generic item
|
|
||||||
in a list. */
|
|
||||||
listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xGenericListItem ), pxCoRoutine );
|
|
||||||
listSET_LIST_ITEM_OWNER( &( pxCoRoutine->xEventListItem ), pxCoRoutine );
|
|
||||||
|
|
||||||
/* Event lists are always in priority order. */
|
|
||||||
listSET_LIST_ITEM_VALUE( &( pxCoRoutine->xEventListItem ), ( ( TickType_t ) configMAX_CO_ROUTINE_PRIORITIES - ( TickType_t ) uxPriority ) );
|
|
||||||
|
|
||||||
/* Now the co-routine has been initialised it can be added to the ready
|
|
||||||
list at the correct priority. */
|
|
||||||
prvAddCoRoutineToReadyQueue( pxCoRoutine );
|
|
||||||
|
|
||||||
xReturn = pdPASS;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
xReturn = errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY;
|
|
||||||
}
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList )
|
|
||||||
{
|
|
||||||
TickType_t xTimeToWake;
|
|
||||||
|
|
||||||
/* Calculate the time to wake - this may overflow but this is
|
|
||||||
not a problem. */
|
|
||||||
xTimeToWake = xCoRoutineTickCount + xTicksToDelay;
|
|
||||||
|
|
||||||
/* We must remove ourselves from the ready list before adding
|
|
||||||
ourselves to the blocked list as the same list item is used for
|
|
||||||
both lists. */
|
|
||||||
( void ) uxListRemove( ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) );
|
|
||||||
|
|
||||||
/* The list item will be inserted in wake time order. */
|
|
||||||
listSET_LIST_ITEM_VALUE( &( pxCurrentCoRoutine->xGenericListItem ), xTimeToWake );
|
|
||||||
|
|
||||||
if( xTimeToWake < xCoRoutineTickCount )
|
|
||||||
{
|
|
||||||
/* Wake time has overflowed. Place this item in the
|
|
||||||
overflow list. */
|
|
||||||
vListInsert( ( List_t * ) pxOverflowDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The wake time has not overflowed, so we can use the
|
|
||||||
current block list. */
|
|
||||||
vListInsert( ( List_t * ) pxDelayedCoRoutineList, ( ListItem_t * ) &( pxCurrentCoRoutine->xGenericListItem ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
if( pxEventList )
|
|
||||||
{
|
|
||||||
/* Also add the co-routine to an event list. If this is done then the
|
|
||||||
function must be called with interrupts disabled. */
|
|
||||||
vListInsert( pxEventList, &( pxCurrentCoRoutine->xEventListItem ) );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvCheckPendingReadyList( void )
|
|
||||||
{
|
|
||||||
/* Are there any co-routines waiting to get moved to the ready list? These
|
|
||||||
are co-routines that have been readied by an ISR. The ISR cannot access
|
|
||||||
the ready lists itself. */
|
|
||||||
while( listLIST_IS_EMPTY( &xPendingReadyCoRoutineList ) == pdFALSE )
|
|
||||||
{
|
|
||||||
CRCB_t *pxUnblockedCRCB;
|
|
||||||
|
|
||||||
/* The pending ready list can be accessed by an ISR. */
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
{
|
|
||||||
pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( (&xPendingReadyCoRoutineList) );
|
|
||||||
( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
||||||
}
|
|
||||||
portENABLE_INTERRUPTS();
|
|
||||||
|
|
||||||
( void ) uxListRemove( &( pxUnblockedCRCB->xGenericListItem ) );
|
|
||||||
prvAddCoRoutineToReadyQueue( pxUnblockedCRCB );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvCheckDelayedList( void )
|
|
||||||
{
|
|
||||||
CRCB_t *pxCRCB;
|
|
||||||
|
|
||||||
xPassedTicks = xTaskGetTickCount() - xLastTickCount;
|
|
||||||
while( xPassedTicks )
|
|
||||||
{
|
|
||||||
xCoRoutineTickCount++;
|
|
||||||
xPassedTicks--;
|
|
||||||
|
|
||||||
/* If the tick count has overflowed we need to swap the ready lists. */
|
|
||||||
if( xCoRoutineTickCount == 0 )
|
|
||||||
{
|
|
||||||
List_t * pxTemp;
|
|
||||||
|
|
||||||
/* Tick count has overflowed so we need to swap the delay lists. If there are
|
|
||||||
any items in pxDelayedCoRoutineList here then there is an error! */
|
|
||||||
pxTemp = pxDelayedCoRoutineList;
|
|
||||||
pxDelayedCoRoutineList = pxOverflowDelayedCoRoutineList;
|
|
||||||
pxOverflowDelayedCoRoutineList = pxTemp;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* See if this tick has made a timeout expire. */
|
|
||||||
while( listLIST_IS_EMPTY( pxDelayedCoRoutineList ) == pdFALSE )
|
|
||||||
{
|
|
||||||
pxCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxDelayedCoRoutineList );
|
|
||||||
|
|
||||||
if( xCoRoutineTickCount < listGET_LIST_ITEM_VALUE( &( pxCRCB->xGenericListItem ) ) )
|
|
||||||
{
|
|
||||||
/* Timeout not yet expired. */
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
{
|
|
||||||
/* The event could have occurred just before this critical
|
|
||||||
section. If this is the case then the generic list item will
|
|
||||||
have been moved to the pending ready list and the following
|
|
||||||
line is still valid. Also the pvContainer parameter will have
|
|
||||||
been set to NULL so the following lines are also valid. */
|
|
||||||
( void ) uxListRemove( &( pxCRCB->xGenericListItem ) );
|
|
||||||
|
|
||||||
/* Is the co-routine waiting on an event also? */
|
|
||||||
if( pxCRCB->xEventListItem.pvContainer )
|
|
||||||
{
|
|
||||||
( void ) uxListRemove( &( pxCRCB->xEventListItem ) );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
portENABLE_INTERRUPTS();
|
|
||||||
|
|
||||||
prvAddCoRoutineToReadyQueue( pxCRCB );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
xLastTickCount = xCoRoutineTickCount;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vCoRoutineSchedule( void )
|
|
||||||
{
|
|
||||||
/* See if any co-routines readied by events need moving to the ready lists. */
|
|
||||||
prvCheckPendingReadyList();
|
|
||||||
|
|
||||||
/* See if any delayed co-routines have timed out. */
|
|
||||||
prvCheckDelayedList();
|
|
||||||
|
|
||||||
/* Find the highest priority queue that contains ready co-routines. */
|
|
||||||
while( listLIST_IS_EMPTY( &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) ) )
|
|
||||||
{
|
|
||||||
if( uxTopCoRoutineReadyPriority == 0 )
|
|
||||||
{
|
|
||||||
/* No more co-routines to check. */
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
--uxTopCoRoutineReadyPriority;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* listGET_OWNER_OF_NEXT_ENTRY walks through the list, so the co-routines
|
|
||||||
of the same priority get an equal share of the processor time. */
|
|
||||||
listGET_OWNER_OF_NEXT_ENTRY( pxCurrentCoRoutine, &( pxReadyCoRoutineLists[ uxTopCoRoutineReadyPriority ] ) );
|
|
||||||
|
|
||||||
/* Call the co-routine. */
|
|
||||||
( pxCurrentCoRoutine->pxCoRoutineFunction )( pxCurrentCoRoutine, pxCurrentCoRoutine->uxIndex );
|
|
||||||
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvInitialiseCoRoutineLists( void )
|
|
||||||
{
|
|
||||||
UBaseType_t uxPriority;
|
|
||||||
|
|
||||||
for( uxPriority = 0; uxPriority < configMAX_CO_ROUTINE_PRIORITIES; uxPriority++ )
|
|
||||||
{
|
|
||||||
vListInitialise( ( List_t * ) &( pxReadyCoRoutineLists[ uxPriority ] ) );
|
|
||||||
}
|
|
||||||
|
|
||||||
vListInitialise( ( List_t * ) &xDelayedCoRoutineList1 );
|
|
||||||
vListInitialise( ( List_t * ) &xDelayedCoRoutineList2 );
|
|
||||||
vListInitialise( ( List_t * ) &xPendingReadyCoRoutineList );
|
|
||||||
|
|
||||||
/* Start with pxDelayedCoRoutineList using list1 and the
|
|
||||||
pxOverflowDelayedCoRoutineList using list2. */
|
|
||||||
pxDelayedCoRoutineList = &xDelayedCoRoutineList1;
|
|
||||||
pxOverflowDelayedCoRoutineList = &xDelayedCoRoutineList2;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList )
|
|
||||||
{
|
|
||||||
CRCB_t *pxUnblockedCRCB;
|
|
||||||
BaseType_t xReturn;
|
|
||||||
|
|
||||||
/* This function is called from within an interrupt. It can only access
|
|
||||||
event lists and the pending ready list. This function assumes that a
|
|
||||||
check has already been made to ensure pxEventList is not empty. */
|
|
||||||
pxUnblockedCRCB = ( CRCB_t * ) listGET_OWNER_OF_HEAD_ENTRY( pxEventList );
|
|
||||||
( void ) uxListRemove( &( pxUnblockedCRCB->xEventListItem ) );
|
|
||||||
vListInsertEnd( ( List_t * ) &( xPendingReadyCoRoutineList ), &( pxUnblockedCRCB->xEventListItem ) );
|
|
||||||
|
|
||||||
if( pxUnblockedCRCB->uxPriority >= pxCurrentCoRoutine->uxPriority )
|
|
||||||
{
|
|
||||||
xReturn = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
xReturn = pdFALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configUSE_CO_ROUTINES == 0 */
|
|
||||||
|
|
@ -1,752 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Standard includes. */
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
|
||||||
all the API functions to use the MPU wrappers. That should only be done when
|
|
||||||
task.h is included from an application file. */
|
|
||||||
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
|
|
||||||
|
|
||||||
/* FreeRTOS includes. */
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
#include "timers.h"
|
|
||||||
#include "event_groups.h"
|
|
||||||
|
|
||||||
/* Lint e961 and e750 are suppressed as a MISRA exception justified because the
|
|
||||||
MPU ports require MPU_WRAPPERS_INCLUDED_FROM_API_FILE to be defined for the
|
|
||||||
header files above, but not in this file, in order to generate the correct
|
|
||||||
privileged Vs unprivileged linkage and placement. */
|
|
||||||
#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE /*lint !e961 !e750. */
|
|
||||||
|
|
||||||
/* The following bit fields convey control information in a task's event list
|
|
||||||
item value. It is important they don't clash with the
|
|
||||||
taskEVENT_LIST_ITEM_VALUE_IN_USE definition. */
|
|
||||||
#if configUSE_16_BIT_TICKS == 1
|
|
||||||
#define eventCLEAR_EVENTS_ON_EXIT_BIT 0x0100U
|
|
||||||
#define eventUNBLOCKED_DUE_TO_BIT_SET 0x0200U
|
|
||||||
#define eventWAIT_FOR_ALL_BITS 0x0400U
|
|
||||||
#define eventEVENT_BITS_CONTROL_BYTES 0xff00U
|
|
||||||
#else
|
|
||||||
#define eventCLEAR_EVENTS_ON_EXIT_BIT 0x01000000UL
|
|
||||||
#define eventUNBLOCKED_DUE_TO_BIT_SET 0x02000000UL
|
|
||||||
#define eventWAIT_FOR_ALL_BITS 0x04000000UL
|
|
||||||
#define eventEVENT_BITS_CONTROL_BYTES 0xff000000UL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
typedef struct xEventGroupDefinition
|
|
||||||
{
|
|
||||||
EventBits_t uxEventBits;
|
|
||||||
List_t xTasksWaitingForBits; /*< List of tasks waiting for a bit to be set. */
|
|
||||||
|
|
||||||
#if( configUSE_TRACE_FACILITY == 1 )
|
|
||||||
UBaseType_t uxEventGroupNumber;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if( ( configSUPPORT_STATIC_ALLOCATION == 1 ) && ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) )
|
|
||||||
uint8_t ucStaticallyAllocated; /*< Set to pdTRUE if the event group is statically allocated to ensure no attempt is made to free the memory. */
|
|
||||||
#endif
|
|
||||||
} EventGroup_t;
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Test the bits set in uxCurrentEventBits to see if the wait condition is met.
|
|
||||||
* The wait condition is defined by xWaitForAllBits. If xWaitForAllBits is
|
|
||||||
* pdTRUE then the wait condition is met if all the bits set in uxBitsToWaitFor
|
|
||||||
* are also set in uxCurrentEventBits. If xWaitForAllBits is pdFALSE then the
|
|
||||||
* wait condition is met if any of the bits set in uxBitsToWait for are also set
|
|
||||||
* in uxCurrentEventBits.
|
|
||||||
*/
|
|
||||||
static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
||||||
|
|
||||||
EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer )
|
|
||||||
{
|
|
||||||
EventGroup_t *pxEventBits;
|
|
||||||
|
|
||||||
/* A StaticEventGroup_t object must be provided. */
|
|
||||||
configASSERT( pxEventGroupBuffer );
|
|
||||||
|
|
||||||
/* The user has provided a statically allocated event group - use it. */
|
|
||||||
pxEventBits = ( EventGroup_t * ) pxEventGroupBuffer; /*lint !e740 EventGroup_t and StaticEventGroup_t are guaranteed to have the same size and alignment requirement - checked by configASSERT(). */
|
|
||||||
|
|
||||||
if( pxEventBits != NULL )
|
|
||||||
{
|
|
||||||
pxEventBits->uxEventBits = 0;
|
|
||||||
vListInitialise( &( pxEventBits->xTasksWaitingForBits ) );
|
|
||||||
|
|
||||||
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
||||||
{
|
|
||||||
/* Both static and dynamic allocation can be used, so note that
|
|
||||||
this event group was created statically in case the event group
|
|
||||||
is later deleted. */
|
|
||||||
pxEventBits->ucStaticallyAllocated = pdTRUE;
|
|
||||||
}
|
|
||||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
||||||
|
|
||||||
traceEVENT_GROUP_CREATE( pxEventBits );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_CREATE_FAILED();
|
|
||||||
}
|
|
||||||
|
|
||||||
return ( EventGroupHandle_t ) pxEventBits;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
||||||
|
|
||||||
EventGroupHandle_t xEventGroupCreate( void )
|
|
||||||
{
|
|
||||||
EventGroup_t *pxEventBits;
|
|
||||||
|
|
||||||
/* Allocate the event group. */
|
|
||||||
pxEventBits = ( EventGroup_t * ) pvPortMalloc( sizeof( EventGroup_t ) );
|
|
||||||
|
|
||||||
if( pxEventBits != NULL )
|
|
||||||
{
|
|
||||||
pxEventBits->uxEventBits = 0;
|
|
||||||
vListInitialise( &( pxEventBits->xTasksWaitingForBits ) );
|
|
||||||
|
|
||||||
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
||||||
{
|
|
||||||
/* Both static and dynamic allocation can be used, so note this
|
|
||||||
event group was allocated statically in case the event group is
|
|
||||||
later deleted. */
|
|
||||||
pxEventBits->ucStaticallyAllocated = pdFALSE;
|
|
||||||
}
|
|
||||||
#endif /* configSUPPORT_STATIC_ALLOCATION */
|
|
||||||
|
|
||||||
traceEVENT_GROUP_CREATE( pxEventBits );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_CREATE_FAILED();
|
|
||||||
}
|
|
||||||
|
|
||||||
return ( EventGroupHandle_t ) pxEventBits;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait )
|
|
||||||
{
|
|
||||||
EventBits_t uxOriginalBitValue, uxReturn;
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
BaseType_t xAlreadyYielded;
|
|
||||||
BaseType_t xTimeoutOccurred = pdFALSE;
|
|
||||||
|
|
||||||
configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
||||||
configASSERT( uxBitsToWaitFor != 0 );
|
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
||||||
{
|
|
||||||
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
uxOriginalBitValue = pxEventBits->uxEventBits;
|
|
||||||
|
|
||||||
( void ) xEventGroupSetBits( xEventGroup, uxBitsToSet );
|
|
||||||
|
|
||||||
if( ( ( uxOriginalBitValue | uxBitsToSet ) & uxBitsToWaitFor ) == uxBitsToWaitFor )
|
|
||||||
{
|
|
||||||
/* All the rendezvous bits are now set - no need to block. */
|
|
||||||
uxReturn = ( uxOriginalBitValue | uxBitsToSet );
|
|
||||||
|
|
||||||
/* Rendezvous always clear the bits. They will have been cleared
|
|
||||||
already unless this is the only task in the rendezvous. */
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
||||||
|
|
||||||
xTicksToWait = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
if( xTicksToWait != ( TickType_t ) 0 )
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_SYNC_BLOCK( xEventGroup, uxBitsToSet, uxBitsToWaitFor );
|
|
||||||
|
|
||||||
/* Store the bits that the calling task is waiting for in the
|
|
||||||
task's event list item so the kernel knows when a match is
|
|
||||||
found. Then enter the blocked state. */
|
|
||||||
vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | eventCLEAR_EVENTS_ON_EXIT_BIT | eventWAIT_FOR_ALL_BITS ), xTicksToWait );
|
|
||||||
|
|
||||||
/* This assignment is obsolete as uxReturn will get set after
|
|
||||||
the task unblocks, but some compilers mistakenly generate a
|
|
||||||
warning about uxReturn being returned without being set if the
|
|
||||||
assignment is omitted. */
|
|
||||||
uxReturn = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The rendezvous bits were not set, but no block time was
|
|
||||||
specified - just return the current event bit value. */
|
|
||||||
uxReturn = pxEventBits->uxEventBits;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
xAlreadyYielded = xTaskResumeAll();
|
|
||||||
|
|
||||||
if( xTicksToWait != ( TickType_t ) 0 )
|
|
||||||
{
|
|
||||||
if( xAlreadyYielded == pdFALSE )
|
|
||||||
{
|
|
||||||
portYIELD_WITHIN_API();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The task blocked to wait for its required bits to be set - at this
|
|
||||||
point either the required bits were set or the block time expired. If
|
|
||||||
the required bits were set they will have been stored in the task's
|
|
||||||
event list item, and they should now be retrieved then cleared. */
|
|
||||||
uxReturn = uxTaskResetEventItemValue();
|
|
||||||
|
|
||||||
if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
/* The task timed out, just return the current event bit value. */
|
|
||||||
taskENTER_CRITICAL();
|
|
||||||
{
|
|
||||||
uxReturn = pxEventBits->uxEventBits;
|
|
||||||
|
|
||||||
/* Although the task got here because it timed out before the
|
|
||||||
bits it was waiting for were set, it is possible that since it
|
|
||||||
unblocked another task has set the bits. If this is the case
|
|
||||||
then it needs to clear the bits before exiting. */
|
|
||||||
if( ( uxReturn & uxBitsToWaitFor ) == uxBitsToWaitFor )
|
|
||||||
{
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
taskEXIT_CRITICAL();
|
|
||||||
|
|
||||||
xTimeoutOccurred = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The task unblocked because the bits were set. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Control bits might be set as the task had blocked should not be
|
|
||||||
returned. */
|
|
||||||
uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES;
|
|
||||||
}
|
|
||||||
|
|
||||||
traceEVENT_GROUP_SYNC_END( xEventGroup, uxBitsToSet, uxBitsToWaitFor, xTimeoutOccurred );
|
|
||||||
|
|
||||||
return uxReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait )
|
|
||||||
{
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
EventBits_t uxReturn, uxControlBits = 0;
|
|
||||||
BaseType_t xWaitConditionMet, xAlreadyYielded;
|
|
||||||
BaseType_t xTimeoutOccurred = pdFALSE;
|
|
||||||
|
|
||||||
/* Check the user is not attempting to wait on the bits used by the kernel
|
|
||||||
itself, and that at least one bit is being requested. */
|
|
||||||
configASSERT( xEventGroup );
|
|
||||||
configASSERT( ( uxBitsToWaitFor & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
||||||
configASSERT( uxBitsToWaitFor != 0 );
|
|
||||||
#if ( ( INCLUDE_xTaskGetSchedulerState == 1 ) || ( configUSE_TIMERS == 1 ) )
|
|
||||||
{
|
|
||||||
configASSERT( !( ( xTaskGetSchedulerState() == taskSCHEDULER_SUSPENDED ) && ( xTicksToWait != 0 ) ) );
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
const EventBits_t uxCurrentEventBits = pxEventBits->uxEventBits;
|
|
||||||
|
|
||||||
/* Check to see if the wait condition is already met or not. */
|
|
||||||
xWaitConditionMet = prvTestWaitCondition( uxCurrentEventBits, uxBitsToWaitFor, xWaitForAllBits );
|
|
||||||
|
|
||||||
if( xWaitConditionMet != pdFALSE )
|
|
||||||
{
|
|
||||||
/* The wait condition has already been met so there is no need to
|
|
||||||
block. */
|
|
||||||
uxReturn = uxCurrentEventBits;
|
|
||||||
xTicksToWait = ( TickType_t ) 0;
|
|
||||||
|
|
||||||
/* Clear the wait bits if requested to do so. */
|
|
||||||
if( xClearOnExit != pdFALSE )
|
|
||||||
{
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if( xTicksToWait == ( TickType_t ) 0 )
|
|
||||||
{
|
|
||||||
/* The wait condition has not been met, but no block time was
|
|
||||||
specified, so just return the current value. */
|
|
||||||
uxReturn = uxCurrentEventBits;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The task is going to block to wait for its required bits to be
|
|
||||||
set. uxControlBits are used to remember the specified behaviour of
|
|
||||||
this call to xEventGroupWaitBits() - for use when the event bits
|
|
||||||
unblock the task. */
|
|
||||||
if( xClearOnExit != pdFALSE )
|
|
||||||
{
|
|
||||||
uxControlBits |= eventCLEAR_EVENTS_ON_EXIT_BIT;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( xWaitForAllBits != pdFALSE )
|
|
||||||
{
|
|
||||||
uxControlBits |= eventWAIT_FOR_ALL_BITS;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Store the bits that the calling task is waiting for in the
|
|
||||||
task's event list item so the kernel knows when a match is
|
|
||||||
found. Then enter the blocked state. */
|
|
||||||
vTaskPlaceOnUnorderedEventList( &( pxEventBits->xTasksWaitingForBits ), ( uxBitsToWaitFor | uxControlBits ), xTicksToWait );
|
|
||||||
|
|
||||||
/* This is obsolete as it will get set after the task unblocks, but
|
|
||||||
some compilers mistakenly generate a warning about the variable
|
|
||||||
being returned without being set if it is not done. */
|
|
||||||
uxReturn = 0;
|
|
||||||
|
|
||||||
traceEVENT_GROUP_WAIT_BITS_BLOCK( xEventGroup, uxBitsToWaitFor );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
xAlreadyYielded = xTaskResumeAll();
|
|
||||||
|
|
||||||
if( xTicksToWait != ( TickType_t ) 0 )
|
|
||||||
{
|
|
||||||
if( xAlreadyYielded == pdFALSE )
|
|
||||||
{
|
|
||||||
portYIELD_WITHIN_API();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The task blocked to wait for its required bits to be set - at this
|
|
||||||
point either the required bits were set or the block time expired. If
|
|
||||||
the required bits were set they will have been stored in the task's
|
|
||||||
event list item, and they should now be retrieved then cleared. */
|
|
||||||
uxReturn = uxTaskResetEventItemValue();
|
|
||||||
|
|
||||||
if( ( uxReturn & eventUNBLOCKED_DUE_TO_BIT_SET ) == ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
taskENTER_CRITICAL();
|
|
||||||
{
|
|
||||||
/* The task timed out, just return the current event bit value. */
|
|
||||||
uxReturn = pxEventBits->uxEventBits;
|
|
||||||
|
|
||||||
/* It is possible that the event bits were updated between this
|
|
||||||
task leaving the Blocked state and running again. */
|
|
||||||
if( prvTestWaitCondition( uxReturn, uxBitsToWaitFor, xWaitForAllBits ) != pdFALSE )
|
|
||||||
{
|
|
||||||
if( xClearOnExit != pdFALSE )
|
|
||||||
{
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToWaitFor;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
taskEXIT_CRITICAL();
|
|
||||||
|
|
||||||
/* Prevent compiler warnings when trace macros are not used. */
|
|
||||||
xTimeoutOccurred = pdFALSE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* The task unblocked because the bits were set. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The task blocked so control bits may have been set. */
|
|
||||||
uxReturn &= ~eventEVENT_BITS_CONTROL_BYTES;
|
|
||||||
}
|
|
||||||
traceEVENT_GROUP_WAIT_BITS_END( xEventGroup, uxBitsToWaitFor, xTimeoutOccurred );
|
|
||||||
|
|
||||||
return uxReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear )
|
|
||||||
{
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
EventBits_t uxReturn;
|
|
||||||
|
|
||||||
/* Check the user is not attempting to clear the bits used by the kernel
|
|
||||||
itself. */
|
|
||||||
configASSERT( xEventGroup );
|
|
||||||
configASSERT( ( uxBitsToClear & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
||||||
|
|
||||||
taskENTER_CRITICAL();
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_CLEAR_BITS( xEventGroup, uxBitsToClear );
|
|
||||||
|
|
||||||
/* The value returned is the event group value prior to the bits being
|
|
||||||
cleared. */
|
|
||||||
uxReturn = pxEventBits->uxEventBits;
|
|
||||||
|
|
||||||
/* Clear the bits. */
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToClear;
|
|
||||||
}
|
|
||||||
taskEXIT_CRITICAL();
|
|
||||||
|
|
||||||
return uxReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) )
|
|
||||||
|
|
||||||
BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear )
|
|
||||||
{
|
|
||||||
BaseType_t xReturn;
|
|
||||||
|
|
||||||
traceEVENT_GROUP_CLEAR_BITS_FROM_ISR( xEventGroup, uxBitsToClear );
|
|
||||||
xReturn = xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL );
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup )
|
|
||||||
{
|
|
||||||
UBaseType_t uxSavedInterruptStatus;
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
EventBits_t uxReturn;
|
|
||||||
|
|
||||||
uxSavedInterruptStatus = portSET_INTERRUPT_MASK_FROM_ISR();
|
|
||||||
{
|
|
||||||
uxReturn = pxEventBits->uxEventBits;
|
|
||||||
}
|
|
||||||
portCLEAR_INTERRUPT_MASK_FROM_ISR( uxSavedInterruptStatus );
|
|
||||||
|
|
||||||
return uxReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet )
|
|
||||||
{
|
|
||||||
ListItem_t *pxListItem, *pxNext;
|
|
||||||
ListItem_t const *pxListEnd;
|
|
||||||
List_t *pxList;
|
|
||||||
EventBits_t uxBitsToClear = 0, uxBitsWaitedFor, uxControlBits;
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
BaseType_t xMatchFound = pdFALSE;
|
|
||||||
|
|
||||||
/* Check the user is not attempting to set the bits used by the kernel
|
|
||||||
itself. */
|
|
||||||
configASSERT( xEventGroup );
|
|
||||||
configASSERT( ( uxBitsToSet & eventEVENT_BITS_CONTROL_BYTES ) == 0 );
|
|
||||||
|
|
||||||
pxList = &( pxEventBits->xTasksWaitingForBits );
|
|
||||||
pxListEnd = listGET_END_MARKER( pxList ); /*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_SET_BITS( xEventGroup, uxBitsToSet );
|
|
||||||
|
|
||||||
pxListItem = listGET_HEAD_ENTRY( pxList );
|
|
||||||
|
|
||||||
/* Set the bits. */
|
|
||||||
pxEventBits->uxEventBits |= uxBitsToSet;
|
|
||||||
|
|
||||||
/* See if the new bit value should unblock any tasks. */
|
|
||||||
while( pxListItem != pxListEnd )
|
|
||||||
{
|
|
||||||
pxNext = listGET_NEXT( pxListItem );
|
|
||||||
uxBitsWaitedFor = listGET_LIST_ITEM_VALUE( pxListItem );
|
|
||||||
xMatchFound = pdFALSE;
|
|
||||||
|
|
||||||
/* Split the bits waited for from the control bits. */
|
|
||||||
uxControlBits = uxBitsWaitedFor & eventEVENT_BITS_CONTROL_BYTES;
|
|
||||||
uxBitsWaitedFor &= ~eventEVENT_BITS_CONTROL_BYTES;
|
|
||||||
|
|
||||||
if( ( uxControlBits & eventWAIT_FOR_ALL_BITS ) == ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
/* Just looking for single bit being set. */
|
|
||||||
if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) != ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
xMatchFound = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else if( ( uxBitsWaitedFor & pxEventBits->uxEventBits ) == uxBitsWaitedFor )
|
|
||||||
{
|
|
||||||
/* All bits are set. */
|
|
||||||
xMatchFound = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Need all bits to be set, but not all the bits were set. */
|
|
||||||
}
|
|
||||||
|
|
||||||
if( xMatchFound != pdFALSE )
|
|
||||||
{
|
|
||||||
/* The bits match. Should the bits be cleared on exit? */
|
|
||||||
if( ( uxControlBits & eventCLEAR_EVENTS_ON_EXIT_BIT ) != ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
uxBitsToClear |= uxBitsWaitedFor;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Store the actual event flag value in the task's event list
|
|
||||||
item before removing the task from the event list. The
|
|
||||||
eventUNBLOCKED_DUE_TO_BIT_SET bit is set so the task knows
|
|
||||||
that is was unblocked due to its required bits matching, rather
|
|
||||||
than because it timed out. */
|
|
||||||
( void ) xTaskRemoveFromUnorderedEventList( pxListItem, pxEventBits->uxEventBits | eventUNBLOCKED_DUE_TO_BIT_SET );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Move onto the next list item. Note pxListItem->pxNext is not
|
|
||||||
used here as the list item may have been removed from the event list
|
|
||||||
and inserted into the ready/pending reading list. */
|
|
||||||
pxListItem = pxNext;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Clear any bits that matched when the eventCLEAR_EVENTS_ON_EXIT_BIT
|
|
||||||
bit was set in the control word. */
|
|
||||||
pxEventBits->uxEventBits &= ~uxBitsToClear;
|
|
||||||
}
|
|
||||||
( void ) xTaskResumeAll();
|
|
||||||
|
|
||||||
return pxEventBits->uxEventBits;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vEventGroupDelete( EventGroupHandle_t xEventGroup )
|
|
||||||
{
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
const List_t *pxTasksWaitingForBits = &( pxEventBits->xTasksWaitingForBits );
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
traceEVENT_GROUP_DELETE( xEventGroup );
|
|
||||||
|
|
||||||
while( listCURRENT_LIST_LENGTH( pxTasksWaitingForBits ) > ( UBaseType_t ) 0 )
|
|
||||||
{
|
|
||||||
/* Unblock the task, returning 0 as the event list is being deleted
|
|
||||||
and cannot therefore have any bits set. */
|
|
||||||
configASSERT( pxTasksWaitingForBits->xListEnd.pxNext != ( ListItem_t * ) &( pxTasksWaitingForBits->xListEnd ) );
|
|
||||||
( void ) xTaskRemoveFromUnorderedEventList( pxTasksWaitingForBits->xListEnd.pxNext, eventUNBLOCKED_DUE_TO_BIT_SET );
|
|
||||||
}
|
|
||||||
|
|
||||||
#if( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 0 ) )
|
|
||||||
{
|
|
||||||
/* The event group can only have been allocated dynamically - free
|
|
||||||
it again. */
|
|
||||||
vPortFree( pxEventBits );
|
|
||||||
}
|
|
||||||
#elif( ( configSUPPORT_DYNAMIC_ALLOCATION == 1 ) && ( configSUPPORT_STATIC_ALLOCATION == 1 ) )
|
|
||||||
{
|
|
||||||
/* The event group could have been allocated statically or
|
|
||||||
dynamically, so check before attempting to free the memory. */
|
|
||||||
if( pxEventBits->ucStaticallyAllocated == ( uint8_t ) pdFALSE )
|
|
||||||
{
|
|
||||||
vPortFree( pxEventBits );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif /* configSUPPORT_DYNAMIC_ALLOCATION */
|
|
||||||
}
|
|
||||||
( void ) xTaskResumeAll();
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* For internal use only - execute a 'set bits' command that was pended from
|
|
||||||
an interrupt. */
|
|
||||||
void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet )
|
|
||||||
{
|
|
||||||
( void ) xEventGroupSetBits( pvEventGroup, ( EventBits_t ) ulBitsToSet );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* For internal use only - execute a 'clear bits' command that was pended from
|
|
||||||
an interrupt. */
|
|
||||||
void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear )
|
|
||||||
{
|
|
||||||
( void ) xEventGroupClearBits( pvEventGroup, ( EventBits_t ) ulBitsToClear );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static BaseType_t prvTestWaitCondition( const EventBits_t uxCurrentEventBits, const EventBits_t uxBitsToWaitFor, const BaseType_t xWaitForAllBits )
|
|
||||||
{
|
|
||||||
BaseType_t xWaitConditionMet = pdFALSE;
|
|
||||||
|
|
||||||
if( xWaitForAllBits == pdFALSE )
|
|
||||||
{
|
|
||||||
/* Task only has to wait for one bit within uxBitsToWaitFor to be
|
|
||||||
set. Is one already set? */
|
|
||||||
if( ( uxCurrentEventBits & uxBitsToWaitFor ) != ( EventBits_t ) 0 )
|
|
||||||
{
|
|
||||||
xWaitConditionMet = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Task has to wait for all the bits in uxBitsToWaitFor to be set.
|
|
||||||
Are they set already? */
|
|
||||||
if( ( uxCurrentEventBits & uxBitsToWaitFor ) == uxBitsToWaitFor )
|
|
||||||
{
|
|
||||||
xWaitConditionMet = pdTRUE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return xWaitConditionMet;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if ( ( configUSE_TRACE_FACILITY == 1 ) && ( INCLUDE_xTimerPendFunctionCall == 1 ) && ( configUSE_TIMERS == 1 ) )
|
|
||||||
|
|
||||||
BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken )
|
|
||||||
{
|
|
||||||
BaseType_t xReturn;
|
|
||||||
|
|
||||||
traceEVENT_GROUP_SET_BITS_FROM_ISR( xEventGroup, uxBitsToSet );
|
|
||||||
xReturn = xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken );
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if (configUSE_TRACE_FACILITY == 1)
|
|
||||||
|
|
||||||
UBaseType_t uxEventGroupGetNumber( void* xEventGroup )
|
|
||||||
{
|
|
||||||
UBaseType_t xReturn;
|
|
||||||
EventGroup_t *pxEventBits = ( EventGroup_t * ) xEventGroup;
|
|
||||||
|
|
||||||
if( xEventGroup == NULL )
|
|
||||||
{
|
|
||||||
xReturn = 0;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
xReturn = pxEventBits->uxEventGroupNumber;
|
|
||||||
}
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
@ -1,171 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef STACK_MACROS_H
|
|
||||||
#define STACK_MACROS_H
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Call the stack overflow hook function if the stack of the task being swapped
|
|
||||||
* out is currently overflowed, or looks like it might have overflowed in the
|
|
||||||
* past.
|
|
||||||
*
|
|
||||||
* Setting configCHECK_FOR_STACK_OVERFLOW to 1 will cause the macro to check
|
|
||||||
* the current stack state only - comparing the current top of stack value to
|
|
||||||
* the stack limit. Setting configCHECK_FOR_STACK_OVERFLOW to greater than 1
|
|
||||||
* will also cause the last few stack bytes to be checked to ensure the value
|
|
||||||
* to which the bytes were set when the task was created have not been
|
|
||||||
* overwritten. Note this second test does not guarantee that an overflowed
|
|
||||||
* stack will always be recognised.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH < 0 ) )
|
|
||||||
|
|
||||||
/* Only the current stack state is to be checked. */
|
|
||||||
#define taskCHECK_FOR_STACK_OVERFLOW() \
|
|
||||||
{ \
|
|
||||||
/* Is the currently saved stack pointer within the stack limit? */ \
|
|
||||||
if( pxCurrentTCB->pxTopOfStack <= pxCurrentTCB->pxStack ) \
|
|
||||||
{ \
|
|
||||||
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( ( configCHECK_FOR_STACK_OVERFLOW == 1 ) && ( portSTACK_GROWTH > 0 ) )
|
|
||||||
|
|
||||||
/* Only the current stack state is to be checked. */
|
|
||||||
#define taskCHECK_FOR_STACK_OVERFLOW() \
|
|
||||||
{ \
|
|
||||||
\
|
|
||||||
/* Is the currently saved stack pointer within the stack limit? */ \
|
|
||||||
if( pxCurrentTCB->pxTopOfStack >= pxCurrentTCB->pxEndOfStack ) \
|
|
||||||
{ \
|
|
||||||
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configCHECK_FOR_STACK_OVERFLOW == 1 */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH < 0 ) )
|
|
||||||
|
|
||||||
#define taskCHECK_FOR_STACK_OVERFLOW() \
|
|
||||||
{ \
|
|
||||||
const uint32_t * const pulStack = ( uint32_t * ) pxCurrentTCB->pxStack; \
|
|
||||||
const uint32_t ulCheckValue = ( uint32_t ) 0xa5a5a5a5; \
|
|
||||||
\
|
|
||||||
if( ( pulStack[ 0 ] != ulCheckValue ) || \
|
|
||||||
( pulStack[ 1 ] != ulCheckValue ) || \
|
|
||||||
( pulStack[ 2 ] != ulCheckValue ) || \
|
|
||||||
( pulStack[ 3 ] != ulCheckValue ) ) \
|
|
||||||
{ \
|
|
||||||
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( ( configCHECK_FOR_STACK_OVERFLOW > 1 ) && ( portSTACK_GROWTH > 0 ) )
|
|
||||||
|
|
||||||
#define taskCHECK_FOR_STACK_OVERFLOW() \
|
|
||||||
{ \
|
|
||||||
int8_t *pcEndOfStack = ( int8_t * ) pxCurrentTCB->pxEndOfStack; \
|
|
||||||
static const uint8_t ucExpectedStackBytes[] = { tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
|
|
||||||
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
|
|
||||||
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
|
|
||||||
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, \
|
|
||||||
tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE, tskSTACK_FILL_BYTE }; \
|
|
||||||
\
|
|
||||||
\
|
|
||||||
pcEndOfStack -= sizeof( ucExpectedStackBytes ); \
|
|
||||||
\
|
|
||||||
/* Has the extremity of the task stack ever been written over? */ \
|
|
||||||
if( memcmp( ( void * ) pcEndOfStack, ( void * ) ucExpectedStackBytes, sizeof( ucExpectedStackBytes ) ) != 0 ) \
|
|
||||||
{ \
|
|
||||||
vApplicationStackOverflowHook( ( TaskHandle_t ) pxCurrentTCB, pxCurrentTCB->pcTaskName ); \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* #if( configCHECK_FOR_STACK_OVERFLOW > 1 ) */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Remove stack overflow macro if not being used. */
|
|
||||||
#ifndef taskCHECK_FOR_STACK_OVERFLOW
|
|
||||||
#define taskCHECK_FOR_STACK_OVERFLOW()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* STACK_MACROS_H */
|
|
||||||
|
|
@ -1,762 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef CO_ROUTINE_H
|
|
||||||
#define CO_ROUTINE_H
|
|
||||||
|
|
||||||
#ifndef INC_FREERTOS_H
|
|
||||||
#error "include FreeRTOS.h must appear in source files before include croutine.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "list.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Used to hide the implementation of the co-routine control block. The
|
|
||||||
control block structure however has to be included in the header due to
|
|
||||||
the macro implementation of the co-routine functionality. */
|
|
||||||
typedef void * CoRoutineHandle_t;
|
|
||||||
|
|
||||||
/* Defines the prototype to which co-routine functions must conform. */
|
|
||||||
typedef void (*crCOROUTINE_CODE)( CoRoutineHandle_t, UBaseType_t );
|
|
||||||
|
|
||||||
typedef struct corCoRoutineControlBlock
|
|
||||||
{
|
|
||||||
crCOROUTINE_CODE pxCoRoutineFunction;
|
|
||||||
ListItem_t xGenericListItem; /*< List item used to place the CRCB in ready and blocked queues. */
|
|
||||||
ListItem_t xEventListItem; /*< List item used to place the CRCB in event lists. */
|
|
||||||
UBaseType_t uxPriority; /*< The priority of the co-routine in relation to other co-routines. */
|
|
||||||
UBaseType_t uxIndex; /*< Used to distinguish between co-routines when multiple co-routines use the same co-routine function. */
|
|
||||||
uint16_t uxState; /*< Used internally by the co-routine implementation. */
|
|
||||||
} CRCB_t; /* Co-routine control block. Note must be identical in size down to uxPriority with TCB_t. */
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
*<pre>
|
|
||||||
BaseType_t xCoRoutineCreate(
|
|
||||||
crCOROUTINE_CODE pxCoRoutineCode,
|
|
||||||
UBaseType_t uxPriority,
|
|
||||||
UBaseType_t uxIndex
|
|
||||||
);</pre>
|
|
||||||
*
|
|
||||||
* Create a new co-routine and add it to the list of co-routines that are
|
|
||||||
* ready to run.
|
|
||||||
*
|
|
||||||
* @param pxCoRoutineCode Pointer to the co-routine function. Co-routine
|
|
||||||
* functions require special syntax - see the co-routine section of the WEB
|
|
||||||
* documentation for more information.
|
|
||||||
*
|
|
||||||
* @param uxPriority The priority with respect to other co-routines at which
|
|
||||||
* the co-routine will run.
|
|
||||||
*
|
|
||||||
* @param uxIndex Used to distinguish between different co-routines that
|
|
||||||
* execute the same function. See the example below and the co-routine section
|
|
||||||
* of the WEB documentation for further information.
|
|
||||||
*
|
|
||||||
* @return pdPASS if the co-routine was successfully created and added to a ready
|
|
||||||
* list, otherwise an error code defined with ProjDefs.h.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Co-routine to be created.
|
|
||||||
void vFlashCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
// This may not be necessary for const variables.
|
|
||||||
static const char cLedToFlash[ 2 ] = { 5, 6 };
|
|
||||||
static const TickType_t uxFlashRates[ 2 ] = { 200, 400 };
|
|
||||||
|
|
||||||
// Must start every co-routine with a call to crSTART();
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// This co-routine just delays for a fixed period, then toggles
|
|
||||||
// an LED. Two co-routines are created using this function, so
|
|
||||||
// the uxIndex parameter is used to tell the co-routine which
|
|
||||||
// LED to flash and how int32_t to delay. This assumes xQueue has
|
|
||||||
// already been created.
|
|
||||||
vParTestToggleLED( cLedToFlash[ uxIndex ] );
|
|
||||||
crDELAY( xHandle, uxFlashRates[ uxIndex ] );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Must end every co-routine with a call to crEND();
|
|
||||||
crEND();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Function that creates two co-routines.
|
|
||||||
void vOtherFunction( void )
|
|
||||||
{
|
|
||||||
uint8_t ucParameterToPass;
|
|
||||||
TaskHandle_t xHandle;
|
|
||||||
|
|
||||||
// Create two co-routines at priority 0. The first is given index 0
|
|
||||||
// so (from the code above) toggles LED 5 every 200 ticks. The second
|
|
||||||
// is given index 1 so toggles LED 6 every 400 ticks.
|
|
||||||
for( uxIndex = 0; uxIndex < 2; uxIndex++ )
|
|
||||||
{
|
|
||||||
xCoRoutineCreate( vFlashCoRoutine, 0, uxIndex );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xCoRoutineCreate xCoRoutineCreate
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
BaseType_t xCoRoutineCreate( crCOROUTINE_CODE pxCoRoutineCode, UBaseType_t uxPriority, UBaseType_t uxIndex );
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
*<pre>
|
|
||||||
void vCoRoutineSchedule( void );</pre>
|
|
||||||
*
|
|
||||||
* Run a co-routine.
|
|
||||||
*
|
|
||||||
* vCoRoutineSchedule() executes the highest priority co-routine that is able
|
|
||||||
* to run. The co-routine will execute until it either blocks, yields or is
|
|
||||||
* preempted by a task. Co-routines execute cooperatively so one
|
|
||||||
* co-routine cannot be preempted by another, but can be preempted by a task.
|
|
||||||
*
|
|
||||||
* If an application comprises of both tasks and co-routines then
|
|
||||||
* vCoRoutineSchedule should be called from the idle task (in an idle task
|
|
||||||
* hook).
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// This idle task hook will schedule a co-routine each time it is called.
|
|
||||||
// The rest of the idle task will execute between co-routine calls.
|
|
||||||
void vApplicationIdleHook( void )
|
|
||||||
{
|
|
||||||
vCoRoutineSchedule();
|
|
||||||
}
|
|
||||||
|
|
||||||
// Alternatively, if you do not require any other part of the idle task to
|
|
||||||
// execute, the idle task hook can call vCoRoutineScheduler() within an
|
|
||||||
// infinite loop.
|
|
||||||
void vApplicationIdleHook( void )
|
|
||||||
{
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
vCoRoutineSchedule();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup vCoRoutineSchedule vCoRoutineSchedule
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
void vCoRoutineSchedule( void );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
* <pre>
|
|
||||||
crSTART( CoRoutineHandle_t xHandle );</pre>
|
|
||||||
*
|
|
||||||
* This macro MUST always be called at the start of a co-routine function.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Co-routine to be created.
|
|
||||||
void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
static int32_t ulAVariable;
|
|
||||||
|
|
||||||
// Must start every co-routine with a call to crSTART();
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Co-routine functionality goes here.
|
|
||||||
}
|
|
||||||
|
|
||||||
// Must end every co-routine with a call to crEND();
|
|
||||||
crEND();
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crSTART crSTART
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crSTART( pxCRCB ) switch( ( ( CRCB_t * )( pxCRCB ) )->uxState ) { case 0:
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
* <pre>
|
|
||||||
crEND();</pre>
|
|
||||||
*
|
|
||||||
* This macro MUST always be called at the end of a co-routine function.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Co-routine to be created.
|
|
||||||
void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
static int32_t ulAVariable;
|
|
||||||
|
|
||||||
// Must start every co-routine with a call to crSTART();
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Co-routine functionality goes here.
|
|
||||||
}
|
|
||||||
|
|
||||||
// Must end every co-routine with a call to crEND();
|
|
||||||
crEND();
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crSTART crSTART
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crEND() }
|
|
||||||
|
|
||||||
/*
|
|
||||||
* These macros are intended for internal use by the co-routine implementation
|
|
||||||
* only. The macros should not be used directly by application writers.
|
|
||||||
*/
|
|
||||||
#define crSET_STATE0( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = (__LINE__ * 2); return; case (__LINE__ * 2):
|
|
||||||
#define crSET_STATE1( xHandle ) ( ( CRCB_t * )( xHandle ) )->uxState = ((__LINE__ * 2)+1); return; case ((__LINE__ * 2)+1):
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
*<pre>
|
|
||||||
crDELAY( CoRoutineHandle_t xHandle, TickType_t xTicksToDelay );</pre>
|
|
||||||
*
|
|
||||||
* Delay a co-routine for a fixed period of time.
|
|
||||||
*
|
|
||||||
* crDELAY can only be called from the co-routine function itself - not
|
|
||||||
* from within a function called by the co-routine function. This is because
|
|
||||||
* co-routines do not maintain their own stack.
|
|
||||||
*
|
|
||||||
* @param xHandle The handle of the co-routine to delay. This is the xHandle
|
|
||||||
* parameter of the co-routine function.
|
|
||||||
*
|
|
||||||
* @param xTickToDelay The number of ticks that the co-routine should delay
|
|
||||||
* for. The actual amount of time this equates to is defined by
|
|
||||||
* configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant portTICK_PERIOD_MS
|
|
||||||
* can be used to convert ticks to milliseconds.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Co-routine to be created.
|
|
||||||
void vACoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
// This may not be necessary for const variables.
|
|
||||||
// We are to delay for 200ms.
|
|
||||||
static const xTickType xDelayTime = 200 / portTICK_PERIOD_MS;
|
|
||||||
|
|
||||||
// Must start every co-routine with a call to crSTART();
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Delay for 200ms.
|
|
||||||
crDELAY( xHandle, xDelayTime );
|
|
||||||
|
|
||||||
// Do something here.
|
|
||||||
}
|
|
||||||
|
|
||||||
// Must end every co-routine with a call to crEND();
|
|
||||||
crEND();
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crDELAY crDELAY
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crDELAY( xHandle, xTicksToDelay ) \
|
|
||||||
if( ( xTicksToDelay ) > 0 ) \
|
|
||||||
{ \
|
|
||||||
vCoRoutineAddToDelayedList( ( xTicksToDelay ), NULL ); \
|
|
||||||
} \
|
|
||||||
crSET_STATE0( ( xHandle ) );
|
|
||||||
|
|
||||||
/**
|
|
||||||
* <pre>
|
|
||||||
crQUEUE_SEND(
|
|
||||||
CoRoutineHandle_t xHandle,
|
|
||||||
QueueHandle_t pxQueue,
|
|
||||||
void *pvItemToQueue,
|
|
||||||
TickType_t xTicksToWait,
|
|
||||||
BaseType_t *pxResult
|
|
||||||
)</pre>
|
|
||||||
*
|
|
||||||
* The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine
|
|
||||||
* equivalent to the xQueueSend() and xQueueReceive() functions used by tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas
|
|
||||||
* xQueueSend() and xQueueReceive() can only be used from tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND can only be called from the co-routine function itself - not
|
|
||||||
* from within a function called by the co-routine function. This is because
|
|
||||||
* co-routines do not maintain their own stack.
|
|
||||||
*
|
|
||||||
* See the co-routine section of the WEB documentation for information on
|
|
||||||
* passing data between tasks and co-routines and between ISR's and
|
|
||||||
* co-routines.
|
|
||||||
*
|
|
||||||
* @param xHandle The handle of the calling co-routine. This is the xHandle
|
|
||||||
* parameter of the co-routine function.
|
|
||||||
*
|
|
||||||
* @param pxQueue The handle of the queue on which the data will be posted.
|
|
||||||
* The handle is obtained as the return value when the queue is created using
|
|
||||||
* the xQueueCreate() API function.
|
|
||||||
*
|
|
||||||
* @param pvItemToQueue A pointer to the data being posted onto the queue.
|
|
||||||
* The number of bytes of each queued item is specified when the queue is
|
|
||||||
* created. This number of bytes is copied from pvItemToQueue into the queue
|
|
||||||
* itself.
|
|
||||||
*
|
|
||||||
* @param xTickToDelay The number of ticks that the co-routine should block
|
|
||||||
* to wait for space to become available on the queue, should space not be
|
|
||||||
* available immediately. The actual amount of time this equates to is defined
|
|
||||||
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
|
||||||
* portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see example
|
|
||||||
* below).
|
|
||||||
*
|
|
||||||
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
|
||||||
* data was successfully posted onto the queue, otherwise it will be set to an
|
|
||||||
* error defined within ProjDefs.h.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Co-routine function that blocks for a fixed period then posts a number onto
|
|
||||||
// a queue.
|
|
||||||
static void prvCoRoutineFlashTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
static BaseType_t xNumberToPost = 0;
|
|
||||||
static BaseType_t xResult;
|
|
||||||
|
|
||||||
// Co-routines must begin with a call to crSTART().
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// This assumes the queue has already been created.
|
|
||||||
crQUEUE_SEND( xHandle, xCoRoutineQueue, &xNumberToPost, NO_DELAY, &xResult );
|
|
||||||
|
|
||||||
if( xResult != pdPASS )
|
|
||||||
{
|
|
||||||
// The message was not posted!
|
|
||||||
}
|
|
||||||
|
|
||||||
// Increment the number to be posted onto the queue.
|
|
||||||
xNumberToPost++;
|
|
||||||
|
|
||||||
// Delay for 100 ticks.
|
|
||||||
crDELAY( xHandle, 100 );
|
|
||||||
}
|
|
||||||
|
|
||||||
// Co-routines must end with a call to crEND().
|
|
||||||
crEND();
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crQUEUE_SEND crQUEUE_SEND
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crQUEUE_SEND( xHandle, pxQueue, pvItemToQueue, xTicksToWait, pxResult ) \
|
|
||||||
{ \
|
|
||||||
*( pxResult ) = xQueueCRSend( ( pxQueue) , ( pvItemToQueue) , ( xTicksToWait ) ); \
|
|
||||||
if( *( pxResult ) == errQUEUE_BLOCKED ) \
|
|
||||||
{ \
|
|
||||||
crSET_STATE0( ( xHandle ) ); \
|
|
||||||
*pxResult = xQueueCRSend( ( pxQueue ), ( pvItemToQueue ), 0 ); \
|
|
||||||
} \
|
|
||||||
if( *pxResult == errQUEUE_YIELD ) \
|
|
||||||
{ \
|
|
||||||
crSET_STATE1( ( xHandle ) ); \
|
|
||||||
*pxResult = pdPASS; \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
* <pre>
|
|
||||||
crQUEUE_RECEIVE(
|
|
||||||
CoRoutineHandle_t xHandle,
|
|
||||||
QueueHandle_t pxQueue,
|
|
||||||
void *pvBuffer,
|
|
||||||
TickType_t xTicksToWait,
|
|
||||||
BaseType_t *pxResult
|
|
||||||
)</pre>
|
|
||||||
*
|
|
||||||
* The macro's crQUEUE_SEND() and crQUEUE_RECEIVE() are the co-routine
|
|
||||||
* equivalent to the xQueueSend() and xQueueReceive() functions used by tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND and crQUEUE_RECEIVE can only be used from a co-routine whereas
|
|
||||||
* xQueueSend() and xQueueReceive() can only be used from tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_RECEIVE can only be called from the co-routine function itself - not
|
|
||||||
* from within a function called by the co-routine function. This is because
|
|
||||||
* co-routines do not maintain their own stack.
|
|
||||||
*
|
|
||||||
* See the co-routine section of the WEB documentation for information on
|
|
||||||
* passing data between tasks and co-routines and between ISR's and
|
|
||||||
* co-routines.
|
|
||||||
*
|
|
||||||
* @param xHandle The handle of the calling co-routine. This is the xHandle
|
|
||||||
* parameter of the co-routine function.
|
|
||||||
*
|
|
||||||
* @param pxQueue The handle of the queue from which the data will be received.
|
|
||||||
* The handle is obtained as the return value when the queue is created using
|
|
||||||
* the xQueueCreate() API function.
|
|
||||||
*
|
|
||||||
* @param pvBuffer The buffer into which the received item is to be copied.
|
|
||||||
* The number of bytes of each queued item is specified when the queue is
|
|
||||||
* created. This number of bytes is copied into pvBuffer.
|
|
||||||
*
|
|
||||||
* @param xTickToDelay The number of ticks that the co-routine should block
|
|
||||||
* to wait for data to become available from the queue, should data not be
|
|
||||||
* available immediately. The actual amount of time this equates to is defined
|
|
||||||
* by configTICK_RATE_HZ (set in FreeRTOSConfig.h). The constant
|
|
||||||
* portTICK_PERIOD_MS can be used to convert ticks to milliseconds (see the
|
|
||||||
* crQUEUE_SEND example).
|
|
||||||
*
|
|
||||||
* @param pxResult The variable pointed to by pxResult will be set to pdPASS if
|
|
||||||
* data was successfully retrieved from the queue, otherwise it will be set to
|
|
||||||
* an error code as defined within ProjDefs.h.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// A co-routine receives the number of an LED to flash from a queue. It
|
|
||||||
// blocks on the queue until the number is received.
|
|
||||||
static void prvCoRoutineFlashWorkTask( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// Variables in co-routines must be declared static if they must maintain value across a blocking call.
|
|
||||||
static BaseType_t xResult;
|
|
||||||
static UBaseType_t uxLEDToFlash;
|
|
||||||
|
|
||||||
// All co-routines must start with a call to crSTART().
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Wait for data to become available on the queue.
|
|
||||||
crQUEUE_RECEIVE( xHandle, xCoRoutineQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );
|
|
||||||
|
|
||||||
if( xResult == pdPASS )
|
|
||||||
{
|
|
||||||
// We received the LED to flash - flash it!
|
|
||||||
vParTestToggleLED( uxLEDToFlash );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
crEND();
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crQUEUE_RECEIVE crQUEUE_RECEIVE
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crQUEUE_RECEIVE( xHandle, pxQueue, pvBuffer, xTicksToWait, pxResult ) \
|
|
||||||
{ \
|
|
||||||
*( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), ( xTicksToWait ) ); \
|
|
||||||
if( *( pxResult ) == errQUEUE_BLOCKED ) \
|
|
||||||
{ \
|
|
||||||
crSET_STATE0( ( xHandle ) ); \
|
|
||||||
*( pxResult ) = xQueueCRReceive( ( pxQueue) , ( pvBuffer ), 0 ); \
|
|
||||||
} \
|
|
||||||
if( *( pxResult ) == errQUEUE_YIELD ) \
|
|
||||||
{ \
|
|
||||||
crSET_STATE1( ( xHandle ) ); \
|
|
||||||
*( pxResult ) = pdPASS; \
|
|
||||||
} \
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
* <pre>
|
|
||||||
crQUEUE_SEND_FROM_ISR(
|
|
||||||
QueueHandle_t pxQueue,
|
|
||||||
void *pvItemToQueue,
|
|
||||||
BaseType_t xCoRoutinePreviouslyWoken
|
|
||||||
)</pre>
|
|
||||||
*
|
|
||||||
* The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the
|
|
||||||
* co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR()
|
|
||||||
* functions used by tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to
|
|
||||||
* pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and
|
|
||||||
* xQueueReceiveFromISR() can only be used to pass data between a task and and
|
|
||||||
* ISR.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND_FROM_ISR can only be called from an ISR to send data to a queue
|
|
||||||
* that is being used from within a co-routine.
|
|
||||||
*
|
|
||||||
* See the co-routine section of the WEB documentation for information on
|
|
||||||
* passing data between tasks and co-routines and between ISR's and
|
|
||||||
* co-routines.
|
|
||||||
*
|
|
||||||
* @param xQueue The handle to the queue on which the item is to be posted.
|
|
||||||
*
|
|
||||||
* @param pvItemToQueue A pointer to the item that is to be placed on the
|
|
||||||
* queue. The size of the items the queue will hold was defined when the
|
|
||||||
* queue was created, so this many bytes will be copied from pvItemToQueue
|
|
||||||
* into the queue storage area.
|
|
||||||
*
|
|
||||||
* @param xCoRoutinePreviouslyWoken This is included so an ISR can post onto
|
|
||||||
* the same queue multiple times from a single interrupt. The first call
|
|
||||||
* should always pass in pdFALSE. Subsequent calls should pass in
|
|
||||||
* the value returned from the previous call.
|
|
||||||
*
|
|
||||||
* @return pdTRUE if a co-routine was woken by posting onto the queue. This is
|
|
||||||
* used by the ISR to determine if a context switch may be required following
|
|
||||||
* the ISR.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// A co-routine that blocks on a queue waiting for characters to be received.
|
|
||||||
static void vReceivingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
char cRxedChar;
|
|
||||||
BaseType_t xResult;
|
|
||||||
|
|
||||||
// All co-routines must start with a call to crSTART().
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Wait for data to become available on the queue. This assumes the
|
|
||||||
// queue xCommsRxQueue has already been created!
|
|
||||||
crQUEUE_RECEIVE( xHandle, xCommsRxQueue, &uxLEDToFlash, portMAX_DELAY, &xResult );
|
|
||||||
|
|
||||||
// Was a character received?
|
|
||||||
if( xResult == pdPASS )
|
|
||||||
{
|
|
||||||
// Process the character here.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// All co-routines must end with a call to crEND().
|
|
||||||
crEND();
|
|
||||||
}
|
|
||||||
|
|
||||||
// An ISR that uses a queue to send characters received on a serial port to
|
|
||||||
// a co-routine.
|
|
||||||
void vUART_ISR( void )
|
|
||||||
{
|
|
||||||
char cRxedChar;
|
|
||||||
BaseType_t xCRWokenByPost = pdFALSE;
|
|
||||||
|
|
||||||
// We loop around reading characters until there are none left in the UART.
|
|
||||||
while( UART_RX_REG_NOT_EMPTY() )
|
|
||||||
{
|
|
||||||
// Obtain the character from the UART.
|
|
||||||
cRxedChar = UART_RX_REG;
|
|
||||||
|
|
||||||
// Post the character onto a queue. xCRWokenByPost will be pdFALSE
|
|
||||||
// the first time around the loop. If the post causes a co-routine
|
|
||||||
// to be woken (unblocked) then xCRWokenByPost will be set to pdTRUE.
|
|
||||||
// In this manner we can ensure that if more than one co-routine is
|
|
||||||
// blocked on the queue only one is woken by this ISR no matter how
|
|
||||||
// many characters are posted to the queue.
|
|
||||||
xCRWokenByPost = crQUEUE_SEND_FROM_ISR( xCommsRxQueue, &cRxedChar, xCRWokenByPost );
|
|
||||||
}
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crQUEUE_SEND_FROM_ISR crQUEUE_SEND_FROM_ISR
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crQUEUE_SEND_FROM_ISR( pxQueue, pvItemToQueue, xCoRoutinePreviouslyWoken ) xQueueCRSendFromISR( ( pxQueue ), ( pvItemToQueue ), ( xCoRoutinePreviouslyWoken ) )
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* croutine. h
|
|
||||||
* <pre>
|
|
||||||
crQUEUE_SEND_FROM_ISR(
|
|
||||||
QueueHandle_t pxQueue,
|
|
||||||
void *pvBuffer,
|
|
||||||
BaseType_t * pxCoRoutineWoken
|
|
||||||
)</pre>
|
|
||||||
*
|
|
||||||
* The macro's crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() are the
|
|
||||||
* co-routine equivalent to the xQueueSendFromISR() and xQueueReceiveFromISR()
|
|
||||||
* functions used by tasks.
|
|
||||||
*
|
|
||||||
* crQUEUE_SEND_FROM_ISR() and crQUEUE_RECEIVE_FROM_ISR() can only be used to
|
|
||||||
* pass data between a co-routine and and ISR, whereas xQueueSendFromISR() and
|
|
||||||
* xQueueReceiveFromISR() can only be used to pass data between a task and and
|
|
||||||
* ISR.
|
|
||||||
*
|
|
||||||
* crQUEUE_RECEIVE_FROM_ISR can only be called from an ISR to receive data
|
|
||||||
* from a queue that is being used from within a co-routine (a co-routine
|
|
||||||
* posted to the queue).
|
|
||||||
*
|
|
||||||
* See the co-routine section of the WEB documentation for information on
|
|
||||||
* passing data between tasks and co-routines and between ISR's and
|
|
||||||
* co-routines.
|
|
||||||
*
|
|
||||||
* @param xQueue The handle to the queue on which the item is to be posted.
|
|
||||||
*
|
|
||||||
* @param pvBuffer A pointer to a buffer into which the received item will be
|
|
||||||
* placed. The size of the items the queue will hold was defined when the
|
|
||||||
* queue was created, so this many bytes will be copied from the queue into
|
|
||||||
* pvBuffer.
|
|
||||||
*
|
|
||||||
* @param pxCoRoutineWoken A co-routine may be blocked waiting for space to become
|
|
||||||
* available on the queue. If crQUEUE_RECEIVE_FROM_ISR causes such a
|
|
||||||
* co-routine to unblock *pxCoRoutineWoken will get set to pdTRUE, otherwise
|
|
||||||
* *pxCoRoutineWoken will remain unchanged.
|
|
||||||
*
|
|
||||||
* @return pdTRUE an item was successfully received from the queue, otherwise
|
|
||||||
* pdFALSE.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// A co-routine that posts a character to a queue then blocks for a fixed
|
|
||||||
// period. The character is incremented each time.
|
|
||||||
static void vSendingCoRoutine( CoRoutineHandle_t xHandle, UBaseType_t uxIndex )
|
|
||||||
{
|
|
||||||
// cChar holds its value while this co-routine is blocked and must therefore
|
|
||||||
// be declared static.
|
|
||||||
static char cCharToTx = 'a';
|
|
||||||
BaseType_t xResult;
|
|
||||||
|
|
||||||
// All co-routines must start with a call to crSTART().
|
|
||||||
crSTART( xHandle );
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Send the next character to the queue.
|
|
||||||
crQUEUE_SEND( xHandle, xCoRoutineQueue, &cCharToTx, NO_DELAY, &xResult );
|
|
||||||
|
|
||||||
if( xResult == pdPASS )
|
|
||||||
{
|
|
||||||
// The character was successfully posted to the queue.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Could not post the character to the queue.
|
|
||||||
}
|
|
||||||
|
|
||||||
// Enable the UART Tx interrupt to cause an interrupt in this
|
|
||||||
// hypothetical UART. The interrupt will obtain the character
|
|
||||||
// from the queue and send it.
|
|
||||||
ENABLE_RX_INTERRUPT();
|
|
||||||
|
|
||||||
// Increment to the next character then block for a fixed period.
|
|
||||||
// cCharToTx will maintain its value across the delay as it is
|
|
||||||
// declared static.
|
|
||||||
cCharToTx++;
|
|
||||||
if( cCharToTx > 'x' )
|
|
||||||
{
|
|
||||||
cCharToTx = 'a';
|
|
||||||
}
|
|
||||||
crDELAY( 100 );
|
|
||||||
}
|
|
||||||
|
|
||||||
// All co-routines must end with a call to crEND().
|
|
||||||
crEND();
|
|
||||||
}
|
|
||||||
|
|
||||||
// An ISR that uses a queue to receive characters to send on a UART.
|
|
||||||
void vUART_ISR( void )
|
|
||||||
{
|
|
||||||
char cCharToTx;
|
|
||||||
BaseType_t xCRWokenByPost = pdFALSE;
|
|
||||||
|
|
||||||
while( UART_TX_REG_EMPTY() )
|
|
||||||
{
|
|
||||||
// Are there any characters in the queue waiting to be sent?
|
|
||||||
// xCRWokenByPost will automatically be set to pdTRUE if a co-routine
|
|
||||||
// is woken by the post - ensuring that only a single co-routine is
|
|
||||||
// woken no matter how many times we go around this loop.
|
|
||||||
if( crQUEUE_RECEIVE_FROM_ISR( pxQueue, &cCharToTx, &xCRWokenByPost ) )
|
|
||||||
{
|
|
||||||
SEND_CHARACTER( cCharToTx );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}</pre>
|
|
||||||
* \defgroup crQUEUE_RECEIVE_FROM_ISR crQUEUE_RECEIVE_FROM_ISR
|
|
||||||
* \ingroup Tasks
|
|
||||||
*/
|
|
||||||
#define crQUEUE_RECEIVE_FROM_ISR( pxQueue, pvBuffer, pxCoRoutineWoken ) xQueueCRReceiveFromISR( ( pxQueue ), ( pvBuffer ), ( pxCoRoutineWoken ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This function is intended for internal use by the co-routine macros only.
|
|
||||||
* The macro nature of the co-routine implementation requires that the
|
|
||||||
* prototype appears here. The function should not be used by application
|
|
||||||
* writers.
|
|
||||||
*
|
|
||||||
* Removes the current co-routine from its ready list and places it in the
|
|
||||||
* appropriate delayed list.
|
|
||||||
*/
|
|
||||||
void vCoRoutineAddToDelayedList( TickType_t xTicksToDelay, List_t *pxEventList );
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This function is intended for internal use by the queue implementation only.
|
|
||||||
* The function should not be used by application writers.
|
|
||||||
*
|
|
||||||
* Removes the highest priority co-routine from the event list and places it in
|
|
||||||
* the pending ready list.
|
|
||||||
*/
|
|
||||||
BaseType_t xCoRoutineRemoveFromEventList( const List_t *pxEventList );
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* CO_ROUTINE_H */
|
|
@ -1,321 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef DEPRECATED_DEFINITIONS_H
|
|
||||||
#define DEPRECATED_DEFINITIONS_H
|
|
||||||
|
|
||||||
|
|
||||||
/* Each FreeRTOS port has a unique portmacro.h header file. Originally a
|
|
||||||
pre-processor definition was used to ensure the pre-processor found the correct
|
|
||||||
portmacro.h file for the port being used. That scheme was deprecated in favour
|
|
||||||
of setting the compiler's include path such that it found the correct
|
|
||||||
portmacro.h file - removing the need for the constant and allowing the
|
|
||||||
portmacro.h file to be located anywhere in relation to the port being used. The
|
|
||||||
definitions below remain in the code for backward compatibility only. New
|
|
||||||
projects should not use them. */
|
|
||||||
|
|
||||||
#ifdef OPEN_WATCOM_INDUSTRIAL_PC_PORT
|
|
||||||
#include "..\..\Source\portable\owatcom\16bitdos\pc\portmacro.h"
|
|
||||||
typedef void ( __interrupt __far *pxISR )();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef OPEN_WATCOM_FLASH_LITE_186_PORT
|
|
||||||
#include "..\..\Source\portable\owatcom\16bitdos\flsh186\portmacro.h"
|
|
||||||
typedef void ( __interrupt __far *pxISR )();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_MEGA_AVR
|
|
||||||
#include "../portable/GCC/ATMega323/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IAR_MEGA_AVR
|
|
||||||
#include "../portable/IAR/ATMega323/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MPLAB_PIC24_PORT
|
|
||||||
#include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MPLAB_DSPIC_PORT
|
|
||||||
#include "../../Source/portable/MPLAB/PIC24_dsPIC/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MPLAB_PIC18F_PORT
|
|
||||||
#include "../../Source/portable/MPLAB/PIC18F/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MPLAB_PIC32MX_PORT
|
|
||||||
#include "../../Source/portable/MPLAB/PIC32MX/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _FEDPICC
|
|
||||||
#include "libFreeRTOS/Include/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SDCC_CYGNAL
|
|
||||||
#include "../../Source/portable/SDCC/Cygnal/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_ARM7
|
|
||||||
#include "../../Source/portable/GCC/ARM7_LPC2000/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_ARM7_ECLIPSE
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ROWLEY_LPC23xx
|
|
||||||
#include "../../Source/portable/GCC/ARM7_LPC23xx/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IAR_MSP430
|
|
||||||
#include "..\..\Source\portable\IAR\MSP430\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_MSP430
|
|
||||||
#include "../../Source/portable/GCC/MSP430F449/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ROWLEY_MSP430
|
|
||||||
#include "../../Source/portable/Rowley/MSP430F449/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef ARM7_LPC21xx_KEIL_RVDS
|
|
||||||
#include "..\..\Source\portable\RVDS\ARM7_LPC21xx\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SAM7_GCC
|
|
||||||
#include "../../Source/portable/GCC/ARM7_AT91SAM7S/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SAM7_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\AtmelSAM7S64\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef SAM9XE_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\AtmelSAM9XE\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef LPC2000_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\LPC2000\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STR71X_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\STR71x\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STR75X_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\STR75x\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STR75X_GCC
|
|
||||||
#include "..\..\Source\portable\GCC\STR75x\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef STR91X_IAR
|
|
||||||
#include "..\..\Source\portable\IAR\STR91x\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_H8S
|
|
||||||
#include "../../Source/portable/GCC/H8S2329/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_AT91FR40008
|
|
||||||
#include "../../Source/portable/GCC/ARM7_AT91FR40008/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef RVDS_ARMCM3_LM3S102
|
|
||||||
#include "../../Source/portable/RVDS/ARM_CM3/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_ARMCM3_LM3S102
|
|
||||||
#include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_ARMCM3
|
|
||||||
#include "../../Source/portable/GCC/ARM_CM3/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IAR_ARM_CM3
|
|
||||||
#include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef IAR_ARMCM3_LM
|
|
||||||
#include "../../Source/portable/IAR/ARM_CM3/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef HCS12_CODE_WARRIOR
|
|
||||||
#include "../../Source/portable/CodeWarrior/HCS12/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef MICROBLAZE_GCC
|
|
||||||
#include "../../Source/portable/GCC/MicroBlaze/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef TERN_EE
|
|
||||||
#include "..\..\Source\portable\Paradigm\Tern_EE\small\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_HCS12
|
|
||||||
#include "../../Source/portable/GCC/HCS12/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_MCF5235
|
|
||||||
#include "../../Source/portable/GCC/MCF5235/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef COLDFIRE_V2_GCC
|
|
||||||
#include "../../../Source/portable/GCC/ColdFire_V2/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef COLDFIRE_V2_CODEWARRIOR
|
|
||||||
#include "../../Source/portable/CodeWarrior/ColdFire_V2/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_PPC405
|
|
||||||
#include "../../Source/portable/GCC/PPC405_Xilinx/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef GCC_PPC440
|
|
||||||
#include "../../Source/portable/GCC/PPC440_Xilinx/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef _16FX_SOFTUNE
|
|
||||||
#include "..\..\Source\portable\Softune\MB96340\portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef BCC_INDUSTRIAL_PC_PORT
|
|
||||||
/* A short file name has to be used in place of the normal
|
|
||||||
FreeRTOSConfig.h when using the Borland compiler. */
|
|
||||||
#include "frconfig.h"
|
|
||||||
#include "..\portable\BCC\16BitDOS\PC\prtmacro.h"
|
|
||||||
typedef void ( __interrupt __far *pxISR )();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef BCC_FLASH_LITE_186_PORT
|
|
||||||
/* A short file name has to be used in place of the normal
|
|
||||||
FreeRTOSConfig.h when using the Borland compiler. */
|
|
||||||
#include "frconfig.h"
|
|
||||||
#include "..\portable\BCC\16BitDOS\flsh186\prtmacro.h"
|
|
||||||
typedef void ( __interrupt __far *pxISR )();
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __GNUC__
|
|
||||||
#ifdef __AVR32_AVR32A__
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __ICCAVR32__
|
|
||||||
#ifdef __CORE__
|
|
||||||
#if __CORE__ == __AVR32A__
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __91467D
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __96340
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __IAR_V850ES_Fx3__
|
|
||||||
#include "../../Source/portable/IAR/V850ES/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_V850ES_Jx3__
|
|
||||||
#include "../../Source/portable/IAR/V850ES/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_V850ES_Jx3_L__
|
|
||||||
#include "../../Source/portable/IAR/V850ES/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_V850ES_Jx2__
|
|
||||||
#include "../../Source/portable/IAR/V850ES/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_V850ES_Hx2__
|
|
||||||
#include "../../Source/portable/IAR/V850ES/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_78K0R_Kx3__
|
|
||||||
#include "../../Source/portable/IAR/78K0R/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __IAR_78K0R_Kx3L__
|
|
||||||
#include "../../Source/portable/IAR/78K0R/portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* DEPRECATED_DEFINITIONS_H */
|
|
||||||
|
|
@ -1,797 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef EVENT_GROUPS_H
|
|
||||||
#define EVENT_GROUPS_H
|
|
||||||
|
|
||||||
#ifndef INC_FREERTOS_H
|
|
||||||
#error "include FreeRTOS.h" must appear in source files before "include event_groups.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* FreeRTOS includes. */
|
|
||||||
#include "timers.h"
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An event group is a collection of bits to which an application can assign a
|
|
||||||
* meaning. For example, an application may create an event group to convey
|
|
||||||
* the status of various CAN bus related events in which bit 0 might mean "A CAN
|
|
||||||
* message has been received and is ready for processing", bit 1 might mean "The
|
|
||||||
* application has queued a message that is ready for sending onto the CAN
|
|
||||||
* network", and bit 2 might mean "It is time to send a SYNC message onto the
|
|
||||||
* CAN network" etc. A task can then test the bit values to see which events
|
|
||||||
* are active, and optionally enter the Blocked state to wait for a specified
|
|
||||||
* bit or a group of specified bits to be active. To continue the CAN bus
|
|
||||||
* example, a CAN controlling task can enter the Blocked state (and therefore
|
|
||||||
* not consume any processing time) until either bit 0, bit 1 or bit 2 are
|
|
||||||
* active, at which time the bit that was actually active would inform the task
|
|
||||||
* which action it had to take (process a received message, send a message, or
|
|
||||||
* send a SYNC).
|
|
||||||
*
|
|
||||||
* The event groups implementation contains intelligence to avoid race
|
|
||||||
* conditions that would otherwise occur were an application to use a simple
|
|
||||||
* variable for the same purpose. This is particularly important with respect
|
|
||||||
* to when a bit within an event group is to be cleared, and when bits have to
|
|
||||||
* be set and then tested atomically - as is the case where event groups are
|
|
||||||
* used to create a synchronisation point between multiple tasks (a
|
|
||||||
* 'rendezvous').
|
|
||||||
*
|
|
||||||
* \defgroup EventGroup
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*
|
|
||||||
* Type by which event groups are referenced. For example, a call to
|
|
||||||
* xEventGroupCreate() returns an EventGroupHandle_t variable that can then
|
|
||||||
* be used as a parameter to other event group functions.
|
|
||||||
*
|
|
||||||
* \defgroup EventGroupHandle_t EventGroupHandle_t
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
typedef void * EventGroupHandle_t;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The type that holds event bits always matches TickType_t - therefore the
|
|
||||||
* number of bits it holds is set by configUSE_16_BIT_TICKS (16 bits if set to 1,
|
|
||||||
* 32 bits if set to 0.
|
|
||||||
*
|
|
||||||
* \defgroup EventBits_t EventBits_t
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
typedef TickType_t EventBits_t;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventGroupHandle_t xEventGroupCreate( void );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Create a new event group.
|
|
||||||
*
|
|
||||||
* Internally, within the FreeRTOS implementation, event groups use a [small]
|
|
||||||
* block of memory, in which the event group's structure is stored. If an event
|
|
||||||
* groups is created using xEventGropuCreate() then the required memory is
|
|
||||||
* automatically dynamically allocated inside the xEventGroupCreate() function.
|
|
||||||
* (see http://www.freertos.org/a00111.html). If an event group is created
|
|
||||||
* using xEventGropuCreateStatic() then the application writer must instead
|
|
||||||
* provide the memory that will get used by the event group.
|
|
||||||
* xEventGroupCreateStatic() therefore allows an event group to be created
|
|
||||||
* without using any dynamic memory allocation.
|
|
||||||
*
|
|
||||||
* Although event groups are not related to ticks, for internal implementation
|
|
||||||
* reasons the number of bits available for use in an event group is dependent
|
|
||||||
* on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If
|
|
||||||
* configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit
|
|
||||||
* 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has
|
|
||||||
* 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store
|
|
||||||
* event bits within an event group.
|
|
||||||
*
|
|
||||||
* @return If the event group was created then a handle to the event group is
|
|
||||||
* returned. If there was insufficient FreeRTOS heap available to create the
|
|
||||||
* event group then NULL is returned. See http://www.freertos.org/a00111.html
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Declare a variable to hold the created event group.
|
|
||||||
EventGroupHandle_t xCreatedEventGroup;
|
|
||||||
|
|
||||||
// Attempt to create the event group.
|
|
||||||
xCreatedEventGroup = xEventGroupCreate();
|
|
||||||
|
|
||||||
// Was the event group created successfully?
|
|
||||||
if( xCreatedEventGroup == NULL )
|
|
||||||
{
|
|
||||||
// The event group was not created because there was insufficient
|
|
||||||
// FreeRTOS heap available.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// The event group was created.
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupCreate xEventGroupCreate
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
#if( configSUPPORT_DYNAMIC_ALLOCATION == 1 )
|
|
||||||
EventGroupHandle_t xEventGroupCreate( void ) PRIVILEGED_FUNCTION;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventGroupHandle_t xEventGroupCreateStatic( EventGroupHandle_t * pxEventGroupBuffer );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Create a new event group.
|
|
||||||
*
|
|
||||||
* Internally, within the FreeRTOS implementation, event groups use a [small]
|
|
||||||
* block of memory, in which the event group's structure is stored. If an event
|
|
||||||
* groups is created using xEventGropuCreate() then the required memory is
|
|
||||||
* automatically dynamically allocated inside the xEventGroupCreate() function.
|
|
||||||
* (see http://www.freertos.org/a00111.html). If an event group is created
|
|
||||||
* using xEventGropuCreateStatic() then the application writer must instead
|
|
||||||
* provide the memory that will get used by the event group.
|
|
||||||
* xEventGroupCreateStatic() therefore allows an event group to be created
|
|
||||||
* without using any dynamic memory allocation.
|
|
||||||
*
|
|
||||||
* Although event groups are not related to ticks, for internal implementation
|
|
||||||
* reasons the number of bits available for use in an event group is dependent
|
|
||||||
* on the configUSE_16_BIT_TICKS setting in FreeRTOSConfig.h. If
|
|
||||||
* configUSE_16_BIT_TICKS is 1 then each event group contains 8 usable bits (bit
|
|
||||||
* 0 to bit 7). If configUSE_16_BIT_TICKS is set to 0 then each event group has
|
|
||||||
* 24 usable bits (bit 0 to bit 23). The EventBits_t type is used to store
|
|
||||||
* event bits within an event group.
|
|
||||||
*
|
|
||||||
* @param pxEventGroupBuffer pxEventGroupBuffer must point to a variable of type
|
|
||||||
* StaticEventGroup_t, which will be then be used to hold the event group's data
|
|
||||||
* structures, removing the need for the memory to be allocated dynamically.
|
|
||||||
*
|
|
||||||
* @return If the event group was created then a handle to the event group is
|
|
||||||
* returned. If pxEventGroupBuffer was NULL then NULL is returned.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// StaticEventGroup_t is a publicly accessible structure that has the same
|
|
||||||
// size and alignment requirements as the real event group structure. It is
|
|
||||||
// provided as a mechanism for applications to know the size of the event
|
|
||||||
// group (which is dependent on the architecture and configuration file
|
|
||||||
// settings) without breaking the strict data hiding policy by exposing the
|
|
||||||
// real event group internals. This StaticEventGroup_t variable is passed
|
|
||||||
// into the xSemaphoreCreateEventGroupStatic() function and is used to store
|
|
||||||
// the event group's data structures
|
|
||||||
StaticEventGroup_t xEventGroupBuffer;
|
|
||||||
|
|
||||||
// Create the event group without dynamically allocating any memory.
|
|
||||||
xEventGroup = xEventGroupCreateStatic( &xEventGroupBuffer );
|
|
||||||
</pre>
|
|
||||||
*/
|
|
||||||
#if( configSUPPORT_STATIC_ALLOCATION == 1 )
|
|
||||||
EventGroupHandle_t xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer ) PRIVILEGED_FUNCTION;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup,
|
|
||||||
const EventBits_t uxBitsToWaitFor,
|
|
||||||
const BaseType_t xClearOnExit,
|
|
||||||
const BaseType_t xWaitForAllBits,
|
|
||||||
const TickType_t xTicksToWait );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* [Potentially] block to wait for one or more bits to be set within a
|
|
||||||
* previously created event group.
|
|
||||||
*
|
|
||||||
* This function cannot be called from an interrupt.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are being tested. The
|
|
||||||
* event group must have previously been created using a call to
|
|
||||||
* xEventGroupCreate().
|
|
||||||
*
|
|
||||||
* @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test
|
|
||||||
* inside the event group. For example, to wait for bit 0 and/or bit 2 set
|
|
||||||
* uxBitsToWaitFor to 0x05. To wait for bits 0 and/or bit 1 and/or bit 2 set
|
|
||||||
* uxBitsToWaitFor to 0x07. Etc.
|
|
||||||
*
|
|
||||||
* @param xClearOnExit If xClearOnExit is set to pdTRUE then any bits within
|
|
||||||
* uxBitsToWaitFor that are set within the event group will be cleared before
|
|
||||||
* xEventGroupWaitBits() returns if the wait condition was met (if the function
|
|
||||||
* returns for a reason other than a timeout). If xClearOnExit is set to
|
|
||||||
* pdFALSE then the bits set in the event group are not altered when the call to
|
|
||||||
* xEventGroupWaitBits() returns.
|
|
||||||
*
|
|
||||||
* @param xWaitForAllBits If xWaitForAllBits is set to pdTRUE then
|
|
||||||
* xEventGroupWaitBits() will return when either all the bits in uxBitsToWaitFor
|
|
||||||
* are set or the specified block time expires. If xWaitForAllBits is set to
|
|
||||||
* pdFALSE then xEventGroupWaitBits() will return when any one of the bits set
|
|
||||||
* in uxBitsToWaitFor is set or the specified block time expires. The block
|
|
||||||
* time is specified by the xTicksToWait parameter.
|
|
||||||
*
|
|
||||||
* @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait
|
|
||||||
* for one/all (depending on the xWaitForAllBits value) of the bits specified by
|
|
||||||
* uxBitsToWaitFor to become set.
|
|
||||||
*
|
|
||||||
* @return The value of the event group at the time either the bits being waited
|
|
||||||
* for became set, or the block time expired. Test the return value to know
|
|
||||||
* which bits were set. If xEventGroupWaitBits() returned because its timeout
|
|
||||||
* expired then not all the bits being waited for will be set. If
|
|
||||||
* xEventGroupWaitBits() returned because the bits it was waiting for were set
|
|
||||||
* then the returned value is the event group value before any bits were
|
|
||||||
* automatically cleared in the case that xClearOnExit parameter was set to
|
|
||||||
* pdTRUE.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
#define BIT_0 ( 1 << 0 )
|
|
||||||
#define BIT_4 ( 1 << 4 )
|
|
||||||
|
|
||||||
void aFunction( EventGroupHandle_t xEventGroup )
|
|
||||||
{
|
|
||||||
EventBits_t uxBits;
|
|
||||||
const TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
|
||||||
|
|
||||||
// Wait a maximum of 100ms for either bit 0 or bit 4 to be set within
|
|
||||||
// the event group. Clear the bits before exiting.
|
|
||||||
uxBits = xEventGroupWaitBits(
|
|
||||||
xEventGroup, // The event group being tested.
|
|
||||||
BIT_0 | BIT_4, // The bits within the event group to wait for.
|
|
||||||
pdTRUE, // BIT_0 and BIT_4 should be cleared before returning.
|
|
||||||
pdFALSE, // Don't wait for both bits, either bit will do.
|
|
||||||
xTicksToWait ); // Wait a maximum of 100ms for either bit to be set.
|
|
||||||
|
|
||||||
if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
|
||||||
{
|
|
||||||
// xEventGroupWaitBits() returned because both bits were set.
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_0 ) != 0 )
|
|
||||||
{
|
|
||||||
// xEventGroupWaitBits() returned because just BIT_0 was set.
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_4 ) != 0 )
|
|
||||||
{
|
|
||||||
// xEventGroupWaitBits() returned because just BIT_4 was set.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// xEventGroupWaitBits() returned because xTicksToWait ticks passed
|
|
||||||
// without either BIT_0 or BIT_4 becoming set.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupWaitBits xEventGroupWaitBits
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
EventBits_t xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Clear bits within an event group. This function cannot be called from an
|
|
||||||
* interrupt.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are to be cleared.
|
|
||||||
*
|
|
||||||
* @param uxBitsToClear A bitwise value that indicates the bit or bits to clear
|
|
||||||
* in the event group. For example, to clear bit 3 only, set uxBitsToClear to
|
|
||||||
* 0x08. To clear bit 3 and bit 0 set uxBitsToClear to 0x09.
|
|
||||||
*
|
|
||||||
* @return The value of the event group before the specified bits were cleared.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
#define BIT_0 ( 1 << 0 )
|
|
||||||
#define BIT_4 ( 1 << 4 )
|
|
||||||
|
|
||||||
void aFunction( EventGroupHandle_t xEventGroup )
|
|
||||||
{
|
|
||||||
EventBits_t uxBits;
|
|
||||||
|
|
||||||
// Clear bit 0 and bit 4 in xEventGroup.
|
|
||||||
uxBits = xEventGroupClearBits(
|
|
||||||
xEventGroup, // The event group being updated.
|
|
||||||
BIT_0 | BIT_4 );// The bits being cleared.
|
|
||||||
|
|
||||||
if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
|
||||||
{
|
|
||||||
// Both bit 0 and bit 4 were set before xEventGroupClearBits() was
|
|
||||||
// called. Both will now be clear (not set).
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_0 ) != 0 )
|
|
||||||
{
|
|
||||||
// Bit 0 was set before xEventGroupClearBits() was called. It will
|
|
||||||
// now be clear.
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_4 ) != 0 )
|
|
||||||
{
|
|
||||||
// Bit 4 was set before xEventGroupClearBits() was called. It will
|
|
||||||
// now be clear.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Neither bit 0 nor bit 4 were set in the first place.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupClearBits xEventGroupClearBits
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
EventBits_t xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* A version of xEventGroupClearBits() that can be called from an interrupt.
|
|
||||||
*
|
|
||||||
* Setting bits in an event group is not a deterministic operation because there
|
|
||||||
* are an unknown number of tasks that may be waiting for the bit or bits being
|
|
||||||
* set. FreeRTOS does not allow nondeterministic operations to be performed
|
|
||||||
* while interrupts are disabled, so protects event groups that are accessed
|
|
||||||
* from tasks by suspending the scheduler rather than disabling interrupts. As
|
|
||||||
* a result event groups cannot be accessed directly from an interrupt service
|
|
||||||
* routine. Therefore xEventGroupClearBitsFromISR() sends a message to the
|
|
||||||
* timer task to have the clear operation performed in the context of the timer
|
|
||||||
* task.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are to be cleared.
|
|
||||||
*
|
|
||||||
* @param uxBitsToClear A bitwise value that indicates the bit or bits to clear.
|
|
||||||
* For example, to clear bit 3 only, set uxBitsToClear to 0x08. To clear bit 3
|
|
||||||
* and bit 0 set uxBitsToClear to 0x09.
|
|
||||||
*
|
|
||||||
* @return If the request to execute the function was posted successfully then
|
|
||||||
* pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned
|
|
||||||
* if the timer service queue was full.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
#define BIT_0 ( 1 << 0 )
|
|
||||||
#define BIT_4 ( 1 << 4 )
|
|
||||||
|
|
||||||
// An event group which it is assumed has already been created by a call to
|
|
||||||
// xEventGroupCreate().
|
|
||||||
EventGroupHandle_t xEventGroup;
|
|
||||||
|
|
||||||
void anInterruptHandler( void )
|
|
||||||
{
|
|
||||||
// Clear bit 0 and bit 4 in xEventGroup.
|
|
||||||
xResult = xEventGroupClearBitsFromISR(
|
|
||||||
xEventGroup, // The event group being updated.
|
|
||||||
BIT_0 | BIT_4 ); // The bits being set.
|
|
||||||
|
|
||||||
if( xResult == pdPASS )
|
|
||||||
{
|
|
||||||
// The message was posted successfully.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupClearBitsFromISR xEventGroupClearBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
#if( configUSE_TRACE_FACILITY == 1 )
|
|
||||||
BaseType_t xEventGroupClearBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION;
|
|
||||||
#else
|
|
||||||
#define xEventGroupClearBitsFromISR( xEventGroup, uxBitsToClear ) xTimerPendFunctionCallFromISR( vEventGroupClearBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToClear, NULL )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Set bits within an event group.
|
|
||||||
* This function cannot be called from an interrupt. xEventGroupSetBitsFromISR()
|
|
||||||
* is a version that can be called from an interrupt.
|
|
||||||
*
|
|
||||||
* Setting bits in an event group will automatically unblock tasks that are
|
|
||||||
* blocked waiting for the bits.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are to be set.
|
|
||||||
*
|
|
||||||
* @param uxBitsToSet A bitwise value that indicates the bit or bits to set.
|
|
||||||
* For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3
|
|
||||||
* and bit 0 set uxBitsToSet to 0x09.
|
|
||||||
*
|
|
||||||
* @return The value of the event group at the time the call to
|
|
||||||
* xEventGroupSetBits() returns. There are two reasons why the returned value
|
|
||||||
* might have the bits specified by the uxBitsToSet parameter cleared. First,
|
|
||||||
* if setting a bit results in a task that was waiting for the bit leaving the
|
|
||||||
* blocked state then it is possible the bit will be cleared automatically
|
|
||||||
* (see the xClearBitOnExit parameter of xEventGroupWaitBits()). Second, any
|
|
||||||
* unblocked (or otherwise Ready state) task that has a priority above that of
|
|
||||||
* the task that called xEventGroupSetBits() will execute and may change the
|
|
||||||
* event group value before the call to xEventGroupSetBits() returns.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
#define BIT_0 ( 1 << 0 )
|
|
||||||
#define BIT_4 ( 1 << 4 )
|
|
||||||
|
|
||||||
void aFunction( EventGroupHandle_t xEventGroup )
|
|
||||||
{
|
|
||||||
EventBits_t uxBits;
|
|
||||||
|
|
||||||
// Set bit 0 and bit 4 in xEventGroup.
|
|
||||||
uxBits = xEventGroupSetBits(
|
|
||||||
xEventGroup, // The event group being updated.
|
|
||||||
BIT_0 | BIT_4 );// The bits being set.
|
|
||||||
|
|
||||||
if( ( uxBits & ( BIT_0 | BIT_4 ) ) == ( BIT_0 | BIT_4 ) )
|
|
||||||
{
|
|
||||||
// Both bit 0 and bit 4 remained set when the function returned.
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_0 ) != 0 )
|
|
||||||
{
|
|
||||||
// Bit 0 remained set when the function returned, but bit 4 was
|
|
||||||
// cleared. It might be that bit 4 was cleared automatically as a
|
|
||||||
// task that was waiting for bit 4 was removed from the Blocked
|
|
||||||
// state.
|
|
||||||
}
|
|
||||||
else if( ( uxBits & BIT_4 ) != 0 )
|
|
||||||
{
|
|
||||||
// Bit 4 remained set when the function returned, but bit 0 was
|
|
||||||
// cleared. It might be that bit 0 was cleared automatically as a
|
|
||||||
// task that was waiting for bit 0 was removed from the Blocked
|
|
||||||
// state.
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
// Neither bit 0 nor bit 4 remained set. It might be that a task
|
|
||||||
// was waiting for both of the bits to be set, and the bits were
|
|
||||||
// cleared as the task left the Blocked state.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupSetBits xEventGroupSetBits
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
EventBits_t xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* A version of xEventGroupSetBits() that can be called from an interrupt.
|
|
||||||
*
|
|
||||||
* Setting bits in an event group is not a deterministic operation because there
|
|
||||||
* are an unknown number of tasks that may be waiting for the bit or bits being
|
|
||||||
* set. FreeRTOS does not allow nondeterministic operations to be performed in
|
|
||||||
* interrupts or from critical sections. Therefore xEventGroupSetBitsFromISR()
|
|
||||||
* sends a message to the timer task to have the set operation performed in the
|
|
||||||
* context of the timer task - where a scheduler lock is used in place of a
|
|
||||||
* critical section.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are to be set.
|
|
||||||
*
|
|
||||||
* @param uxBitsToSet A bitwise value that indicates the bit or bits to set.
|
|
||||||
* For example, to set bit 3 only, set uxBitsToSet to 0x08. To set bit 3
|
|
||||||
* and bit 0 set uxBitsToSet to 0x09.
|
|
||||||
*
|
|
||||||
* @param pxHigherPriorityTaskWoken As mentioned above, calling this function
|
|
||||||
* will result in a message being sent to the timer daemon task. If the
|
|
||||||
* priority of the timer daemon task is higher than the priority of the
|
|
||||||
* currently running task (the task the interrupt interrupted) then
|
|
||||||
* *pxHigherPriorityTaskWoken will be set to pdTRUE by
|
|
||||||
* xEventGroupSetBitsFromISR(), indicating that a context switch should be
|
|
||||||
* requested before the interrupt exits. For that reason
|
|
||||||
* *pxHigherPriorityTaskWoken must be initialised to pdFALSE. See the
|
|
||||||
* example code below.
|
|
||||||
*
|
|
||||||
* @return If the request to execute the function was posted successfully then
|
|
||||||
* pdPASS is returned, otherwise pdFALSE is returned. pdFALSE will be returned
|
|
||||||
* if the timer service queue was full.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
#define BIT_0 ( 1 << 0 )
|
|
||||||
#define BIT_4 ( 1 << 4 )
|
|
||||||
|
|
||||||
// An event group which it is assumed has already been created by a call to
|
|
||||||
// xEventGroupCreate().
|
|
||||||
EventGroupHandle_t xEventGroup;
|
|
||||||
|
|
||||||
void anInterruptHandler( void )
|
|
||||||
{
|
|
||||||
BaseType_t xHigherPriorityTaskWoken, xResult;
|
|
||||||
|
|
||||||
// xHigherPriorityTaskWoken must be initialised to pdFALSE.
|
|
||||||
xHigherPriorityTaskWoken = pdFALSE;
|
|
||||||
|
|
||||||
// Set bit 0 and bit 4 in xEventGroup.
|
|
||||||
xResult = xEventGroupSetBitsFromISR(
|
|
||||||
xEventGroup, // The event group being updated.
|
|
||||||
BIT_0 | BIT_4 // The bits being set.
|
|
||||||
&xHigherPriorityTaskWoken );
|
|
||||||
|
|
||||||
// Was the message posted successfully?
|
|
||||||
if( xResult == pdPASS )
|
|
||||||
{
|
|
||||||
// If xHigherPriorityTaskWoken is now set to pdTRUE then a context
|
|
||||||
// switch should be requested. The macro used is port specific and
|
|
||||||
// will be either portYIELD_FROM_ISR() or portEND_SWITCHING_ISR() -
|
|
||||||
// refer to the documentation page for the port being used.
|
|
||||||
portYIELD_FROM_ISR( xHigherPriorityTaskWoken );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupSetBitsFromISR xEventGroupSetBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
#if( configUSE_TRACE_FACILITY == 1 )
|
|
||||||
BaseType_t xEventGroupSetBitsFromISR( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, BaseType_t *pxHigherPriorityTaskWoken ) PRIVILEGED_FUNCTION;
|
|
||||||
#else
|
|
||||||
#define xEventGroupSetBitsFromISR( xEventGroup, uxBitsToSet, pxHigherPriorityTaskWoken ) xTimerPendFunctionCallFromISR( vEventGroupSetBitsCallback, ( void * ) xEventGroup, ( uint32_t ) uxBitsToSet, pxHigherPriorityTaskWoken )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup,
|
|
||||||
const EventBits_t uxBitsToSet,
|
|
||||||
const EventBits_t uxBitsToWaitFor,
|
|
||||||
TickType_t xTicksToWait );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Atomically set bits within an event group, then wait for a combination of
|
|
||||||
* bits to be set within the same event group. This functionality is typically
|
|
||||||
* used to synchronise multiple tasks, where each task has to wait for the other
|
|
||||||
* tasks to reach a synchronisation point before proceeding.
|
|
||||||
*
|
|
||||||
* This function cannot be used from an interrupt.
|
|
||||||
*
|
|
||||||
* The function will return before its block time expires if the bits specified
|
|
||||||
* by the uxBitsToWait parameter are set, or become set within that time. In
|
|
||||||
* this case all the bits specified by uxBitsToWait will be automatically
|
|
||||||
* cleared before the function returns.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group in which the bits are being tested. The
|
|
||||||
* event group must have previously been created using a call to
|
|
||||||
* xEventGroupCreate().
|
|
||||||
*
|
|
||||||
* @param uxBitsToSet The bits to set in the event group before determining
|
|
||||||
* if, and possibly waiting for, all the bits specified by the uxBitsToWait
|
|
||||||
* parameter are set.
|
|
||||||
*
|
|
||||||
* @param uxBitsToWaitFor A bitwise value that indicates the bit or bits to test
|
|
||||||
* inside the event group. For example, to wait for bit 0 and bit 2 set
|
|
||||||
* uxBitsToWaitFor to 0x05. To wait for bits 0 and bit 1 and bit 2 set
|
|
||||||
* uxBitsToWaitFor to 0x07. Etc.
|
|
||||||
*
|
|
||||||
* @param xTicksToWait The maximum amount of time (specified in 'ticks') to wait
|
|
||||||
* for all of the bits specified by uxBitsToWaitFor to become set.
|
|
||||||
*
|
|
||||||
* @return The value of the event group at the time either the bits being waited
|
|
||||||
* for became set, or the block time expired. Test the return value to know
|
|
||||||
* which bits were set. If xEventGroupSync() returned because its timeout
|
|
||||||
* expired then not all the bits being waited for will be set. If
|
|
||||||
* xEventGroupSync() returned because all the bits it was waiting for were
|
|
||||||
* set then the returned value is the event group value before any bits were
|
|
||||||
* automatically cleared.
|
|
||||||
*
|
|
||||||
* Example usage:
|
|
||||||
<pre>
|
|
||||||
// Bits used by the three tasks.
|
|
||||||
#define TASK_0_BIT ( 1 << 0 )
|
|
||||||
#define TASK_1_BIT ( 1 << 1 )
|
|
||||||
#define TASK_2_BIT ( 1 << 2 )
|
|
||||||
|
|
||||||
#define ALL_SYNC_BITS ( TASK_0_BIT | TASK_1_BIT | TASK_2_BIT )
|
|
||||||
|
|
||||||
// Use an event group to synchronise three tasks. It is assumed this event
|
|
||||||
// group has already been created elsewhere.
|
|
||||||
EventGroupHandle_t xEventBits;
|
|
||||||
|
|
||||||
void vTask0( void *pvParameters )
|
|
||||||
{
|
|
||||||
EventBits_t uxReturn;
|
|
||||||
TickType_t xTicksToWait = 100 / portTICK_PERIOD_MS;
|
|
||||||
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Perform task functionality here.
|
|
||||||
|
|
||||||
// Set bit 0 in the event flag to note this task has reached the
|
|
||||||
// sync point. The other two tasks will set the other two bits defined
|
|
||||||
// by ALL_SYNC_BITS. All three tasks have reached the synchronisation
|
|
||||||
// point when all the ALL_SYNC_BITS are set. Wait a maximum of 100ms
|
|
||||||
// for this to happen.
|
|
||||||
uxReturn = xEventGroupSync( xEventBits, TASK_0_BIT, ALL_SYNC_BITS, xTicksToWait );
|
|
||||||
|
|
||||||
if( ( uxReturn & ALL_SYNC_BITS ) == ALL_SYNC_BITS )
|
|
||||||
{
|
|
||||||
// All three tasks reached the synchronisation point before the call
|
|
||||||
// to xEventGroupSync() timed out.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void vTask1( void *pvParameters )
|
|
||||||
{
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Perform task functionality here.
|
|
||||||
|
|
||||||
// Set bit 1 in the event flag to note this task has reached the
|
|
||||||
// synchronisation point. The other two tasks will set the other two
|
|
||||||
// bits defined by ALL_SYNC_BITS. All three tasks have reached the
|
|
||||||
// synchronisation point when all the ALL_SYNC_BITS are set. Wait
|
|
||||||
// indefinitely for this to happen.
|
|
||||||
xEventGroupSync( xEventBits, TASK_1_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
|
||||||
|
|
||||||
// xEventGroupSync() was called with an indefinite block time, so
|
|
||||||
// this task will only reach here if the syncrhonisation was made by all
|
|
||||||
// three tasks, so there is no need to test the return value.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void vTask2( void *pvParameters )
|
|
||||||
{
|
|
||||||
for( ;; )
|
|
||||||
{
|
|
||||||
// Perform task functionality here.
|
|
||||||
|
|
||||||
// Set bit 2 in the event flag to note this task has reached the
|
|
||||||
// synchronisation point. The other two tasks will set the other two
|
|
||||||
// bits defined by ALL_SYNC_BITS. All three tasks have reached the
|
|
||||||
// synchronisation point when all the ALL_SYNC_BITS are set. Wait
|
|
||||||
// indefinitely for this to happen.
|
|
||||||
xEventGroupSync( xEventBits, TASK_2_BIT, ALL_SYNC_BITS, portMAX_DELAY );
|
|
||||||
|
|
||||||
// xEventGroupSync() was called with an indefinite block time, so
|
|
||||||
// this task will only reach here if the syncrhonisation was made by all
|
|
||||||
// three tasks, so there is no need to test the return value.
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</pre>
|
|
||||||
* \defgroup xEventGroupSync xEventGroupSync
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
EventBits_t xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupGetBits( EventGroupHandle_t xEventGroup );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Returns the current value of the bits in an event group. This function
|
|
||||||
* cannot be used from an interrupt.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group being queried.
|
|
||||||
*
|
|
||||||
* @return The event group bits at the time xEventGroupGetBits() was called.
|
|
||||||
*
|
|
||||||
* \defgroup xEventGroupGetBits xEventGroupGetBits
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
#define xEventGroupGetBits( xEventGroup ) xEventGroupClearBits( xEventGroup, 0 )
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* A version of xEventGroupGetBits() that can be called from an ISR.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group being queried.
|
|
||||||
*
|
|
||||||
* @return The event group bits at the time xEventGroupGetBitsFromISR() was called.
|
|
||||||
*
|
|
||||||
* \defgroup xEventGroupGetBitsFromISR xEventGroupGetBitsFromISR
|
|
||||||
* \ingroup EventGroup
|
|
||||||
*/
|
|
||||||
EventBits_t xEventGroupGetBitsFromISR( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* event_groups.h
|
|
||||||
*<pre>
|
|
||||||
void xEventGroupDelete( EventGroupHandle_t xEventGroup );
|
|
||||||
</pre>
|
|
||||||
*
|
|
||||||
* Delete an event group that was previously created by a call to
|
|
||||||
* xEventGroupCreate(). Tasks that are blocked on the event group will be
|
|
||||||
* unblocked and obtain 0 as the event group's value.
|
|
||||||
*
|
|
||||||
* @param xEventGroup The event group being deleted.
|
|
||||||
*/
|
|
||||||
void vEventGroupDelete( EventGroupHandle_t xEventGroup ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/* For internal use only. */
|
|
||||||
void vEventGroupSetBitsCallback( void *pvEventGroup, const uint32_t ulBitsToSet ) PRIVILEGED_FUNCTION;
|
|
||||||
void vEventGroupClearBitsCallback( void *pvEventGroup, const uint32_t ulBitsToClear ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
|
|
||||||
#if (configUSE_TRACE_FACILITY == 1)
|
|
||||||
UBaseType_t uxEventGroupGetNumber( void* xEventGroup ) PRIVILEGED_FUNCTION;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* EVENT_GROUPS_H */
|
|
||||||
|
|
||||||
|
|
@ -1,453 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This is the list implementation used by the scheduler. While it is tailored
|
|
||||||
* heavily for the schedulers needs, it is also available for use by
|
|
||||||
* application code.
|
|
||||||
*
|
|
||||||
* list_ts can only store pointers to list_item_ts. Each ListItem_t contains a
|
|
||||||
* numeric value (xItemValue). Most of the time the lists are sorted in
|
|
||||||
* descending item value order.
|
|
||||||
*
|
|
||||||
* Lists are created already containing one list item. The value of this
|
|
||||||
* item is the maximum possible that can be stored, it is therefore always at
|
|
||||||
* the end of the list and acts as a marker. The list member pxHead always
|
|
||||||
* points to this marker - even though it is at the tail of the list. This
|
|
||||||
* is because the tail contains a wrap back pointer to the true head of
|
|
||||||
* the list.
|
|
||||||
*
|
|
||||||
* In addition to it's value, each list item contains a pointer to the next
|
|
||||||
* item in the list (pxNext), a pointer to the list it is in (pxContainer)
|
|
||||||
* and a pointer to back to the object that contains it. These later two
|
|
||||||
* pointers are included for efficiency of list manipulation. There is
|
|
||||||
* effectively a two way link between the object containing the list item and
|
|
||||||
* the list item itself.
|
|
||||||
*
|
|
||||||
*
|
|
||||||
* \page ListIntroduction List Implementation
|
|
||||||
* \ingroup FreeRTOSIntro
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef INC_FREERTOS_H
|
|
||||||
#error FreeRTOS.h must be included before list.h
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef LIST_H
|
|
||||||
#define LIST_H
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The list structure members are modified from within interrupts, and therefore
|
|
||||||
* by rights should be declared volatile. However, they are only modified in a
|
|
||||||
* functionally atomic way (within critical sections of with the scheduler
|
|
||||||
* suspended) and are either passed by reference into a function or indexed via
|
|
||||||
* a volatile variable. Therefore, in all use cases tested so far, the volatile
|
|
||||||
* qualifier can be omitted in order to provide a moderate performance
|
|
||||||
* improvement without adversely affecting functional behaviour. The assembly
|
|
||||||
* instructions generated by the IAR, ARM and GCC compilers when the respective
|
|
||||||
* compiler's options were set for maximum optimisation has been inspected and
|
|
||||||
* deemed to be as intended. That said, as compiler technology advances, and
|
|
||||||
* especially if aggressive cross module optimisation is used (a use case that
|
|
||||||
* has not been exercised to any great extend) then it is feasible that the
|
|
||||||
* volatile qualifier will be needed for correct optimisation. It is expected
|
|
||||||
* that a compiler removing essential code because, without the volatile
|
|
||||||
* qualifier on the list structure members and with aggressive cross module
|
|
||||||
* optimisation, the compiler deemed the code unnecessary will result in
|
|
||||||
* complete and obvious failure of the scheduler. If this is ever experienced
|
|
||||||
* then the volatile qualifier can be inserted in the relevant places within the
|
|
||||||
* list structures by simply defining configLIST_VOLATILE to volatile in
|
|
||||||
* FreeRTOSConfig.h (as per the example at the bottom of this comment block).
|
|
||||||
* If configLIST_VOLATILE is not defined then the preprocessor directives below
|
|
||||||
* will simply #define configLIST_VOLATILE away completely.
|
|
||||||
*
|
|
||||||
* To use volatile list structure members then add the following line to
|
|
||||||
* FreeRTOSConfig.h (without the quotes):
|
|
||||||
* "#define configLIST_VOLATILE volatile"
|
|
||||||
*/
|
|
||||||
#ifndef configLIST_VOLATILE
|
|
||||||
#define configLIST_VOLATILE
|
|
||||||
#endif /* configSUPPORT_CROSS_MODULE_OPTIMISATION */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Macros that can be used to place known values within the list structures,
|
|
||||||
then check that the known values do not get corrupted during the execution of
|
|
||||||
the application. These may catch the list data structures being overwritten in
|
|
||||||
memory. They will not catch data errors caused by incorrect configuration or
|
|
||||||
use of FreeRTOS.*/
|
|
||||||
#if( configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES == 0 )
|
|
||||||
/* Define the macros to do nothing. */
|
|
||||||
#define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE
|
|
||||||
#define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE
|
|
||||||
#define listFIRST_LIST_INTEGRITY_CHECK_VALUE
|
|
||||||
#define listSECOND_LIST_INTEGRITY_CHECK_VALUE
|
|
||||||
#define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem )
|
|
||||||
#define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem )
|
|
||||||
#define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList )
|
|
||||||
#define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList )
|
|
||||||
#define listTEST_LIST_ITEM_INTEGRITY( pxItem )
|
|
||||||
#define listTEST_LIST_INTEGRITY( pxList )
|
|
||||||
#else
|
|
||||||
/* Define macros that add new members into the list structures. */
|
|
||||||
#define listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue1;
|
|
||||||
#define listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE TickType_t xListItemIntegrityValue2;
|
|
||||||
#define listFIRST_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue1;
|
|
||||||
#define listSECOND_LIST_INTEGRITY_CHECK_VALUE TickType_t xListIntegrityValue2;
|
|
||||||
|
|
||||||
/* Define macros that set the new structure members to known values. */
|
|
||||||
#define listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue1 = pdINTEGRITY_CHECK_VALUE
|
|
||||||
#define listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem ) ( pxItem )->xListItemIntegrityValue2 = pdINTEGRITY_CHECK_VALUE
|
|
||||||
#define listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList ) ( pxList )->xListIntegrityValue1 = pdINTEGRITY_CHECK_VALUE
|
|
||||||
#define listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList ) ( pxList )->xListIntegrityValue2 = pdINTEGRITY_CHECK_VALUE
|
|
||||||
|
|
||||||
/* Define macros that will assert if one of the structure members does not
|
|
||||||
contain its expected value. */
|
|
||||||
#define listTEST_LIST_ITEM_INTEGRITY( pxItem ) configASSERT( ( ( pxItem )->xListItemIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxItem )->xListItemIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) )
|
|
||||||
#define listTEST_LIST_INTEGRITY( pxList ) configASSERT( ( ( pxList )->xListIntegrityValue1 == pdINTEGRITY_CHECK_VALUE ) && ( ( pxList )->xListIntegrityValue2 == pdINTEGRITY_CHECK_VALUE ) )
|
|
||||||
#endif /* configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES */
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Definition of the only type of object that a list can contain.
|
|
||||||
*/
|
|
||||||
struct xLIST_ITEM
|
|
||||||
{
|
|
||||||
listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
configLIST_VOLATILE TickType_t xItemValue; /*< The value being listed. In most cases this is used to sort the list in descending order. */
|
|
||||||
struct xLIST_ITEM * configLIST_VOLATILE pxNext; /*< Pointer to the next ListItem_t in the list. */
|
|
||||||
struct xLIST_ITEM * configLIST_VOLATILE pxPrevious; /*< Pointer to the previous ListItem_t in the list. */
|
|
||||||
void * pvOwner; /*< Pointer to the object (normally a TCB) that contains the list item. There is therefore a two way link between the object containing the list item and the list item itself. */
|
|
||||||
void * configLIST_VOLATILE pvContainer; /*< Pointer to the list in which this list item is placed (if any). */
|
|
||||||
listSECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
};
|
|
||||||
typedef struct xLIST_ITEM ListItem_t; /* For some reason lint wants this as two separate definitions. */
|
|
||||||
|
|
||||||
struct xMINI_LIST_ITEM
|
|
||||||
{
|
|
||||||
listFIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
configLIST_VOLATILE TickType_t xItemValue;
|
|
||||||
struct xLIST_ITEM * configLIST_VOLATILE pxNext;
|
|
||||||
struct xLIST_ITEM * configLIST_VOLATILE pxPrevious;
|
|
||||||
};
|
|
||||||
typedef struct xMINI_LIST_ITEM MiniListItem_t;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Definition of the type of queue used by the scheduler.
|
|
||||||
*/
|
|
||||||
typedef struct xLIST
|
|
||||||
{
|
|
||||||
listFIRST_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
configLIST_VOLATILE UBaseType_t uxNumberOfItems;
|
|
||||||
ListItem_t * configLIST_VOLATILE pxIndex; /*< Used to walk through the list. Points to the last item returned by a call to listGET_OWNER_OF_NEXT_ENTRY (). */
|
|
||||||
MiniListItem_t xListEnd; /*< List item that contains the maximum possible item value meaning it is always at the end of the list and is therefore used as a marker. */
|
|
||||||
listSECOND_LIST_INTEGRITY_CHECK_VALUE /*< Set to a known value if configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
} List_t;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to set the owner of a list item. The owner of a list item
|
|
||||||
* is the object (usually a TCB) that contains the list item.
|
|
||||||
*
|
|
||||||
* \page listSET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listSET_LIST_ITEM_OWNER( pxListItem, pxOwner ) ( ( pxListItem )->pvOwner = ( void * ) ( pxOwner ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to get the owner of a list item. The owner of a list item
|
|
||||||
* is the object (usually a TCB) that contains the list item.
|
|
||||||
*
|
|
||||||
* \page listSET_LIST_ITEM_OWNER listSET_LIST_ITEM_OWNER
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_LIST_ITEM_OWNER( pxListItem ) ( ( pxListItem )->pvOwner )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to set the value of the list item. In most cases the value is
|
|
||||||
* used to sort the list in descending order.
|
|
||||||
*
|
|
||||||
* \page listSET_LIST_ITEM_VALUE listSET_LIST_ITEM_VALUE
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listSET_LIST_ITEM_VALUE( pxListItem, xValue ) ( ( pxListItem )->xItemValue = ( xValue ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to retrieve the value of the list item. The value can
|
|
||||||
* represent anything - for example the priority of a task, or the time at
|
|
||||||
* which a task should be unblocked.
|
|
||||||
*
|
|
||||||
* \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_LIST_ITEM_VALUE( pxListItem ) ( ( pxListItem )->xItemValue )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to retrieve the value of the list item at the head of a given
|
|
||||||
* list.
|
|
||||||
*
|
|
||||||
* \page listGET_LIST_ITEM_VALUE listGET_LIST_ITEM_VALUE
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_ITEM_VALUE_OF_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext->xItemValue )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Return the list item at the head of the list.
|
|
||||||
*
|
|
||||||
* \page listGET_HEAD_ENTRY listGET_HEAD_ENTRY
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_HEAD_ENTRY( pxList ) ( ( ( pxList )->xListEnd ).pxNext )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Return the list item at the head of the list.
|
|
||||||
*
|
|
||||||
* \page listGET_NEXT listGET_NEXT
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_NEXT( pxListItem ) ( ( pxListItem )->pxNext )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Return the list item that marks the end of the list
|
|
||||||
*
|
|
||||||
* \page listGET_END_MARKER listGET_END_MARKER
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_END_MARKER( pxList ) ( ( ListItem_t const * ) ( &( ( pxList )->xListEnd ) ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to determine if a list contains any items. The macro will
|
|
||||||
* only have the value true if the list is empty.
|
|
||||||
*
|
|
||||||
* \page listLIST_IS_EMPTY listLIST_IS_EMPTY
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listLIST_IS_EMPTY( pxList ) ( ( BaseType_t ) ( ( pxList )->uxNumberOfItems == ( UBaseType_t ) 0 ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access macro to return the number of items in the list.
|
|
||||||
*/
|
|
||||||
#define listCURRENT_LIST_LENGTH( pxList ) ( ( pxList )->uxNumberOfItems )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access function to obtain the owner of the next entry in a list.
|
|
||||||
*
|
|
||||||
* The list member pxIndex is used to walk through a list. Calling
|
|
||||||
* listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list
|
|
||||||
* and returns that entry's pxOwner parameter. Using multiple calls to this
|
|
||||||
* function it is therefore possible to move through every item contained in
|
|
||||||
* a list.
|
|
||||||
*
|
|
||||||
* The pxOwner parameter of a list item is a pointer to the object that owns
|
|
||||||
* the list item. In the scheduler this is normally a task control block.
|
|
||||||
* The pxOwner parameter effectively creates a two way link between the list
|
|
||||||
* item and its owner.
|
|
||||||
*
|
|
||||||
* @param pxTCB pxTCB is set to the address of the owner of the next list item.
|
|
||||||
* @param pxList The list from which the next item owner is to be returned.
|
|
||||||
*
|
|
||||||
* \page listGET_OWNER_OF_NEXT_ENTRY listGET_OWNER_OF_NEXT_ENTRY
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_OWNER_OF_NEXT_ENTRY( pxTCB, pxList ) \
|
|
||||||
{ \
|
|
||||||
List_t * const pxConstList = ( pxList ); \
|
|
||||||
/* Increment the index to the next item and return the item, ensuring */ \
|
|
||||||
/* we don't return the marker used at the end of the list. */ \
|
|
||||||
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
|
|
||||||
if( ( void * ) ( pxConstList )->pxIndex == ( void * ) &( ( pxConstList )->xListEnd ) ) \
|
|
||||||
{ \
|
|
||||||
( pxConstList )->pxIndex = ( pxConstList )->pxIndex->pxNext; \
|
|
||||||
} \
|
|
||||||
( pxTCB ) = ( pxConstList )->pxIndex->pvOwner; \
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Access function to obtain the owner of the first entry in a list. Lists
|
|
||||||
* are normally sorted in ascending item value order.
|
|
||||||
*
|
|
||||||
* This function returns the pxOwner member of the first item in the list.
|
|
||||||
* The pxOwner parameter of a list item is a pointer to the object that owns
|
|
||||||
* the list item. In the scheduler this is normally a task control block.
|
|
||||||
* The pxOwner parameter effectively creates a two way link between the list
|
|
||||||
* item and its owner.
|
|
||||||
*
|
|
||||||
* @param pxList The list from which the owner of the head item is to be
|
|
||||||
* returned.
|
|
||||||
*
|
|
||||||
* \page listGET_OWNER_OF_HEAD_ENTRY listGET_OWNER_OF_HEAD_ENTRY
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
#define listGET_OWNER_OF_HEAD_ENTRY( pxList ) ( (&( ( pxList )->xListEnd ))->pxNext->pvOwner )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Check to see if a list item is within a list. The list item maintains a
|
|
||||||
* "container" pointer that points to the list it is in. All this macro does
|
|
||||||
* is check to see if the container and the list match.
|
|
||||||
*
|
|
||||||
* @param pxList The list we want to know if the list item is within.
|
|
||||||
* @param pxListItem The list item we want to know if is in the list.
|
|
||||||
* @return pdTRUE if the list item is in the list, otherwise pdFALSE.
|
|
||||||
*/
|
|
||||||
#define listIS_CONTAINED_WITHIN( pxList, pxListItem ) ( ( BaseType_t ) ( ( pxListItem )->pvContainer == ( void * ) ( pxList ) ) )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Return the list a list item is contained within (referenced from).
|
|
||||||
*
|
|
||||||
* @param pxListItem The list item being queried.
|
|
||||||
* @return A pointer to the List_t object that references the pxListItem
|
|
||||||
*/
|
|
||||||
#define listLIST_ITEM_CONTAINER( pxListItem ) ( ( pxListItem )->pvContainer )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* This provides a crude means of knowing if a list has been initialised, as
|
|
||||||
* pxList->xListEnd.xItemValue is set to portMAX_DELAY by the vListInitialise()
|
|
||||||
* function.
|
|
||||||
*/
|
|
||||||
#define listLIST_IS_INITIALISED( pxList ) ( ( pxList )->xListEnd.xItemValue == portMAX_DELAY )
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Must be called before a list is used! This initialises all the members
|
|
||||||
* of the list structure and inserts the xListEnd item into the list as a
|
|
||||||
* marker to the back of the list.
|
|
||||||
*
|
|
||||||
* @param pxList Pointer to the list being initialised.
|
|
||||||
*
|
|
||||||
* \page vListInitialise vListInitialise
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
void vListInitialise( List_t * const pxList ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Must be called before a list item is used. This sets the list container to
|
|
||||||
* null so the item does not think that it is already contained in a list.
|
|
||||||
*
|
|
||||||
* @param pxItem Pointer to the list item being initialised.
|
|
||||||
*
|
|
||||||
* \page vListInitialiseItem vListInitialiseItem
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
void vListInitialiseItem( ListItem_t * const pxItem ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Insert a list item into a list. The item will be inserted into the list in
|
|
||||||
* a position determined by its item value (descending item value order).
|
|
||||||
*
|
|
||||||
* @param pxList The list into which the item is to be inserted.
|
|
||||||
*
|
|
||||||
* @param pxNewListItem The item that is to be placed in the list.
|
|
||||||
*
|
|
||||||
* \page vListInsert vListInsert
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Insert a list item into a list. The item will be inserted in a position
|
|
||||||
* such that it will be the last item within the list returned by multiple
|
|
||||||
* calls to listGET_OWNER_OF_NEXT_ENTRY.
|
|
||||||
*
|
|
||||||
* The list member pxIndex is used to walk through a list. Calling
|
|
||||||
* listGET_OWNER_OF_NEXT_ENTRY increments pxIndex to the next item in the list.
|
|
||||||
* Placing an item in a list using vListInsertEnd effectively places the item
|
|
||||||
* in the list position pointed to by pxIndex. This means that every other
|
|
||||||
* item within the list will be returned by listGET_OWNER_OF_NEXT_ENTRY before
|
|
||||||
* the pxIndex parameter again points to the item being inserted.
|
|
||||||
*
|
|
||||||
* @param pxList The list into which the item is to be inserted.
|
|
||||||
*
|
|
||||||
* @param pxNewListItem The list item to be inserted into the list.
|
|
||||||
*
|
|
||||||
* \page vListInsertEnd vListInsertEnd
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Remove an item from a list. The list item has a pointer to the list that
|
|
||||||
* it is in, so only the list item need be passed into the function.
|
|
||||||
*
|
|
||||||
* @param uxListRemove The item to be removed. The item will remove itself from
|
|
||||||
* the list pointed to by it's pxContainer parameter.
|
|
||||||
*
|
|
||||||
* @return The number of items that remain in the list after the list item has
|
|
||||||
* been removed.
|
|
||||||
*
|
|
||||||
* \page uxListRemove uxListRemove
|
|
||||||
* \ingroup LinkedList
|
|
||||||
*/
|
|
||||||
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
@ -1,177 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* When the MPU is used the standard (non MPU) API functions are mapped to
|
|
||||||
* equivalents that start "MPU_", the prototypes for which are defined in this
|
|
||||||
* header files. This will cause the application code to call the MPU_ version
|
|
||||||
* which wraps the non-MPU version with privilege promoting then demoting code,
|
|
||||||
* so the kernel code always runs will full privileges.
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef MPU_PROTOTYPES_H
|
|
||||||
#define MPU_PROTOTYPES_H
|
|
||||||
|
|
||||||
/* MPU versions of tasks.h API function. */
|
|
||||||
BaseType_t MPU_xTaskCreate( TaskFunction_t pxTaskCode, const char * const pcName, const uint16_t usStackDepth, void * const pvParameters, UBaseType_t uxPriority, TaskHandle_t * const pxCreatedTask );
|
|
||||||
TaskHandle_t MPU_xTaskCreateStatic( TaskFunction_t pxTaskCode, const char * const pcName, const uint32_t ulStackDepth, void * const pvParameters, UBaseType_t uxPriority, StackType_t * const puxStackBuffer, StaticTask_t * const pxTaskBuffer );
|
|
||||||
BaseType_t MPU_xTaskCreateRestricted( const TaskParameters_t * const pxTaskDefinition, TaskHandle_t *pxCreatedTask );
|
|
||||||
void MPU_vTaskAllocateMPURegions( TaskHandle_t xTask, const MemoryRegion_t * const pxRegions );
|
|
||||||
void MPU_vTaskDelete( TaskHandle_t xTaskToDelete );
|
|
||||||
void MPU_vTaskDelay( const TickType_t xTicksToDelay );
|
|
||||||
void MPU_vTaskDelayUntil( TickType_t * const pxPreviousWakeTime, const TickType_t xTimeIncrement );
|
|
||||||
BaseType_t MPU_xTaskAbortDelay( TaskHandle_t xTask );
|
|
||||||
UBaseType_t MPU_uxTaskPriorityGet( TaskHandle_t xTask );
|
|
||||||
eTaskState MPU_eTaskGetState( TaskHandle_t xTask );
|
|
||||||
void MPU_vTaskGetInfo( TaskHandle_t xTask, TaskStatus_t *pxTaskStatus, BaseType_t xGetFreeStackSpace, eTaskState eState );
|
|
||||||
void MPU_vTaskPrioritySet( TaskHandle_t xTask, UBaseType_t uxNewPriority );
|
|
||||||
void MPU_vTaskSuspend( TaskHandle_t xTaskToSuspend );
|
|
||||||
void MPU_vTaskResume( TaskHandle_t xTaskToResume );
|
|
||||||
void MPU_vTaskStartScheduler( void );
|
|
||||||
void MPU_vTaskSuspendAll( void );
|
|
||||||
BaseType_t MPU_xTaskResumeAll( void );
|
|
||||||
TickType_t MPU_xTaskGetTickCount( void );
|
|
||||||
UBaseType_t MPU_uxTaskGetNumberOfTasks( void );
|
|
||||||
char * MPU_pcTaskGetName( TaskHandle_t xTaskToQuery );
|
|
||||||
TaskHandle_t MPU_xTaskGetHandle( const char *pcNameToQuery );
|
|
||||||
UBaseType_t MPU_uxTaskGetStackHighWaterMark( TaskHandle_t xTask );
|
|
||||||
void MPU_vTaskSetApplicationTaskTag( TaskHandle_t xTask, TaskHookFunction_t pxHookFunction );
|
|
||||||
TaskHookFunction_t MPU_xTaskGetApplicationTaskTag( TaskHandle_t xTask );
|
|
||||||
void MPU_vTaskSetThreadLocalStoragePointer( TaskHandle_t xTaskToSet, BaseType_t xIndex, void *pvValue );
|
|
||||||
void * MPU_pvTaskGetThreadLocalStoragePointer( TaskHandle_t xTaskToQuery, BaseType_t xIndex );
|
|
||||||
BaseType_t MPU_xTaskCallApplicationTaskHook( TaskHandle_t xTask, void *pvParameter );
|
|
||||||
TaskHandle_t MPU_xTaskGetIdleTaskHandle( void );
|
|
||||||
UBaseType_t MPU_uxTaskGetSystemState( TaskStatus_t * const pxTaskStatusArray, const UBaseType_t uxArraySize, uint32_t * const pulTotalRunTime );
|
|
||||||
void MPU_vTaskList( char * pcWriteBuffer );
|
|
||||||
void MPU_vTaskGetRunTimeStats( char *pcWriteBuffer );
|
|
||||||
BaseType_t MPU_xTaskGenericNotify( TaskHandle_t xTaskToNotify, uint32_t ulValue, eNotifyAction eAction, uint32_t *pulPreviousNotificationValue );
|
|
||||||
BaseType_t MPU_xTaskNotifyWait( uint32_t ulBitsToClearOnEntry, uint32_t ulBitsToClearOnExit, uint32_t *pulNotificationValue, TickType_t xTicksToWait );
|
|
||||||
uint32_t MPU_ulTaskNotifyTake( BaseType_t xClearCountOnExit, TickType_t xTicksToWait );
|
|
||||||
BaseType_t MPU_xTaskNotifyStateClear( TaskHandle_t xTask );
|
|
||||||
BaseType_t MPU_xTaskIncrementTick( void );
|
|
||||||
TaskHandle_t MPU_xTaskGetCurrentTaskHandle( void );
|
|
||||||
void MPU_vTaskSetTimeOutState( TimeOut_t * const pxTimeOut );
|
|
||||||
BaseType_t MPU_xTaskCheckForTimeOut( TimeOut_t * const pxTimeOut, TickType_t * const pxTicksToWait );
|
|
||||||
void MPU_vTaskMissedYield( void );
|
|
||||||
BaseType_t MPU_xTaskGetSchedulerState( void );
|
|
||||||
|
|
||||||
/* MPU versions of queue.h API function. */
|
|
||||||
BaseType_t MPU_xQueueGenericSend( QueueHandle_t xQueue, const void * const pvItemToQueue, TickType_t xTicksToWait, const BaseType_t xCopyPosition );
|
|
||||||
BaseType_t MPU_xQueueGenericReceive( QueueHandle_t xQueue, void * const pvBuffer, TickType_t xTicksToWait, const BaseType_t xJustPeek );
|
|
||||||
UBaseType_t MPU_uxQueueMessagesWaiting( const QueueHandle_t xQueue );
|
|
||||||
UBaseType_t MPU_uxQueueSpacesAvailable( const QueueHandle_t xQueue );
|
|
||||||
void MPU_vQueueDelete( QueueHandle_t xQueue );
|
|
||||||
QueueHandle_t MPU_xQueueCreateMutex( const uint8_t ucQueueType );
|
|
||||||
QueueHandle_t MPU_xQueueCreateMutexStatic( const uint8_t ucQueueType, StaticQueue_t *pxStaticQueue );
|
|
||||||
QueueHandle_t MPU_xQueueCreateCountingSemaphore( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount );
|
|
||||||
QueueHandle_t MPU_xQueueCreateCountingSemaphoreStatic( const UBaseType_t uxMaxCount, const UBaseType_t uxInitialCount, StaticQueue_t *pxStaticQueue );
|
|
||||||
void* MPU_xQueueGetMutexHolder( QueueHandle_t xSemaphore );
|
|
||||||
BaseType_t MPU_xQueueTakeMutexRecursive( QueueHandle_t xMutex, TickType_t xTicksToWait );
|
|
||||||
BaseType_t MPU_xQueueGiveMutexRecursive( QueueHandle_t pxMutex );
|
|
||||||
void MPU_vQueueAddToRegistry( QueueHandle_t xQueue, const char *pcName );
|
|
||||||
void MPU_vQueueUnregisterQueue( QueueHandle_t xQueue );
|
|
||||||
const char * MPU_pcQueueGetName( QueueHandle_t xQueue );
|
|
||||||
QueueHandle_t MPU_xQueueGenericCreate( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, const uint8_t ucQueueType );
|
|
||||||
QueueHandle_t MPU_xQueueGenericCreateStatic( const UBaseType_t uxQueueLength, const UBaseType_t uxItemSize, uint8_t *pucQueueStorage, StaticQueue_t *pxStaticQueue, const uint8_t ucQueueType );
|
|
||||||
QueueSetHandle_t MPU_xQueueCreateSet( const UBaseType_t uxEventQueueLength );
|
|
||||||
BaseType_t MPU_xQueueAddToSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );
|
|
||||||
BaseType_t MPU_xQueueRemoveFromSet( QueueSetMemberHandle_t xQueueOrSemaphore, QueueSetHandle_t xQueueSet );
|
|
||||||
QueueSetMemberHandle_t MPU_xQueueSelectFromSet( QueueSetHandle_t xQueueSet, const TickType_t xTicksToWait );
|
|
||||||
BaseType_t MPU_xQueueGenericReset( QueueHandle_t xQueue, BaseType_t xNewQueue );
|
|
||||||
void MPU_vQueueSetQueueNumber( QueueHandle_t xQueue, UBaseType_t uxQueueNumber );
|
|
||||||
UBaseType_t MPU_uxQueueGetQueueNumber( QueueHandle_t xQueue );
|
|
||||||
uint8_t MPU_ucQueueGetQueueType( QueueHandle_t xQueue );
|
|
||||||
|
|
||||||
/* MPU versions of timers.h API function. */
|
|
||||||
TimerHandle_t MPU_xTimerCreate( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction );
|
|
||||||
TimerHandle_t MPU_xTimerCreateStatic( const char * const pcTimerName, const TickType_t xTimerPeriodInTicks, const UBaseType_t uxAutoReload, void * const pvTimerID, TimerCallbackFunction_t pxCallbackFunction, StaticTimer_t *pxTimerBuffer );
|
|
||||||
void * MPU_pvTimerGetTimerID( const TimerHandle_t xTimer );
|
|
||||||
void MPU_vTimerSetTimerID( TimerHandle_t xTimer, void *pvNewID );
|
|
||||||
BaseType_t MPU_xTimerIsTimerActive( TimerHandle_t xTimer );
|
|
||||||
TaskHandle_t MPU_xTimerGetTimerDaemonTaskHandle( void );
|
|
||||||
BaseType_t MPU_xTimerPendFunctionCall( PendedFunction_t xFunctionToPend, void *pvParameter1, uint32_t ulParameter2, TickType_t xTicksToWait );
|
|
||||||
const char * MPU_pcTimerGetName( TimerHandle_t xTimer );
|
|
||||||
TickType_t MPU_xTimerGetPeriod( TimerHandle_t xTimer );
|
|
||||||
TickType_t MPU_xTimerGetExpiryTime( TimerHandle_t xTimer );
|
|
||||||
BaseType_t MPU_xTimerCreateTimerTask( void );
|
|
||||||
BaseType_t MPU_xTimerGenericCommand( TimerHandle_t xTimer, const BaseType_t xCommandID, const TickType_t xOptionalValue, BaseType_t * const pxHigherPriorityTaskWoken, const TickType_t xTicksToWait );
|
|
||||||
|
|
||||||
/* MPU versions of event_group.h API function. */
|
|
||||||
EventGroupHandle_t MPU_xEventGroupCreate( void );
|
|
||||||
EventGroupHandle_t MPU_xEventGroupCreateStatic( StaticEventGroup_t *pxEventGroupBuffer );
|
|
||||||
EventBits_t MPU_xEventGroupWaitBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToWaitFor, const BaseType_t xClearOnExit, const BaseType_t xWaitForAllBits, TickType_t xTicksToWait );
|
|
||||||
EventBits_t MPU_xEventGroupClearBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToClear );
|
|
||||||
EventBits_t MPU_xEventGroupSetBits( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet );
|
|
||||||
EventBits_t MPU_xEventGroupSync( EventGroupHandle_t xEventGroup, const EventBits_t uxBitsToSet, const EventBits_t uxBitsToWaitFor, TickType_t xTicksToWait );
|
|
||||||
void MPU_vEventGroupDelete( EventGroupHandle_t xEventGroup );
|
|
||||||
UBaseType_t MPU_uxEventGroupGetNumber( void* xEventGroup );
|
|
||||||
|
|
||||||
#endif /* MPU_PROTOTYPES_H */
|
|
||||||
|
|
@ -1,201 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef MPU_WRAPPERS_H
|
|
||||||
#define MPU_WRAPPERS_H
|
|
||||||
|
|
||||||
/* This file redefines API functions to be called through a wrapper macro, but
|
|
||||||
only for ports that are using the MPU. */
|
|
||||||
#ifdef portUSING_MPU_WRAPPERS
|
|
||||||
|
|
||||||
/* MPU_WRAPPERS_INCLUDED_FROM_API_FILE will be defined when this file is
|
|
||||||
included from queue.c or task.c to prevent it from having an effect within
|
|
||||||
those files. */
|
|
||||||
#ifndef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Map standard (non MPU) API functions to equivalents that start
|
|
||||||
* "MPU_". This will cause the application code to call the MPU_
|
|
||||||
* version, which wraps the non-MPU version with privilege promoting
|
|
||||||
* then demoting code, so the kernel code always runs will full
|
|
||||||
* privileges.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Map standard tasks.h API functions to the MPU equivalents. */
|
|
||||||
#define xTaskCreate MPU_xTaskCreate
|
|
||||||
#define xTaskCreateStatic MPU_xTaskCreateStatic
|
|
||||||
#define xTaskCreateRestricted MPU_xTaskCreateRestricted
|
|
||||||
#define vTaskAllocateMPURegions MPU_vTaskAllocateMPURegions
|
|
||||||
#define vTaskDelete MPU_vTaskDelete
|
|
||||||
#define vTaskDelay MPU_vTaskDelay
|
|
||||||
#define vTaskDelayUntil MPU_vTaskDelayUntil
|
|
||||||
#define xTaskAbortDelay MPU_xTaskAbortDelay
|
|
||||||
#define uxTaskPriorityGet MPU_uxTaskPriorityGet
|
|
||||||
#define eTaskGetState MPU_eTaskGetState
|
|
||||||
#define vTaskGetInfo MPU_vTaskGetInfo
|
|
||||||
#define vTaskPrioritySet MPU_vTaskPrioritySet
|
|
||||||
#define vTaskSuspend MPU_vTaskSuspend
|
|
||||||
#define vTaskResume MPU_vTaskResume
|
|
||||||
#define vTaskSuspendAll MPU_vTaskSuspendAll
|
|
||||||
#define xTaskResumeAll MPU_xTaskResumeAll
|
|
||||||
#define xTaskGetTickCount MPU_xTaskGetTickCount
|
|
||||||
#define uxTaskGetNumberOfTasks MPU_uxTaskGetNumberOfTasks
|
|
||||||
#define pcTaskGetName MPU_pcTaskGetName
|
|
||||||
#define xTaskGetHandle MPU_xTaskGetHandle
|
|
||||||
#define uxTaskGetStackHighWaterMark MPU_uxTaskGetStackHighWaterMark
|
|
||||||
#define vTaskSetApplicationTaskTag MPU_vTaskSetApplicationTaskTag
|
|
||||||
#define xTaskGetApplicationTaskTag MPU_xTaskGetApplicationTaskTag
|
|
||||||
#define vTaskSetThreadLocalStoragePointer MPU_vTaskSetThreadLocalStoragePointer
|
|
||||||
#define pvTaskGetThreadLocalStoragePointer MPU_pvTaskGetThreadLocalStoragePointer
|
|
||||||
#define xTaskCallApplicationTaskHook MPU_xTaskCallApplicationTaskHook
|
|
||||||
#define xTaskGetIdleTaskHandle MPU_xTaskGetIdleTaskHandle
|
|
||||||
#define uxTaskGetSystemState MPU_uxTaskGetSystemState
|
|
||||||
#define vTaskList MPU_vTaskList
|
|
||||||
#define vTaskGetRunTimeStats MPU_vTaskGetRunTimeStats
|
|
||||||
#define xTaskGenericNotify MPU_xTaskGenericNotify
|
|
||||||
#define xTaskNotifyWait MPU_xTaskNotifyWait
|
|
||||||
#define ulTaskNotifyTake MPU_ulTaskNotifyTake
|
|
||||||
#define xTaskNotifyStateClear MPU_xTaskNotifyStateClear
|
|
||||||
|
|
||||||
#define xTaskGetCurrentTaskHandle MPU_xTaskGetCurrentTaskHandle
|
|
||||||
#define vTaskSetTimeOutState MPU_vTaskSetTimeOutState
|
|
||||||
#define xTaskCheckForTimeOut MPU_xTaskCheckForTimeOut
|
|
||||||
#define xTaskGetSchedulerState MPU_xTaskGetSchedulerState
|
|
||||||
|
|
||||||
/* Map standard queue.h API functions to the MPU equivalents. */
|
|
||||||
#define xQueueGenericSend MPU_xQueueGenericSend
|
|
||||||
#define xQueueGenericReceive MPU_xQueueGenericReceive
|
|
||||||
#define uxQueueMessagesWaiting MPU_uxQueueMessagesWaiting
|
|
||||||
#define uxQueueSpacesAvailable MPU_uxQueueSpacesAvailable
|
|
||||||
#define vQueueDelete MPU_vQueueDelete
|
|
||||||
#define xQueueCreateMutex MPU_xQueueCreateMutex
|
|
||||||
#define xQueueCreateMutexStatic MPU_xQueueCreateMutexStatic
|
|
||||||
#define xQueueCreateCountingSemaphore MPU_xQueueCreateCountingSemaphore
|
|
||||||
#define xQueueCreateCountingSemaphoreStatic MPU_xQueueCreateCountingSemaphoreStatic
|
|
||||||
#define xQueueGetMutexHolder MPU_xQueueGetMutexHolder
|
|
||||||
#define xQueueTakeMutexRecursive MPU_xQueueTakeMutexRecursive
|
|
||||||
#define xQueueGiveMutexRecursive MPU_xQueueGiveMutexRecursive
|
|
||||||
#define xQueueGenericCreate MPU_xQueueGenericCreate
|
|
||||||
#define xQueueGenericCreateStatic MPU_xQueueGenericCreateStatic
|
|
||||||
#define xQueueCreateSet MPU_xQueueCreateSet
|
|
||||||
#define xQueueAddToSet MPU_xQueueAddToSet
|
|
||||||
#define xQueueRemoveFromSet MPU_xQueueRemoveFromSet
|
|
||||||
#define xQueueSelectFromSet MPU_xQueueSelectFromSet
|
|
||||||
#define xQueueGenericReset MPU_xQueueGenericReset
|
|
||||||
|
|
||||||
#if( configQUEUE_REGISTRY_SIZE > 0 )
|
|
||||||
#define vQueueAddToRegistry MPU_vQueueAddToRegistry
|
|
||||||
#define vQueueUnregisterQueue MPU_vQueueUnregisterQueue
|
|
||||||
#define pcQueueGetName MPU_pcQueueGetName
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Map standard timer.h API functions to the MPU equivalents. */
|
|
||||||
#define xTimerCreate MPU_xTimerCreate
|
|
||||||
#define xTimerCreateStatic MPU_xTimerCreateStatic
|
|
||||||
#define pvTimerGetTimerID MPU_pvTimerGetTimerID
|
|
||||||
#define vTimerSetTimerID MPU_vTimerSetTimerID
|
|
||||||
#define xTimerIsTimerActive MPU_xTimerIsTimerActive
|
|
||||||
#define xTimerGetTimerDaemonTaskHandle MPU_xTimerGetTimerDaemonTaskHandle
|
|
||||||
#define xTimerPendFunctionCall MPU_xTimerPendFunctionCall
|
|
||||||
#define pcTimerGetName MPU_pcTimerGetName
|
|
||||||
#define xTimerGetPeriod MPU_xTimerGetPeriod
|
|
||||||
#define xTimerGetExpiryTime MPU_xTimerGetExpiryTime
|
|
||||||
#define xTimerGenericCommand MPU_xTimerGenericCommand
|
|
||||||
|
|
||||||
/* Map standard event_group.h API functions to the MPU equivalents. */
|
|
||||||
#define xEventGroupCreate MPU_xEventGroupCreate
|
|
||||||
#define xEventGroupCreateStatic MPU_xEventGroupCreateStatic
|
|
||||||
#define xEventGroupWaitBits MPU_xEventGroupWaitBits
|
|
||||||
#define xEventGroupClearBits MPU_xEventGroupClearBits
|
|
||||||
#define xEventGroupSetBits MPU_xEventGroupSetBits
|
|
||||||
#define xEventGroupSync MPU_xEventGroupSync
|
|
||||||
#define vEventGroupDelete MPU_vEventGroupDelete
|
|
||||||
|
|
||||||
/* Remove the privileged function macro. */
|
|
||||||
#define PRIVILEGED_FUNCTION
|
|
||||||
|
|
||||||
#else /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
|
||||||
|
|
||||||
/* Ensure API functions go in the privileged execution section. */
|
|
||||||
#define PRIVILEGED_FUNCTION __attribute__((section("privileged_functions")))
|
|
||||||
#define PRIVILEGED_DATA __attribute__((section("privileged_data")))
|
|
||||||
|
|
||||||
#endif /* MPU_WRAPPERS_INCLUDED_FROM_API_FILE */
|
|
||||||
|
|
||||||
#else /* portUSING_MPU_WRAPPERS */
|
|
||||||
|
|
||||||
#define PRIVILEGED_FUNCTION
|
|
||||||
#define PRIVILEGED_DATA
|
|
||||||
#define portUSING_MPU_WRAPPERS 0
|
|
||||||
|
|
||||||
#endif /* portUSING_MPU_WRAPPERS */
|
|
||||||
|
|
||||||
|
|
||||||
#endif /* MPU_WRAPPERS_H */
|
|
||||||
|
|
@ -1,207 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
|
||||||
* Portable layer API. Each function must be defined for each port.
|
|
||||||
*----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifndef PORTABLE_H
|
|
||||||
#define PORTABLE_H
|
|
||||||
|
|
||||||
/* Each FreeRTOS port has a unique portmacro.h header file. Originally a
|
|
||||||
pre-processor definition was used to ensure the pre-processor found the correct
|
|
||||||
portmacro.h file for the port being used. That scheme was deprecated in favour
|
|
||||||
of setting the compiler's include path such that it found the correct
|
|
||||||
portmacro.h file - removing the need for the constant and allowing the
|
|
||||||
portmacro.h file to be located anywhere in relation to the port being used.
|
|
||||||
Purely for reasons of backward compatibility the old method is still valid, but
|
|
||||||
to make it clear that new projects should not use it, support for the port
|
|
||||||
specific constants has been moved into the deprecated_definitions.h header
|
|
||||||
file. */
|
|
||||||
#include "deprecated_definitions.h"
|
|
||||||
|
|
||||||
/* If portENTER_CRITICAL is not defined then including deprecated_definitions.h
|
|
||||||
did not result in a portmacro.h header file being included - and it should be
|
|
||||||
included here. In this case the path to the correct portmacro.h header file
|
|
||||||
must be set in the compiler's include path. */
|
|
||||||
#ifndef portENTER_CRITICAL
|
|
||||||
#include "portmacro.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 32
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x001f )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 16
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x000f )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 8
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x0007 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 4
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x0003 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 2
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x0001 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if portBYTE_ALIGNMENT == 1
|
|
||||||
#define portBYTE_ALIGNMENT_MASK ( 0x0000 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef portBYTE_ALIGNMENT_MASK
|
|
||||||
#error "Invalid portBYTE_ALIGNMENT definition"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef portNUM_CONFIGURABLE_REGIONS
|
|
||||||
#define portNUM_CONFIGURABLE_REGIONS 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "mpu_wrappers.h"
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Setup the stack of a new task so it is ready to be placed under the
|
|
||||||
* scheduler control. The registers have to be placed on the stack in
|
|
||||||
* the order that the port expects to find them.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
#if( portUSING_MPU_WRAPPERS == 1 )
|
|
||||||
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters, BaseType_t xRunPrivileged ) PRIVILEGED_FUNCTION;
|
|
||||||
#else
|
|
||||||
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters ) PRIVILEGED_FUNCTION;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Used by heap_5.c. */
|
|
||||||
typedef struct HeapRegion
|
|
||||||
{
|
|
||||||
uint8_t *pucStartAddress;
|
|
||||||
size_t xSizeInBytes;
|
|
||||||
} HeapRegion_t;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Used to define multiple heap regions for use by heap_5.c. This function
|
|
||||||
* must be called before any calls to pvPortMalloc() - not creating a task,
|
|
||||||
* queue, semaphore, mutex, software timer, event group, etc. will result in
|
|
||||||
* pvPortMalloc being called.
|
|
||||||
*
|
|
||||||
* pxHeapRegions passes in an array of HeapRegion_t structures - each of which
|
|
||||||
* defines a region of memory that can be used as the heap. The array is
|
|
||||||
* terminated by a HeapRegions_t structure that has a size of 0. The region
|
|
||||||
* with the lowest start address must appear first in the array.
|
|
||||||
*/
|
|
||||||
void vPortDefineHeapRegions( const HeapRegion_t * const pxHeapRegions ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Map to the memory management routines required for the port.
|
|
||||||
*/
|
|
||||||
void *pvPortMalloc( size_t xSize ) PRIVILEGED_FUNCTION;
|
|
||||||
void vPortFree( void *pv ) PRIVILEGED_FUNCTION;
|
|
||||||
void vPortInitialiseBlocks( void ) PRIVILEGED_FUNCTION;
|
|
||||||
size_t xPortGetFreeHeapSize( void ) PRIVILEGED_FUNCTION;
|
|
||||||
size_t xPortGetMinimumEverFreeHeapSize( void ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Setup the hardware ready for the scheduler to take control. This generally
|
|
||||||
* sets up a tick interrupt and sets timers for the correct tick frequency.
|
|
||||||
*/
|
|
||||||
BaseType_t xPortStartScheduler( void ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Undo any hardware/ISR setup that was performed by xPortStartScheduler() so
|
|
||||||
* the hardware is left in its original condition after the scheduler stops
|
|
||||||
* executing.
|
|
||||||
*/
|
|
||||||
void vPortEndScheduler( void ) PRIVILEGED_FUNCTION;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The structures and methods of manipulating the MPU are contained within the
|
|
||||||
* port layer.
|
|
||||||
*
|
|
||||||
* Fills the xMPUSettings structure with the memory region information
|
|
||||||
* contained in xRegions.
|
|
||||||
*/
|
|
||||||
#if( portUSING_MPU_WRAPPERS == 1 )
|
|
||||||
struct xMEMORY_REGION;
|
|
||||||
void vPortStoreTaskMPUSettings( xMPU_SETTINGS *xMPUSettings, const struct xMEMORY_REGION * const xRegions, StackType_t *pxBottomOfStack, uint32_t ulStackDepth ) PRIVILEGED_FUNCTION;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PORTABLE_H */
|
|
||||||
|
|
@ -1,161 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef PROJDEFS_H
|
|
||||||
#define PROJDEFS_H
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Defines the prototype to which task functions must conform. Defined in this
|
|
||||||
* file to ensure the type is known before portable.h is included.
|
|
||||||
*/
|
|
||||||
typedef void (*TaskFunction_t)( void * );
|
|
||||||
|
|
||||||
/* Converts a time in milliseconds to a time in ticks. This macro can be
|
|
||||||
overridden by a macro of the same name defined in FreeRTOSConfig.h in case the
|
|
||||||
definition here is not suitable for your application. */
|
|
||||||
#ifndef pdMS_TO_TICKS
|
|
||||||
#define pdMS_TO_TICKS( xTimeInMs ) ( ( TickType_t ) ( ( ( TickType_t ) ( xTimeInMs ) * ( TickType_t ) configTICK_RATE_HZ ) / ( TickType_t ) 1000 ) )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#define pdFALSE ( ( BaseType_t ) 0 )
|
|
||||||
#define pdTRUE ( ( BaseType_t ) 1 )
|
|
||||||
|
|
||||||
#define pdPASS ( pdTRUE )
|
|
||||||
#define pdFAIL ( pdFALSE )
|
|
||||||
#define errQUEUE_EMPTY ( ( BaseType_t ) 0 )
|
|
||||||
#define errQUEUE_FULL ( ( BaseType_t ) 0 )
|
|
||||||
|
|
||||||
/* FreeRTOS error definitions. */
|
|
||||||
#define errCOULD_NOT_ALLOCATE_REQUIRED_MEMORY ( -1 )
|
|
||||||
#define errQUEUE_BLOCKED ( -4 )
|
|
||||||
#define errQUEUE_YIELD ( -5 )
|
|
||||||
|
|
||||||
/* Macros used for basic data corruption checks. */
|
|
||||||
#ifndef configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES
|
|
||||||
#define configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if( configUSE_16_BIT_TICKS == 1 )
|
|
||||||
#define pdINTEGRITY_CHECK_VALUE 0x5a5a
|
|
||||||
#else
|
|
||||||
#define pdINTEGRITY_CHECK_VALUE 0x5a5a5a5aUL
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The following errno values are used by FreeRTOS+ components, not FreeRTOS
|
|
||||||
itself. */
|
|
||||||
#define pdFREERTOS_ERRNO_NONE 0 /* No errors */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOENT 2 /* No such file or directory */
|
|
||||||
#define pdFREERTOS_ERRNO_EINTR 4 /* Interrupted system call */
|
|
||||||
#define pdFREERTOS_ERRNO_EIO 5 /* I/O error */
|
|
||||||
#define pdFREERTOS_ERRNO_ENXIO 6 /* No such device or address */
|
|
||||||
#define pdFREERTOS_ERRNO_EBADF 9 /* Bad file number */
|
|
||||||
#define pdFREERTOS_ERRNO_EAGAIN 11 /* No more processes */
|
|
||||||
#define pdFREERTOS_ERRNO_EWOULDBLOCK 11 /* Operation would block */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOMEM 12 /* Not enough memory */
|
|
||||||
#define pdFREERTOS_ERRNO_EACCES 13 /* Permission denied */
|
|
||||||
#define pdFREERTOS_ERRNO_EFAULT 14 /* Bad address */
|
|
||||||
#define pdFREERTOS_ERRNO_EBUSY 16 /* Mount device busy */
|
|
||||||
#define pdFREERTOS_ERRNO_EEXIST 17 /* File exists */
|
|
||||||
#define pdFREERTOS_ERRNO_EXDEV 18 /* Cross-device link */
|
|
||||||
#define pdFREERTOS_ERRNO_ENODEV 19 /* No such device */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOTDIR 20 /* Not a directory */
|
|
||||||
#define pdFREERTOS_ERRNO_EISDIR 21 /* Is a directory */
|
|
||||||
#define pdFREERTOS_ERRNO_EINVAL 22 /* Invalid argument */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOSPC 28 /* No space left on device */
|
|
||||||
#define pdFREERTOS_ERRNO_ESPIPE 29 /* Illegal seek */
|
|
||||||
#define pdFREERTOS_ERRNO_EROFS 30 /* Read only file system */
|
|
||||||
#define pdFREERTOS_ERRNO_EUNATCH 42 /* Protocol driver not attached */
|
|
||||||
#define pdFREERTOS_ERRNO_EBADE 50 /* Invalid exchange */
|
|
||||||
#define pdFREERTOS_ERRNO_EFTYPE 79 /* Inappropriate file type or format */
|
|
||||||
#define pdFREERTOS_ERRNO_ENMFILE 89 /* No more files */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOTEMPTY 90 /* Directory not empty */
|
|
||||||
#define pdFREERTOS_ERRNO_ENAMETOOLONG 91 /* File or path name too long */
|
|
||||||
#define pdFREERTOS_ERRNO_EOPNOTSUPP 95 /* Operation not supported on transport endpoint */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOBUFS 105 /* No buffer space available */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOPROTOOPT 109 /* Protocol not available */
|
|
||||||
#define pdFREERTOS_ERRNO_EADDRINUSE 112 /* Address already in use */
|
|
||||||
#define pdFREERTOS_ERRNO_ETIMEDOUT 116 /* Connection timed out */
|
|
||||||
#define pdFREERTOS_ERRNO_EINPROGRESS 119 /* Connection already in progress */
|
|
||||||
#define pdFREERTOS_ERRNO_EALREADY 120 /* Socket already connected */
|
|
||||||
#define pdFREERTOS_ERRNO_EADDRNOTAVAIL 125 /* Address not available */
|
|
||||||
#define pdFREERTOS_ERRNO_EISCONN 127 /* Socket is already connected */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOTCONN 128 /* Socket is not connected */
|
|
||||||
#define pdFREERTOS_ERRNO_ENOMEDIUM 135 /* No medium inserted */
|
|
||||||
#define pdFREERTOS_ERRNO_EILSEQ 138 /* An invalid UTF-16 sequence was encountered. */
|
|
||||||
#define pdFREERTOS_ERRNO_ECANCELED 140 /* Operation canceled. */
|
|
||||||
|
|
||||||
/* The following endian values are used by FreeRTOS+ components, not FreeRTOS
|
|
||||||
itself. */
|
|
||||||
#define pdFREERTOS_LITTLE_ENDIAN 0
|
|
||||||
#define pdFREERTOS_BIG_ENDIAN 1
|
|
||||||
|
|
||||||
#endif /* PROJDEFS_H */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,240 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "list.h"
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
|
||||||
* PUBLIC LIST API documented in list.h
|
|
||||||
*----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vListInitialise( List_t * const pxList )
|
|
||||||
{
|
|
||||||
/* The list structure contains a list item which is used to mark the
|
|
||||||
end of the list. To initialise the list the list end is inserted
|
|
||||||
as the only list entry. */
|
|
||||||
pxList->pxIndex = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
||||||
|
|
||||||
/* The list end value is the highest possible value in the list to
|
|
||||||
ensure it remains at the end of the list. */
|
|
||||||
pxList->xListEnd.xItemValue = portMAX_DELAY;
|
|
||||||
|
|
||||||
/* The list end next and previous pointers point to itself so we know
|
|
||||||
when the list is empty. */
|
|
||||||
pxList->xListEnd.pxNext = ( ListItem_t * ) &( pxList->xListEnd ); /*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
||||||
pxList->xListEnd.pxPrevious = ( ListItem_t * ) &( pxList->xListEnd );/*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
||||||
|
|
||||||
pxList->uxNumberOfItems = ( UBaseType_t ) 0U;
|
|
||||||
|
|
||||||
/* Write known values into the list if
|
|
||||||
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
listSET_LIST_INTEGRITY_CHECK_1_VALUE( pxList );
|
|
||||||
listSET_LIST_INTEGRITY_CHECK_2_VALUE( pxList );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vListInitialiseItem( ListItem_t * const pxItem )
|
|
||||||
{
|
|
||||||
/* Make sure the list item is not recorded as being on a list. */
|
|
||||||
pxItem->pvContainer = NULL;
|
|
||||||
|
|
||||||
/* Write known values into the list item if
|
|
||||||
configUSE_LIST_DATA_INTEGRITY_CHECK_BYTES is set to 1. */
|
|
||||||
listSET_FIRST_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
|
|
||||||
listSET_SECOND_LIST_ITEM_INTEGRITY_CHECK_VALUE( pxItem );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vListInsertEnd( List_t * const pxList, ListItem_t * const pxNewListItem )
|
|
||||||
{
|
|
||||||
ListItem_t * const pxIndex = pxList->pxIndex;
|
|
||||||
|
|
||||||
/* Only effective when configASSERT() is also defined, these tests may catch
|
|
||||||
the list data structures being overwritten in memory. They will not catch
|
|
||||||
data errors caused by incorrect configuration or use of FreeRTOS. */
|
|
||||||
listTEST_LIST_INTEGRITY( pxList );
|
|
||||||
listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
|
|
||||||
|
|
||||||
/* Insert a new list item into pxList, but rather than sort the list,
|
|
||||||
makes the new list item the last item to be removed by a call to
|
|
||||||
listGET_OWNER_OF_NEXT_ENTRY(). */
|
|
||||||
pxNewListItem->pxNext = pxIndex;
|
|
||||||
pxNewListItem->pxPrevious = pxIndex->pxPrevious;
|
|
||||||
|
|
||||||
/* Only used during decision coverage testing. */
|
|
||||||
mtCOVERAGE_TEST_DELAY();
|
|
||||||
|
|
||||||
pxIndex->pxPrevious->pxNext = pxNewListItem;
|
|
||||||
pxIndex->pxPrevious = pxNewListItem;
|
|
||||||
|
|
||||||
/* Remember which list the item is in. */
|
|
||||||
pxNewListItem->pvContainer = ( void * ) pxList;
|
|
||||||
|
|
||||||
( pxList->uxNumberOfItems )++;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vListInsert( List_t * const pxList, ListItem_t * const pxNewListItem )
|
|
||||||
{
|
|
||||||
ListItem_t *pxIterator;
|
|
||||||
const TickType_t xValueOfInsertion = pxNewListItem->xItemValue;
|
|
||||||
|
|
||||||
/* Only effective when configASSERT() is also defined, these tests may catch
|
|
||||||
the list data structures being overwritten in memory. They will not catch
|
|
||||||
data errors caused by incorrect configuration or use of FreeRTOS. */
|
|
||||||
listTEST_LIST_INTEGRITY( pxList );
|
|
||||||
listTEST_LIST_ITEM_INTEGRITY( pxNewListItem );
|
|
||||||
|
|
||||||
/* Insert the new list item into the list, sorted in xItemValue order.
|
|
||||||
|
|
||||||
If the list already contains a list item with the same item value then the
|
|
||||||
new list item should be placed after it. This ensures that TCB's which are
|
|
||||||
stored in ready lists (all of which have the same xItemValue value) get a
|
|
||||||
share of the CPU. However, if the xItemValue is the same as the back marker
|
|
||||||
the iteration loop below will not end. Therefore the value is checked
|
|
||||||
first, and the algorithm slightly modified if necessary. */
|
|
||||||
if( xValueOfInsertion == portMAX_DELAY )
|
|
||||||
{
|
|
||||||
pxIterator = pxList->xListEnd.pxPrevious;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* *** NOTE ***********************************************************
|
|
||||||
If you find your application is crashing here then likely causes are
|
|
||||||
listed below. In addition see http://www.freertos.org/FAQHelp.html for
|
|
||||||
more tips, and ensure configASSERT() is defined!
|
|
||||||
http://www.freertos.org/a00110.html#configASSERT
|
|
||||||
|
|
||||||
1) Stack overflow -
|
|
||||||
see http://www.freertos.org/Stacks-and-stack-overflow-checking.html
|
|
||||||
2) Incorrect interrupt priority assignment, especially on Cortex-M
|
|
||||||
parts where numerically high priority values denote low actual
|
|
||||||
interrupt priorities, which can seem counter intuitive. See
|
|
||||||
http://www.freertos.org/RTOS-Cortex-M3-M4.html and the definition
|
|
||||||
of configMAX_SYSCALL_INTERRUPT_PRIORITY on
|
|
||||||
http://www.freertos.org/a00110.html
|
|
||||||
3) Calling an API function from within a critical section or when
|
|
||||||
the scheduler is suspended, or calling an API function that does
|
|
||||||
not end in "FromISR" from an interrupt.
|
|
||||||
4) Using a queue or semaphore before it has been initialised or
|
|
||||||
before the scheduler has been started (are interrupts firing
|
|
||||||
before vTaskStartScheduler() has been called?).
|
|
||||||
**********************************************************************/
|
|
||||||
|
|
||||||
for( pxIterator = ( ListItem_t * ) &( pxList->xListEnd ); pxIterator->pxNext->xItemValue <= xValueOfInsertion; pxIterator = pxIterator->pxNext ) /*lint !e826 !e740 The mini list structure is used as the list end to save RAM. This is checked and valid. */
|
|
||||||
{
|
|
||||||
/* There is nothing to do here, just iterating to the wanted
|
|
||||||
insertion position. */
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pxNewListItem->pxNext = pxIterator->pxNext;
|
|
||||||
pxNewListItem->pxNext->pxPrevious = pxNewListItem;
|
|
||||||
pxNewListItem->pxPrevious = pxIterator;
|
|
||||||
pxIterator->pxNext = pxNewListItem;
|
|
||||||
|
|
||||||
/* Remember which list the item is in. This allows fast removal of the
|
|
||||||
item later. */
|
|
||||||
pxNewListItem->pvContainer = ( void * ) pxList;
|
|
||||||
|
|
||||||
( pxList->uxNumberOfItems )++;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
UBaseType_t uxListRemove( ListItem_t * const pxItemToRemove )
|
|
||||||
{
|
|
||||||
/* The list item knows which list it is in. Obtain the list from the list
|
|
||||||
item. */
|
|
||||||
List_t * const pxList = ( List_t * ) pxItemToRemove->pvContainer;
|
|
||||||
|
|
||||||
pxItemToRemove->pxNext->pxPrevious = pxItemToRemove->pxPrevious;
|
|
||||||
pxItemToRemove->pxPrevious->pxNext = pxItemToRemove->pxNext;
|
|
||||||
|
|
||||||
/* Only used during decision coverage testing. */
|
|
||||||
mtCOVERAGE_TEST_DELAY();
|
|
||||||
|
|
||||||
/* Make sure the index is left pointing to a valid item. */
|
|
||||||
if( pxList->pxIndex == pxItemToRemove )
|
|
||||||
{
|
|
||||||
pxList->pxIndex = pxItemToRemove->pxPrevious;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
pxItemToRemove->pvContainer = NULL;
|
|
||||||
( pxList->uxNumberOfItems )--;
|
|
||||||
|
|
||||||
return pxList->uxNumberOfItems;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
@ -1,710 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
|
||||||
* Implementation of functions defined in portable.h for the ARM CM3 port.
|
|
||||||
*----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Scheduler includes. */
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
/* For backward compatibility, ensure configKERNEL_INTERRUPT_PRIORITY is
|
|
||||||
defined. The value should also ensure backward compatibility.
|
|
||||||
FreeRTOS.org versions prior to V4.4.0 did not include this definition. */
|
|
||||||
#ifndef configKERNEL_INTERRUPT_PRIORITY
|
|
||||||
#define configKERNEL_INTERRUPT_PRIORITY 255
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef configSYSTICK_CLOCK_HZ
|
|
||||||
#define configSYSTICK_CLOCK_HZ configCPU_CLOCK_HZ
|
|
||||||
/* Ensure the SysTick is clocked at the same frequency as the core. */
|
|
||||||
#define portNVIC_SYSTICK_CLK_BIT ( 1UL << 2UL )
|
|
||||||
#else
|
|
||||||
/* The way the SysTick is clocked is not modified in case it is not the same
|
|
||||||
as the core. */
|
|
||||||
#define portNVIC_SYSTICK_CLK_BIT ( 0 )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Constants required to manipulate the core. Registers first... */
|
|
||||||
#define portNVIC_SYSTICK_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000e010 ) )
|
|
||||||
#define portNVIC_SYSTICK_LOAD_REG ( * ( ( volatile uint32_t * ) 0xe000e014 ) )
|
|
||||||
#define portNVIC_SYSTICK_CURRENT_VALUE_REG ( * ( ( volatile uint32_t * ) 0xe000e018 ) )
|
|
||||||
#define portNVIC_SYSPRI2_REG ( * ( ( volatile uint32_t * ) 0xe000ed20 ) )
|
|
||||||
/* ...then bits in the registers. */
|
|
||||||
#define portNVIC_SYSTICK_INT_BIT ( 1UL << 1UL )
|
|
||||||
#define portNVIC_SYSTICK_ENABLE_BIT ( 1UL << 0UL )
|
|
||||||
#define portNVIC_SYSTICK_COUNT_FLAG_BIT ( 1UL << 16UL )
|
|
||||||
#define portNVIC_PENDSVCLEAR_BIT ( 1UL << 27UL )
|
|
||||||
#define portNVIC_PEND_SYSTICK_CLEAR_BIT ( 1UL << 25UL )
|
|
||||||
|
|
||||||
#define portNVIC_PENDSV_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 16UL )
|
|
||||||
#define portNVIC_SYSTICK_PRI ( ( ( uint32_t ) configKERNEL_INTERRUPT_PRIORITY ) << 24UL )
|
|
||||||
|
|
||||||
/* Constants required to check the validity of an interrupt priority. */
|
|
||||||
#define portFIRST_USER_INTERRUPT_NUMBER ( 16 )
|
|
||||||
#define portNVIC_IP_REGISTERS_OFFSET_16 ( 0xE000E3F0 )
|
|
||||||
#define portAIRCR_REG ( * ( ( volatile uint32_t * ) 0xE000ED0C ) )
|
|
||||||
#define portMAX_8_BIT_VALUE ( ( uint8_t ) 0xff )
|
|
||||||
#define portTOP_BIT_OF_BYTE ( ( uint8_t ) 0x80 )
|
|
||||||
#define portMAX_PRIGROUP_BITS ( ( uint8_t ) 7 )
|
|
||||||
#define portPRIORITY_GROUP_MASK ( 0x07UL << 8UL )
|
|
||||||
#define portPRIGROUP_SHIFT ( 8UL )
|
|
||||||
|
|
||||||
/* Masks off all bits but the VECTACTIVE bits in the ICSR register. */
|
|
||||||
#define portVECTACTIVE_MASK ( 0xFFUL )
|
|
||||||
|
|
||||||
/* Constants required to set up the initial stack. */
|
|
||||||
#define portINITIAL_XPSR ( 0x01000000UL )
|
|
||||||
|
|
||||||
/* The systick is a 24-bit counter. */
|
|
||||||
#define portMAX_24_BIT_NUMBER ( 0xffffffUL )
|
|
||||||
|
|
||||||
/* A fiddle factor to estimate the number of SysTick counts that would have
|
|
||||||
occurred while the SysTick counter is stopped during tickless idle
|
|
||||||
calculations. */
|
|
||||||
#define portMISSED_COUNTS_FACTOR ( 45UL )
|
|
||||||
|
|
||||||
/* For strict compliance with the Cortex-M spec the task start address should
|
|
||||||
have bit-0 clear, as it is loaded into the PC on exit from an ISR. */
|
|
||||||
#define portSTART_ADDRESS_MASK ( ( StackType_t ) 0xfffffffeUL )
|
|
||||||
|
|
||||||
/* Let the user override the pre-loading of the initial LR with the address of
|
|
||||||
prvTaskExitError() in case it messes up unwinding of the stack in the
|
|
||||||
debugger. */
|
|
||||||
#ifdef configTASK_RETURN_ADDRESS
|
|
||||||
#define portTASK_RETURN_ADDRESS configTASK_RETURN_ADDRESS
|
|
||||||
#else
|
|
||||||
#define portTASK_RETURN_ADDRESS prvTaskExitError
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Each task maintains its own interrupt status in the critical nesting
|
|
||||||
variable. */
|
|
||||||
static UBaseType_t uxCriticalNesting = 0xaaaaaaaa;
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Setup the timer to generate the tick interrupts. The implementation in this
|
|
||||||
* file is weak to allow application writers to change the timer used to
|
|
||||||
* generate the tick interrupt.
|
|
||||||
*/
|
|
||||||
void vPortSetupTimerInterrupt( void );
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Exception handlers.
|
|
||||||
*/
|
|
||||||
void xPortPendSVHandler( void ) __attribute__ (( naked ));
|
|
||||||
void xPortSysTickHandler( void );
|
|
||||||
void vPortSVCHandler( void ) __attribute__ (( naked ));
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Start first task is a separate function so it can be tested in isolation.
|
|
||||||
*/
|
|
||||||
static void prvPortStartFirstTask( void ) __attribute__ (( naked ));
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Used to catch tasks that attempt to return from their implementing function.
|
|
||||||
*/
|
|
||||||
static void prvTaskExitError( void );
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The number of SysTick increments that make up one tick period.
|
|
||||||
*/
|
|
||||||
#if configUSE_TICKLESS_IDLE == 1
|
|
||||||
static uint32_t ulTimerCountsForOneTick = 0;
|
|
||||||
#endif /* configUSE_TICKLESS_IDLE */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* The maximum number of tick periods that can be suppressed is limited by the
|
|
||||||
* 24 bit resolution of the SysTick timer.
|
|
||||||
*/
|
|
||||||
#if configUSE_TICKLESS_IDLE == 1
|
|
||||||
static uint32_t xMaximumPossibleSuppressedTicks = 0;
|
|
||||||
#endif /* configUSE_TICKLESS_IDLE */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Compensate for the CPU cycles that pass while the SysTick is stopped (low
|
|
||||||
* power functionality only.
|
|
||||||
*/
|
|
||||||
#if configUSE_TICKLESS_IDLE == 1
|
|
||||||
static uint32_t ulStoppedTimerCompensation = 0;
|
|
||||||
#endif /* configUSE_TICKLESS_IDLE */
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Used by the portASSERT_IF_INTERRUPT_PRIORITY_INVALID() macro to ensure
|
|
||||||
* FreeRTOS API functions are not called from interrupts that have been assigned
|
|
||||||
* a priority above configMAX_SYSCALL_INTERRUPT_PRIORITY.
|
|
||||||
*/
|
|
||||||
#if ( configASSERT_DEFINED == 1 )
|
|
||||||
static uint8_t ucMaxSysCallPriority = 0;
|
|
||||||
static uint32_t ulMaxPRIGROUPValue = 0;
|
|
||||||
static const volatile uint8_t * const pcInterruptPriorityRegisters = ( const volatile uint8_t * const ) portNVIC_IP_REGISTERS_OFFSET_16;
|
|
||||||
#endif /* configASSERT_DEFINED */
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* See header file for description.
|
|
||||||
*/
|
|
||||||
StackType_t *pxPortInitialiseStack( StackType_t *pxTopOfStack, TaskFunction_t pxCode, void *pvParameters )
|
|
||||||
{
|
|
||||||
/* Simulate the stack frame as it would be created by a context switch
|
|
||||||
interrupt. */
|
|
||||||
pxTopOfStack--; /* Offset added to account for the way the MCU uses the stack on entry/exit of interrupts. */
|
|
||||||
*pxTopOfStack = portINITIAL_XPSR; /* xPSR */
|
|
||||||
pxTopOfStack--;
|
|
||||||
*pxTopOfStack = ( ( StackType_t ) pxCode ) & portSTART_ADDRESS_MASK; /* PC */
|
|
||||||
pxTopOfStack--;
|
|
||||||
*pxTopOfStack = ( StackType_t ) portTASK_RETURN_ADDRESS; /* LR */
|
|
||||||
pxTopOfStack -= 5; /* R12, R3, R2 and R1. */
|
|
||||||
*pxTopOfStack = ( StackType_t ) pvParameters; /* R0 */
|
|
||||||
pxTopOfStack -= 8; /* R11, R10, R9, R8, R7, R6, R5 and R4. */
|
|
||||||
|
|
||||||
return pxTopOfStack;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvTaskExitError( void )
|
|
||||||
{
|
|
||||||
/* A function that implements a task must not exit or attempt to return to
|
|
||||||
its caller as there is nothing to return to. If a task wants to exit it
|
|
||||||
should instead call vTaskDelete( NULL ).
|
|
||||||
|
|
||||||
Artificially force an assert() to be triggered if configASSERT() is
|
|
||||||
defined, then stop here so application writers can catch the error. */
|
|
||||||
configASSERT( uxCriticalNesting == ~0UL );
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
for( ;; );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortSVCHandler( void )
|
|
||||||
{
|
|
||||||
__asm volatile (
|
|
||||||
" ldr r3, pxCurrentTCBConst2 \n" /* Restore the context. */
|
|
||||||
" ldr r1, [r3] \n" /* Use pxCurrentTCBConst to get the pxCurrentTCB address. */
|
|
||||||
" ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */
|
|
||||||
" ldmia r0!, {r4-r11} \n" /* Pop the registers that are not automatically saved on exception entry and the critical nesting count. */
|
|
||||||
" msr psp, r0 \n" /* Restore the task stack pointer. */
|
|
||||||
" isb \n"
|
|
||||||
" mov r0, #0 \n"
|
|
||||||
" msr basepri, r0 \n"
|
|
||||||
" orr r14, #0xd \n"
|
|
||||||
" bx r14 \n"
|
|
||||||
" \n"
|
|
||||||
" .align 4 \n"
|
|
||||||
"pxCurrentTCBConst2: .word pxCurrentTCB \n"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvPortStartFirstTask( void )
|
|
||||||
{
|
|
||||||
__asm volatile(
|
|
||||||
" ldr r0, =0xE000ED08 \n" /* Use the NVIC offset register to locate the stack. */
|
|
||||||
" ldr r0, [r0] \n"
|
|
||||||
" ldr r0, [r0] \n"
|
|
||||||
" msr msp, r0 \n" /* Set the msp back to the start of the stack. */
|
|
||||||
" cpsie i \n" /* Globally enable interrupts. */
|
|
||||||
" cpsie f \n"
|
|
||||||
" dsb \n"
|
|
||||||
" isb \n"
|
|
||||||
" svc 0 \n" /* System call to start first task. */
|
|
||||||
" nop \n"
|
|
||||||
);
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* See header file for description.
|
|
||||||
*/
|
|
||||||
BaseType_t xPortStartScheduler( void )
|
|
||||||
{
|
|
||||||
/* configMAX_SYSCALL_INTERRUPT_PRIORITY must not be set to 0.
|
|
||||||
See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html */
|
|
||||||
configASSERT( configMAX_SYSCALL_INTERRUPT_PRIORITY );
|
|
||||||
|
|
||||||
#if( configASSERT_DEFINED == 1 )
|
|
||||||
{
|
|
||||||
volatile uint32_t ulOriginalPriority;
|
|
||||||
volatile uint8_t * const pucFirstUserPriorityRegister = ( volatile uint8_t * const ) ( portNVIC_IP_REGISTERS_OFFSET_16 + portFIRST_USER_INTERRUPT_NUMBER );
|
|
||||||
volatile uint8_t ucMaxPriorityValue;
|
|
||||||
|
|
||||||
/* Determine the maximum priority from which ISR safe FreeRTOS API
|
|
||||||
functions can be called. ISR safe functions are those that end in
|
|
||||||
"FromISR". FreeRTOS maintains separate thread and ISR API functions to
|
|
||||||
ensure interrupt entry is as fast and simple as possible.
|
|
||||||
|
|
||||||
Save the interrupt priority value that is about to be clobbered. */
|
|
||||||
ulOriginalPriority = *pucFirstUserPriorityRegister;
|
|
||||||
|
|
||||||
/* Determine the number of priority bits available. First write to all
|
|
||||||
possible bits. */
|
|
||||||
*pucFirstUserPriorityRegister = portMAX_8_BIT_VALUE;
|
|
||||||
|
|
||||||
/* Read the value back to see how many bits stuck. */
|
|
||||||
ucMaxPriorityValue = *pucFirstUserPriorityRegister;
|
|
||||||
|
|
||||||
/* Use the same mask on the maximum system call priority. */
|
|
||||||
ucMaxSysCallPriority = configMAX_SYSCALL_INTERRUPT_PRIORITY & ucMaxPriorityValue;
|
|
||||||
|
|
||||||
/* Calculate the maximum acceptable priority group value for the number
|
|
||||||
of bits read back. */
|
|
||||||
ulMaxPRIGROUPValue = portMAX_PRIGROUP_BITS;
|
|
||||||
while( ( ucMaxPriorityValue & portTOP_BIT_OF_BYTE ) == portTOP_BIT_OF_BYTE )
|
|
||||||
{
|
|
||||||
ulMaxPRIGROUPValue--;
|
|
||||||
ucMaxPriorityValue <<= ( uint8_t ) 0x01;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Shift the priority group value back to its position within the AIRCR
|
|
||||||
register. */
|
|
||||||
ulMaxPRIGROUPValue <<= portPRIGROUP_SHIFT;
|
|
||||||
ulMaxPRIGROUPValue &= portPRIORITY_GROUP_MASK;
|
|
||||||
|
|
||||||
/* Restore the clobbered interrupt priority register to its original
|
|
||||||
value. */
|
|
||||||
*pucFirstUserPriorityRegister = ulOriginalPriority;
|
|
||||||
}
|
|
||||||
#endif /* conifgASSERT_DEFINED */
|
|
||||||
|
|
||||||
/* Make PendSV and SysTick the lowest priority interrupts. */
|
|
||||||
portNVIC_SYSPRI2_REG |= portNVIC_PENDSV_PRI;
|
|
||||||
portNVIC_SYSPRI2_REG |= portNVIC_SYSTICK_PRI;
|
|
||||||
|
|
||||||
/* Start the timer that generates the tick ISR. Interrupts are disabled
|
|
||||||
here already. */
|
|
||||||
vPortSetupTimerInterrupt();
|
|
||||||
|
|
||||||
/* Initialise the critical nesting count ready for the first task. */
|
|
||||||
uxCriticalNesting = 0;
|
|
||||||
|
|
||||||
/* Start the first task. */
|
|
||||||
prvPortStartFirstTask();
|
|
||||||
|
|
||||||
/* Should never get here as the tasks will now be executing! Call the task
|
|
||||||
exit error function to prevent compiler warnings about a static function
|
|
||||||
not being called in the case that the application writer overrides this
|
|
||||||
functionality by defining configTASK_RETURN_ADDRESS. */
|
|
||||||
prvTaskExitError();
|
|
||||||
|
|
||||||
/* Should not get here! */
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortEndScheduler( void )
|
|
||||||
{
|
|
||||||
/* Not implemented in ports where there is nothing to return to.
|
|
||||||
Artificially force an assert. */
|
|
||||||
configASSERT( uxCriticalNesting == 1000UL );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortEnterCritical( void )
|
|
||||||
{
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
uxCriticalNesting++;
|
|
||||||
|
|
||||||
/* This is not the interrupt safe version of the enter critical function so
|
|
||||||
assert() if it is being called from an interrupt context. Only API
|
|
||||||
functions that end in "FromISR" can be used in an interrupt. Only assert if
|
|
||||||
the critical nesting count is 1 to protect against recursive calls if the
|
|
||||||
assert function also uses a critical section. */
|
|
||||||
if( uxCriticalNesting == 1 )
|
|
||||||
{
|
|
||||||
configASSERT( ( portNVIC_INT_CTRL_REG & portVECTACTIVE_MASK ) == 0 );
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortExitCritical( void )
|
|
||||||
{
|
|
||||||
configASSERT( uxCriticalNesting );
|
|
||||||
uxCriticalNesting--;
|
|
||||||
if( uxCriticalNesting == 0 )
|
|
||||||
{
|
|
||||||
portENABLE_INTERRUPTS();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void xPortPendSVHandler( void )
|
|
||||||
{
|
|
||||||
/* This is a naked function. */
|
|
||||||
|
|
||||||
__asm volatile
|
|
||||||
(
|
|
||||||
" mrs r0, psp \n"
|
|
||||||
" isb \n"
|
|
||||||
" \n"
|
|
||||||
" ldr r3, pxCurrentTCBConst \n" /* Get the location of the current TCB. */
|
|
||||||
" ldr r2, [r3] \n"
|
|
||||||
" \n"
|
|
||||||
" stmdb r0!, {r4-r11} \n" /* Save the remaining registers. */
|
|
||||||
" str r0, [r2] \n" /* Save the new top of stack into the first member of the TCB. */
|
|
||||||
" \n"
|
|
||||||
" stmdb sp!, {r3, r14} \n"
|
|
||||||
" mov r0, %0 \n"
|
|
||||||
" msr basepri, r0 \n"
|
|
||||||
" bl vTaskSwitchContext \n"
|
|
||||||
" mov r0, #0 \n"
|
|
||||||
" msr basepri, r0 \n"
|
|
||||||
" ldmia sp!, {r3, r14} \n"
|
|
||||||
" \n" /* Restore the context, including the critical nesting count. */
|
|
||||||
" ldr r1, [r3] \n"
|
|
||||||
" ldr r0, [r1] \n" /* The first item in pxCurrentTCB is the task top of stack. */
|
|
||||||
" ldmia r0!, {r4-r11} \n" /* Pop the registers. */
|
|
||||||
" msr psp, r0 \n"
|
|
||||||
" isb \n"
|
|
||||||
" bx r14 \n"
|
|
||||||
" \n"
|
|
||||||
" .align 4 \n"
|
|
||||||
"pxCurrentTCBConst: .word pxCurrentTCB \n"
|
|
||||||
::"i"(configMAX_SYSCALL_INTERRUPT_PRIORITY)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void xPortSysTickHandler( void )
|
|
||||||
{
|
|
||||||
/* The SysTick runs at the lowest interrupt priority, so when this interrupt
|
|
||||||
executes all interrupts must be unmasked. There is therefore no need to
|
|
||||||
save and then restore the interrupt mask value as its value is already
|
|
||||||
known. */
|
|
||||||
portDISABLE_INTERRUPTS();
|
|
||||||
{
|
|
||||||
/* Increment the RTOS tick. */
|
|
||||||
if( xTaskIncrementTick() != pdFALSE )
|
|
||||||
{
|
|
||||||
/* A context switch is required. Context switching is performed in
|
|
||||||
the PendSV interrupt. Pend the PendSV interrupt. */
|
|
||||||
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
portENABLE_INTERRUPTS();
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if configUSE_TICKLESS_IDLE == 1
|
|
||||||
|
|
||||||
__attribute__((weak)) void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime )
|
|
||||||
{
|
|
||||||
uint32_t ulReloadValue, ulCompleteTickPeriods, ulCompletedSysTickDecrements, ulSysTickCTRL;
|
|
||||||
TickType_t xModifiableIdleTime;
|
|
||||||
|
|
||||||
/* Make sure the SysTick reload value does not overflow the counter. */
|
|
||||||
if( xExpectedIdleTime > xMaximumPossibleSuppressedTicks )
|
|
||||||
{
|
|
||||||
xExpectedIdleTime = xMaximumPossibleSuppressedTicks;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Stop the SysTick momentarily. The time the SysTick is stopped for
|
|
||||||
is accounted for as best it can be, but using the tickless mode will
|
|
||||||
inevitably result in some tiny drift of the time maintained by the
|
|
||||||
kernel with respect to calendar time. */
|
|
||||||
portNVIC_SYSTICK_CTRL_REG &= ~portNVIC_SYSTICK_ENABLE_BIT;
|
|
||||||
|
|
||||||
/* Calculate the reload value required to wait xExpectedIdleTime
|
|
||||||
tick periods. -1 is used because this code will execute part way
|
|
||||||
through one of the tick periods. */
|
|
||||||
ulReloadValue = portNVIC_SYSTICK_CURRENT_VALUE_REG + ( ulTimerCountsForOneTick * ( xExpectedIdleTime - 1UL ) );
|
|
||||||
if( ulReloadValue > ulStoppedTimerCompensation )
|
|
||||||
{
|
|
||||||
ulReloadValue -= ulStoppedTimerCompensation;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Enter a critical section but don't use the taskENTER_CRITICAL()
|
|
||||||
method as that will mask interrupts that should exit sleep mode. */
|
|
||||||
__asm volatile( "cpsid i" );
|
|
||||||
__asm volatile( "dsb" );
|
|
||||||
__asm volatile( "isb" );
|
|
||||||
|
|
||||||
/* If a context switch is pending or a task is waiting for the scheduler
|
|
||||||
to be unsuspended then abandon the low power entry. */
|
|
||||||
if( eTaskConfirmSleepModeStatus() == eAbortSleep )
|
|
||||||
{
|
|
||||||
/* Restart from whatever is left in the count register to complete
|
|
||||||
this tick period. */
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = portNVIC_SYSTICK_CURRENT_VALUE_REG;
|
|
||||||
|
|
||||||
/* Restart SysTick. */
|
|
||||||
portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT;
|
|
||||||
|
|
||||||
/* Reset the reload register to the value required for normal tick
|
|
||||||
periods. */
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL;
|
|
||||||
|
|
||||||
/* Re-enable interrupts - see comments above the cpsid instruction()
|
|
||||||
above. */
|
|
||||||
__asm volatile( "cpsie i" );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Set the new reload value. */
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ulReloadValue;
|
|
||||||
|
|
||||||
/* Clear the SysTick count flag and set the count value back to
|
|
||||||
zero. */
|
|
||||||
portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
|
|
||||||
|
|
||||||
/* Restart SysTick. */
|
|
||||||
portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT;
|
|
||||||
|
|
||||||
/* Sleep until something happens. configPRE_SLEEP_PROCESSING() can
|
|
||||||
set its parameter to 0 to indicate that its implementation contains
|
|
||||||
its own wait for interrupt or wait for event instruction, and so wfi
|
|
||||||
should not be executed again. However, the original expected idle
|
|
||||||
time variable must remain unmodified, so a copy is taken. */
|
|
||||||
xModifiableIdleTime = xExpectedIdleTime;
|
|
||||||
configPRE_SLEEP_PROCESSING( xModifiableIdleTime );
|
|
||||||
if( xModifiableIdleTime > 0 )
|
|
||||||
{
|
|
||||||
__asm volatile( "dsb" );
|
|
||||||
__asm volatile( "wfi" );
|
|
||||||
__asm volatile( "isb" );
|
|
||||||
}
|
|
||||||
configPOST_SLEEP_PROCESSING( xExpectedIdleTime );
|
|
||||||
|
|
||||||
/* Stop SysTick. Again, the time the SysTick is stopped for is
|
|
||||||
accounted for as best it can be, but using the tickless mode will
|
|
||||||
inevitably result in some tiny drift of the time maintained by the
|
|
||||||
kernel with respect to calendar time. */
|
|
||||||
ulSysTickCTRL = portNVIC_SYSTICK_CTRL_REG;
|
|
||||||
portNVIC_SYSTICK_CTRL_REG = ( ulSysTickCTRL & ~portNVIC_SYSTICK_ENABLE_BIT );
|
|
||||||
|
|
||||||
/* Re-enable interrupts - see comments above the cpsid instruction()
|
|
||||||
above. */
|
|
||||||
__asm volatile( "cpsie i" );
|
|
||||||
|
|
||||||
if( ( ulSysTickCTRL & portNVIC_SYSTICK_COUNT_FLAG_BIT ) != 0 )
|
|
||||||
{
|
|
||||||
uint32_t ulCalculatedLoadValue;
|
|
||||||
|
|
||||||
/* The tick interrupt has already executed, and the SysTick
|
|
||||||
count reloaded with ulReloadValue. Reset the
|
|
||||||
portNVIC_SYSTICK_LOAD_REG with whatever remains of this tick
|
|
||||||
period. */
|
|
||||||
ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL ) - ( ulReloadValue - portNVIC_SYSTICK_CURRENT_VALUE_REG );
|
|
||||||
|
|
||||||
/* Don't allow a tiny value, or values that have somehow
|
|
||||||
underflowed because the post sleep hook did something
|
|
||||||
that took too long. */
|
|
||||||
if( ( ulCalculatedLoadValue < ulStoppedTimerCompensation ) || ( ulCalculatedLoadValue > ulTimerCountsForOneTick ) )
|
|
||||||
{
|
|
||||||
ulCalculatedLoadValue = ( ulTimerCountsForOneTick - 1UL );
|
|
||||||
}
|
|
||||||
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ulCalculatedLoadValue;
|
|
||||||
|
|
||||||
/* The tick interrupt handler will already have pended the tick
|
|
||||||
processing in the kernel. As the pending tick will be
|
|
||||||
processed as soon as this function exits, the tick value
|
|
||||||
maintained by the tick is stepped forward by one less than the
|
|
||||||
time spent waiting. */
|
|
||||||
ulCompleteTickPeriods = xExpectedIdleTime - 1UL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
/* Something other than the tick interrupt ended the sleep.
|
|
||||||
Work out how long the sleep lasted rounded to complete tick
|
|
||||||
periods (not the ulReload value which accounted for part
|
|
||||||
ticks). */
|
|
||||||
ulCompletedSysTickDecrements = ( xExpectedIdleTime * ulTimerCountsForOneTick ) - portNVIC_SYSTICK_CURRENT_VALUE_REG;
|
|
||||||
|
|
||||||
/* How many complete tick periods passed while the processor
|
|
||||||
was waiting? */
|
|
||||||
ulCompleteTickPeriods = ulCompletedSysTickDecrements / ulTimerCountsForOneTick;
|
|
||||||
|
|
||||||
/* The reload value is set to whatever fraction of a single tick
|
|
||||||
period remains. */
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ( ( ulCompleteTickPeriods + 1UL ) * ulTimerCountsForOneTick ) - ulCompletedSysTickDecrements;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Restart SysTick so it runs from portNVIC_SYSTICK_LOAD_REG
|
|
||||||
again, then set portNVIC_SYSTICK_LOAD_REG back to its standard
|
|
||||||
value. The critical section is used to ensure the tick interrupt
|
|
||||||
can only execute once in the case that the reload register is near
|
|
||||||
zero. */
|
|
||||||
portNVIC_SYSTICK_CURRENT_VALUE_REG = 0UL;
|
|
||||||
portENTER_CRITICAL();
|
|
||||||
{
|
|
||||||
portNVIC_SYSTICK_CTRL_REG |= portNVIC_SYSTICK_ENABLE_BIT;
|
|
||||||
vTaskStepTick( ulCompleteTickPeriods );
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ulTimerCountsForOneTick - 1UL;
|
|
||||||
}
|
|
||||||
portEXIT_CRITICAL();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* #if configUSE_TICKLESS_IDLE */
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Setup the systick timer to generate the tick interrupts at the required
|
|
||||||
* frequency.
|
|
||||||
*/
|
|
||||||
__attribute__(( weak )) void vPortSetupTimerInterrupt( void )
|
|
||||||
{
|
|
||||||
/* Calculate the constants required to configure the tick interrupt. */
|
|
||||||
#if configUSE_TICKLESS_IDLE == 1
|
|
||||||
{
|
|
||||||
ulTimerCountsForOneTick = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ );
|
|
||||||
xMaximumPossibleSuppressedTicks = portMAX_24_BIT_NUMBER / ulTimerCountsForOneTick;
|
|
||||||
ulStoppedTimerCompensation = portMISSED_COUNTS_FACTOR / ( configCPU_CLOCK_HZ / configSYSTICK_CLOCK_HZ );
|
|
||||||
}
|
|
||||||
#endif /* configUSE_TICKLESS_IDLE */
|
|
||||||
|
|
||||||
/* Configure SysTick to interrupt at the requested rate. */
|
|
||||||
portNVIC_SYSTICK_LOAD_REG = ( configSYSTICK_CLOCK_HZ / configTICK_RATE_HZ ) - 1UL;
|
|
||||||
portNVIC_SYSTICK_CTRL_REG = ( portNVIC_SYSTICK_CLK_BIT | portNVIC_SYSTICK_INT_BIT | portNVIC_SYSTICK_ENABLE_BIT );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#if( configASSERT_DEFINED == 1 )
|
|
||||||
|
|
||||||
void vPortValidateInterruptPriority( void )
|
|
||||||
{
|
|
||||||
uint32_t ulCurrentInterrupt;
|
|
||||||
uint8_t ucCurrentPriority;
|
|
||||||
|
|
||||||
/* Obtain the number of the currently executing interrupt. */
|
|
||||||
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) );
|
|
||||||
|
|
||||||
/* Is the interrupt number a user defined interrupt? */
|
|
||||||
if( ulCurrentInterrupt >= portFIRST_USER_INTERRUPT_NUMBER )
|
|
||||||
{
|
|
||||||
/* Look up the interrupt's priority. */
|
|
||||||
ucCurrentPriority = pcInterruptPriorityRegisters[ ulCurrentInterrupt ];
|
|
||||||
|
|
||||||
/* The following assertion will fail if a service routine (ISR) for
|
|
||||||
an interrupt that has been assigned a priority above
|
|
||||||
configMAX_SYSCALL_INTERRUPT_PRIORITY calls an ISR safe FreeRTOS API
|
|
||||||
function. ISR safe FreeRTOS API functions must *only* be called
|
|
||||||
from interrupts that have been assigned a priority at or below
|
|
||||||
configMAX_SYSCALL_INTERRUPT_PRIORITY.
|
|
||||||
|
|
||||||
Numerically low interrupt priority numbers represent logically high
|
|
||||||
interrupt priorities, therefore the priority of the interrupt must
|
|
||||||
be set to a value equal to or numerically *higher* than
|
|
||||||
configMAX_SYSCALL_INTERRUPT_PRIORITY.
|
|
||||||
|
|
||||||
Interrupts that use the FreeRTOS API must not be left at their
|
|
||||||
default priority of zero as that is the highest possible priority,
|
|
||||||
which is guaranteed to be above configMAX_SYSCALL_INTERRUPT_PRIORITY,
|
|
||||||
and therefore also guaranteed to be invalid.
|
|
||||||
|
|
||||||
FreeRTOS maintains separate thread and ISR API functions to ensure
|
|
||||||
interrupt entry is as fast and simple as possible.
|
|
||||||
|
|
||||||
The following links provide detailed information:
|
|
||||||
http://www.freertos.org/RTOS-Cortex-M3-M4.html
|
|
||||||
http://www.freertos.org/FAQHelp.html */
|
|
||||||
configASSERT( ucCurrentPriority >= ucMaxSysCallPriority );
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Priority grouping: The interrupt controller (NVIC) allows the bits
|
|
||||||
that define each interrupt's priority to be split between bits that
|
|
||||||
define the interrupt's pre-emption priority bits and bits that define
|
|
||||||
the interrupt's sub-priority. For simplicity all bits must be defined
|
|
||||||
to be pre-emption priority bits. The following assertion will fail if
|
|
||||||
this is not the case (if some bits represent a sub-priority).
|
|
||||||
|
|
||||||
If the application only uses CMSIS libraries for interrupt
|
|
||||||
configuration then the correct setting can be achieved on all Cortex-M
|
|
||||||
devices by calling NVIC_SetPriorityGrouping( 0 ); before starting the
|
|
||||||
scheduler. Note however that some vendor specific peripheral libraries
|
|
||||||
assume a non-zero priority group setting, in which cases using a value
|
|
||||||
of zero will result in unpredicable behaviour. */
|
|
||||||
configASSERT( ( portAIRCR_REG & portPRIORITY_GROUP_MASK ) <= ulMaxPRIGROUPValue );
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif /* configASSERT_DEFINED */
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,284 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef PORTMACRO_H
|
|
||||||
#define PORTMACRO_H
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------
|
|
||||||
* Port specific definitions.
|
|
||||||
*
|
|
||||||
* The settings in this file configure FreeRTOS correctly for the
|
|
||||||
* given hardware and compiler.
|
|
||||||
*
|
|
||||||
* These settings should not be altered.
|
|
||||||
*-----------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* Type definitions. */
|
|
||||||
#define portCHAR char
|
|
||||||
#define portFLOAT float
|
|
||||||
#define portDOUBLE double
|
|
||||||
#define portLONG long
|
|
||||||
#define portSHORT short
|
|
||||||
#define portSTACK_TYPE uint32_t
|
|
||||||
#define portBASE_TYPE long
|
|
||||||
|
|
||||||
typedef portSTACK_TYPE StackType_t;
|
|
||||||
typedef long BaseType_t;
|
|
||||||
typedef unsigned long UBaseType_t;
|
|
||||||
|
|
||||||
#if( configUSE_16_BIT_TICKS == 1 )
|
|
||||||
typedef uint16_t TickType_t;
|
|
||||||
#define portMAX_DELAY ( TickType_t ) 0xffff
|
|
||||||
#else
|
|
||||||
typedef uint32_t TickType_t;
|
|
||||||
#define portMAX_DELAY ( TickType_t ) 0xffffffffUL
|
|
||||||
|
|
||||||
/* 32-bit tick type on a 32-bit architecture, so reads of the tick count do
|
|
||||||
not need to be guarded with a critical section. */
|
|
||||||
#define portTICK_TYPE_IS_ATOMIC 1
|
|
||||||
#endif
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Architecture specifics. */
|
|
||||||
#define portSTACK_GROWTH ( -1 )
|
|
||||||
#define portTICK_PERIOD_MS ( ( TickType_t ) 1000 / configTICK_RATE_HZ )
|
|
||||||
#define portBYTE_ALIGNMENT 8
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Scheduler utilities. */
|
|
||||||
#define portYIELD() \
|
|
||||||
{ \
|
|
||||||
/* Set a PendSV to request a context switch. */ \
|
|
||||||
portNVIC_INT_CTRL_REG = portNVIC_PENDSVSET_BIT; \
|
|
||||||
\
|
|
||||||
/* Barriers are normally not required but do ensure the code is completely \
|
|
||||||
within the specified behaviour for the architecture. */ \
|
|
||||||
__asm volatile( "dsb" ); \
|
|
||||||
__asm volatile( "isb" ); \
|
|
||||||
}
|
|
||||||
|
|
||||||
#define portNVIC_INT_CTRL_REG ( * ( ( volatile uint32_t * ) 0xe000ed04 ) )
|
|
||||||
#define portNVIC_PENDSVSET_BIT ( 1UL << 28UL )
|
|
||||||
#define portEND_SWITCHING_ISR( xSwitchRequired ) if( xSwitchRequired != pdFALSE ) portYIELD()
|
|
||||||
#define portYIELD_FROM_ISR( x ) portEND_SWITCHING_ISR( x )
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Critical section management. */
|
|
||||||
extern void vPortEnterCritical( void );
|
|
||||||
extern void vPortExitCritical( void );
|
|
||||||
#define portSET_INTERRUPT_MASK_FROM_ISR() ulPortRaiseBASEPRI()
|
|
||||||
#define portCLEAR_INTERRUPT_MASK_FROM_ISR(x) vPortSetBASEPRI(x)
|
|
||||||
#define portDISABLE_INTERRUPTS() vPortRaiseBASEPRI()
|
|
||||||
#define portENABLE_INTERRUPTS() vPortSetBASEPRI(0)
|
|
||||||
#define portENTER_CRITICAL() vPortEnterCritical()
|
|
||||||
#define portEXIT_CRITICAL() vPortExitCritical()
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Task function macros as described on the FreeRTOS.org WEB site. These are
|
|
||||||
not necessary for to use this port. They are defined so the common demo files
|
|
||||||
(which build with all the ports) will build. */
|
|
||||||
#define portTASK_FUNCTION_PROTO( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
|
||||||
#define portTASK_FUNCTION( vFunction, pvParameters ) void vFunction( void *pvParameters )
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Tickless idle/low power functionality. */
|
|
||||||
#ifndef portSUPPRESS_TICKS_AND_SLEEP
|
|
||||||
extern void vPortSuppressTicksAndSleep( TickType_t xExpectedIdleTime );
|
|
||||||
#define portSUPPRESS_TICKS_AND_SLEEP( xExpectedIdleTime ) vPortSuppressTicksAndSleep( xExpectedIdleTime )
|
|
||||||
#endif
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* Architecture specific optimisations. */
|
|
||||||
#ifndef configUSE_PORT_OPTIMISED_TASK_SELECTION
|
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#if configUSE_PORT_OPTIMISED_TASK_SELECTION == 1
|
|
||||||
|
|
||||||
/* Generic helper function. */
|
|
||||||
__attribute__( ( always_inline ) ) static inline uint8_t ucPortCountLeadingZeros( uint32_t ulBitmap )
|
|
||||||
{
|
|
||||||
uint8_t ucReturn;
|
|
||||||
|
|
||||||
__asm volatile ( "clz %0, %1" : "=r" ( ucReturn ) : "r" ( ulBitmap ) );
|
|
||||||
return ucReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check the configuration. */
|
|
||||||
#if( configMAX_PRIORITIES > 32 )
|
|
||||||
#error configUSE_PORT_OPTIMISED_TASK_SELECTION can only be set to 1 when configMAX_PRIORITIES is less than or equal to 32. It is very rare that a system requires more than 10 to 15 difference priorities as tasks that share a priority will time slice.
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Store/clear the ready priorities in a bit map. */
|
|
||||||
#define portRECORD_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) |= ( 1UL << ( uxPriority ) )
|
|
||||||
#define portRESET_READY_PRIORITY( uxPriority, uxReadyPriorities ) ( uxReadyPriorities ) &= ~( 1UL << ( uxPriority ) )
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#define portGET_HIGHEST_PRIORITY( uxTopPriority, uxReadyPriorities ) uxTopPriority = ( 31UL - ( uint32_t ) ucPortCountLeadingZeros( ( uxReadyPriorities ) ) )
|
|
||||||
|
|
||||||
#endif /* configUSE_PORT_OPTIMISED_TASK_SELECTION */
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
#ifdef configASSERT
|
|
||||||
void vPortValidateInterruptPriority( void );
|
|
||||||
#define portASSERT_IF_INTERRUPT_PRIORITY_INVALID() vPortValidateInterruptPriority()
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* portNOP() is not required by this port. */
|
|
||||||
#define portNOP()
|
|
||||||
|
|
||||||
#define portINLINE __inline
|
|
||||||
|
|
||||||
#ifndef portFORCE_INLINE
|
|
||||||
#define portFORCE_INLINE inline __attribute__(( always_inline))
|
|
||||||
#endif
|
|
||||||
|
|
||||||
portFORCE_INLINE static BaseType_t xPortIsInsideInterrupt( void )
|
|
||||||
{
|
|
||||||
uint32_t ulCurrentInterrupt;
|
|
||||||
BaseType_t xReturn;
|
|
||||||
|
|
||||||
/* Obtain the number of the currently executing interrupt. */
|
|
||||||
__asm volatile( "mrs %0, ipsr" : "=r"( ulCurrentInterrupt ) );
|
|
||||||
|
|
||||||
if( ulCurrentInterrupt == 0 )
|
|
||||||
{
|
|
||||||
xReturn = pdFALSE;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
xReturn = pdTRUE;
|
|
||||||
}
|
|
||||||
|
|
||||||
return xReturn;
|
|
||||||
}
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
portFORCE_INLINE static void vPortRaiseBASEPRI( void )
|
|
||||||
{
|
|
||||||
uint32_t ulNewBASEPRI;
|
|
||||||
|
|
||||||
__asm volatile
|
|
||||||
(
|
|
||||||
" mov %0, %1 \n" \
|
|
||||||
" msr basepri, %0 \n" \
|
|
||||||
" isb \n" \
|
|
||||||
" dsb \n" \
|
|
||||||
:"=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
portFORCE_INLINE static uint32_t ulPortRaiseBASEPRI( void )
|
|
||||||
{
|
|
||||||
uint32_t ulOriginalBASEPRI, ulNewBASEPRI;
|
|
||||||
|
|
||||||
__asm volatile
|
|
||||||
(
|
|
||||||
" mrs %0, basepri \n" \
|
|
||||||
" mov %1, %2 \n" \
|
|
||||||
" msr basepri, %1 \n" \
|
|
||||||
" isb \n" \
|
|
||||||
" dsb \n" \
|
|
||||||
:"=r" (ulOriginalBASEPRI), "=r" (ulNewBASEPRI) : "i" ( configMAX_SYSCALL_INTERRUPT_PRIORITY )
|
|
||||||
);
|
|
||||||
|
|
||||||
/* This return will not be reached but is necessary to prevent compiler
|
|
||||||
warnings. */
|
|
||||||
return ulOriginalBASEPRI;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
portFORCE_INLINE static void vPortSetBASEPRI( uint32_t ulNewMaskValue )
|
|
||||||
{
|
|
||||||
__asm volatile
|
|
||||||
(
|
|
||||||
" msr basepri, %0 " :: "r" ( ulNewMaskValue )
|
|
||||||
);
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* PORTMACRO_H */
|
|
||||||
|
|
@ -1,478 +0,0 @@
|
|||||||
/*
|
|
||||||
FreeRTOS V9.0.0 - Copyright (C) 2016 Real Time Engineers Ltd.
|
|
||||||
All rights reserved
|
|
||||||
|
|
||||||
VISIT http://www.FreeRTOS.org TO ENSURE YOU ARE USING THE LATEST VERSION.
|
|
||||||
|
|
||||||
This file is part of the FreeRTOS distribution.
|
|
||||||
|
|
||||||
FreeRTOS is free software; you can redistribute it and/or modify it under
|
|
||||||
the terms of the GNU General Public License (version 2) as published by the
|
|
||||||
Free Software Foundation >>>> AND MODIFIED BY <<<< the FreeRTOS exception.
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
>>! NOTE: The modification to the GPL is included to allow you to !<<
|
|
||||||
>>! distribute a combined work that includes FreeRTOS without being !<<
|
|
||||||
>>! obliged to provide the source code for proprietary components !<<
|
|
||||||
>>! outside of the FreeRTOS kernel. !<<
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
FreeRTOS is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
||||||
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
||||||
FOR A PARTICULAR PURPOSE. Full license text is available on the following
|
|
||||||
link: http://www.freertos.org/a00114.html
|
|
||||||
|
|
||||||
***************************************************************************
|
|
||||||
* *
|
|
||||||
* FreeRTOS provides completely free yet professionally developed, *
|
|
||||||
* robust, strictly quality controlled, supported, and cross *
|
|
||||||
* platform software that is more than just the market leader, it *
|
|
||||||
* is the industry's de facto standard. *
|
|
||||||
* *
|
|
||||||
* Help yourself get started quickly while simultaneously helping *
|
|
||||||
* to support the FreeRTOS project by purchasing a FreeRTOS *
|
|
||||||
* tutorial book, reference manual, or both: *
|
|
||||||
* http://www.FreeRTOS.org/Documentation *
|
|
||||||
* *
|
|
||||||
***************************************************************************
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/FAQHelp.html - Having a problem? Start by reading
|
|
||||||
the FAQ page "My application does not run, what could be wrong?". Have you
|
|
||||||
defined configASSERT()?
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/support - In return for receiving this top quality
|
|
||||||
embedded software for free we request you assist our global community by
|
|
||||||
participating in the support forum.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/training - Investing in training allows your team to
|
|
||||||
be as productive as possible as early as possible. Now you can receive
|
|
||||||
FreeRTOS training directly from Richard Barry, CEO of Real Time Engineers
|
|
||||||
Ltd, and the world's leading authority on the world's leading RTOS.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/plus - A selection of FreeRTOS ecosystem products,
|
|
||||||
including FreeRTOS+Trace - an indispensable productivity tool, a DOS
|
|
||||||
compatible FAT file system, and our tiny thread aware UDP/IP stack.
|
|
||||||
|
|
||||||
http://www.FreeRTOS.org/labs - Where new FreeRTOS products go to incubate.
|
|
||||||
Come and try FreeRTOS+TCP, our new open source TCP/IP stack for FreeRTOS.
|
|
||||||
|
|
||||||
http://www.OpenRTOS.com - Real Time Engineers ltd. license FreeRTOS to High
|
|
||||||
Integrity Systems ltd. to sell under the OpenRTOS brand. Low cost OpenRTOS
|
|
||||||
licenses offer ticketed support, indemnification and commercial middleware.
|
|
||||||
|
|
||||||
http://www.SafeRTOS.com - High Integrity Systems also provide a safety
|
|
||||||
engineered and independently SIL3 certified version for use in safety and
|
|
||||||
mission critical applications that require provable dependability.
|
|
||||||
|
|
||||||
1 tab == 4 spaces!
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* A sample implementation of pvPortMalloc() and vPortFree() that combines
|
|
||||||
* (coalescences) adjacent memory blocks as they are freed, and in so doing
|
|
||||||
* limits memory fragmentation.
|
|
||||||
*
|
|
||||||
* See heap_1.c, heap_2.c and heap_3.c for alternative implementations, and the
|
|
||||||
* memory management pages of http://www.FreeRTOS.org for more information.
|
|
||||||
*/
|
|
||||||
#include <stdlib.h>
|
|
||||||
|
|
||||||
/* Defining MPU_WRAPPERS_INCLUDED_FROM_API_FILE prevents task.h from redefining
|
|
||||||
all the API functions to use the MPU wrappers. That should only be done when
|
|
||||||
task.h is included from an application file. */
|
|
||||||
#define MPU_WRAPPERS_INCLUDED_FROM_API_FILE
|
|
||||||
|
|
||||||
#include "FreeRTOS.h"
|
|
||||||
#include "task.h"
|
|
||||||
|
|
||||||
#undef MPU_WRAPPERS_INCLUDED_FROM_API_FILE
|
|
||||||
|
|
||||||
#if( configSUPPORT_DYNAMIC_ALLOCATION == 0 )
|
|
||||||
#error This file must not be used if configSUPPORT_DYNAMIC_ALLOCATION is 0
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Block sizes must not get too small. */
|
|
||||||
#define heapMINIMUM_BLOCK_SIZE ( ( size_t ) ( xHeapStructSize << 1 ) )
|
|
||||||
|
|
||||||
/* Assumes 8bit bytes! */
|
|
||||||
#define heapBITS_PER_BYTE ( ( size_t ) 8 )
|
|
||||||
|
|
||||||
/* Allocate the memory for the heap. */
|
|
||||||
#if( configAPPLICATION_ALLOCATED_HEAP == 1 )
|
|
||||||
/* The application writer has already defined the array used for the RTOS
|
|
||||||
heap - probably so it can be placed in a special segment or address. */
|
|
||||||
extern uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
|
|
||||||
#else
|
|
||||||
static uint8_t ucHeap[ configTOTAL_HEAP_SIZE ];
|
|
||||||
#endif /* configAPPLICATION_ALLOCATED_HEAP */
|
|
||||||
|
|
||||||
/* Define the linked list structure. This is used to link free blocks in order
|
|
||||||
of their memory address. */
|
|
||||||
typedef struct A_BLOCK_LINK
|
|
||||||
{
|
|
||||||
struct A_BLOCK_LINK *pxNextFreeBlock; /*<< The next free block in the list. */
|
|
||||||
size_t xBlockSize; /*<< The size of the free block. */
|
|
||||||
} BlockLink_t;
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Inserts a block of memory that is being freed into the correct position in
|
|
||||||
* the list of free memory blocks. The block being freed will be merged with
|
|
||||||
* the block in front it and/or the block behind it if the memory blocks are
|
|
||||||
* adjacent to each other.
|
|
||||||
*/
|
|
||||||
static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert );
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Called automatically to setup the required heap structures the first time
|
|
||||||
* pvPortMalloc() is called.
|
|
||||||
*/
|
|
||||||
static void prvHeapInit( void );
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
/* The size of the structure placed at the beginning of each allocated memory
|
|
||||||
block must by correctly byte aligned. */
|
|
||||||
static const size_t xHeapStructSize = ( sizeof( BlockLink_t ) + ( ( size_t ) ( portBYTE_ALIGNMENT - 1 ) ) ) & ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
|
|
||||||
|
|
||||||
/* Create a couple of list links to mark the start and end of the list. */
|
|
||||||
static BlockLink_t xStart, *pxEnd = NULL;
|
|
||||||
|
|
||||||
/* Keeps track of the number of free bytes remaining, but says nothing about
|
|
||||||
fragmentation. */
|
|
||||||
static size_t xFreeBytesRemaining = 0U;
|
|
||||||
static size_t xMinimumEverFreeBytesRemaining = 0U;
|
|
||||||
|
|
||||||
/* Gets set to the top bit of an size_t type. When this bit in the xBlockSize
|
|
||||||
member of an BlockLink_t structure is set then the block belongs to the
|
|
||||||
application. When the bit is free the block is still part of the free heap
|
|
||||||
space. */
|
|
||||||
static size_t xBlockAllocatedBit = 0;
|
|
||||||
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void *pvPortMalloc( size_t xWantedSize )
|
|
||||||
{
|
|
||||||
BlockLink_t *pxBlock, *pxPreviousBlock, *pxNewBlockLink;
|
|
||||||
void *pvReturn = NULL;
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
/* If this is the first call to malloc then the heap will require
|
|
||||||
initialisation to setup the list of free blocks. */
|
|
||||||
if( pxEnd == NULL )
|
|
||||||
{
|
|
||||||
prvHeapInit();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Check the requested block size is not so large that the top bit is
|
|
||||||
set. The top bit of the block size member of the BlockLink_t structure
|
|
||||||
is used to determine who owns the block - the application or the
|
|
||||||
kernel, so it must be free. */
|
|
||||||
if( ( xWantedSize & xBlockAllocatedBit ) == 0 )
|
|
||||||
{
|
|
||||||
/* The wanted size is increased so it can contain a BlockLink_t
|
|
||||||
structure in addition to the requested amount of bytes. */
|
|
||||||
if( xWantedSize > 0 )
|
|
||||||
{
|
|
||||||
xWantedSize += xHeapStructSize;
|
|
||||||
|
|
||||||
/* Ensure that blocks are always aligned to the required number
|
|
||||||
of bytes. */
|
|
||||||
if( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) != 0x00 )
|
|
||||||
{
|
|
||||||
/* Byte alignment required. */
|
|
||||||
xWantedSize += ( portBYTE_ALIGNMENT - ( xWantedSize & portBYTE_ALIGNMENT_MASK ) );
|
|
||||||
configASSERT( ( xWantedSize & portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
if( ( xWantedSize > 0 ) && ( xWantedSize <= xFreeBytesRemaining ) )
|
|
||||||
{
|
|
||||||
/* Traverse the list from the start (lowest address) block until
|
|
||||||
one of adequate size is found. */
|
|
||||||
pxPreviousBlock = &xStart;
|
|
||||||
pxBlock = xStart.pxNextFreeBlock;
|
|
||||||
while( ( pxBlock->xBlockSize < xWantedSize ) && ( pxBlock->pxNextFreeBlock != NULL ) )
|
|
||||||
{
|
|
||||||
pxPreviousBlock = pxBlock;
|
|
||||||
pxBlock = pxBlock->pxNextFreeBlock;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If the end marker was reached then a block of adequate size
|
|
||||||
was not found. */
|
|
||||||
if( pxBlock != pxEnd )
|
|
||||||
{
|
|
||||||
/* Return the memory space pointed to - jumping over the
|
|
||||||
BlockLink_t structure at its start. */
|
|
||||||
pvReturn = ( void * ) ( ( ( uint8_t * ) pxPreviousBlock->pxNextFreeBlock ) + xHeapStructSize );
|
|
||||||
|
|
||||||
/* This block is being returned for use so must be taken out
|
|
||||||
of the list of free blocks. */
|
|
||||||
pxPreviousBlock->pxNextFreeBlock = pxBlock->pxNextFreeBlock;
|
|
||||||
|
|
||||||
/* If the block is larger than required it can be split into
|
|
||||||
two. */
|
|
||||||
if( ( pxBlock->xBlockSize - xWantedSize ) > heapMINIMUM_BLOCK_SIZE )
|
|
||||||
{
|
|
||||||
/* This block is to be split into two. Create a new
|
|
||||||
block following the number of bytes requested. The void
|
|
||||||
cast is used to prevent byte alignment warnings from the
|
|
||||||
compiler. */
|
|
||||||
pxNewBlockLink = ( void * ) ( ( ( uint8_t * ) pxBlock ) + xWantedSize );
|
|
||||||
configASSERT( ( ( ( size_t ) pxNewBlockLink ) & portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
||||||
|
|
||||||
/* Calculate the sizes of two blocks split from the
|
|
||||||
single block. */
|
|
||||||
pxNewBlockLink->xBlockSize = pxBlock->xBlockSize - xWantedSize;
|
|
||||||
pxBlock->xBlockSize = xWantedSize;
|
|
||||||
|
|
||||||
/* Insert the new block into the list of free blocks. */
|
|
||||||
prvInsertBlockIntoFreeList( pxNewBlockLink );
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
xFreeBytesRemaining -= pxBlock->xBlockSize;
|
|
||||||
|
|
||||||
if( xFreeBytesRemaining < xMinimumEverFreeBytesRemaining )
|
|
||||||
{
|
|
||||||
xMinimumEverFreeBytesRemaining = xFreeBytesRemaining;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* The block is being returned - it is allocated and owned
|
|
||||||
by the application and has no "next" block. */
|
|
||||||
pxBlock->xBlockSize |= xBlockAllocatedBit;
|
|
||||||
pxBlock->pxNextFreeBlock = NULL;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
traceMALLOC( pvReturn, xWantedSize );
|
|
||||||
}
|
|
||||||
( void ) xTaskResumeAll();
|
|
||||||
|
|
||||||
#if( configUSE_MALLOC_FAILED_HOOK == 1 )
|
|
||||||
{
|
|
||||||
if( pvReturn == NULL )
|
|
||||||
{
|
|
||||||
extern void vApplicationMallocFailedHook( void );
|
|
||||||
vApplicationMallocFailedHook();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
configASSERT( ( ( ( size_t ) pvReturn ) & ( size_t ) portBYTE_ALIGNMENT_MASK ) == 0 );
|
|
||||||
return pvReturn;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortFree( void *pv )
|
|
||||||
{
|
|
||||||
uint8_t *puc = ( uint8_t * ) pv;
|
|
||||||
BlockLink_t *pxLink;
|
|
||||||
|
|
||||||
if( pv != NULL )
|
|
||||||
{
|
|
||||||
/* The memory being freed will have an BlockLink_t structure immediately
|
|
||||||
before it. */
|
|
||||||
puc -= xHeapStructSize;
|
|
||||||
|
|
||||||
/* This casting is to keep the compiler from issuing warnings. */
|
|
||||||
pxLink = ( void * ) puc;
|
|
||||||
|
|
||||||
/* Check the block is actually allocated. */
|
|
||||||
configASSERT( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 );
|
|
||||||
configASSERT( pxLink->pxNextFreeBlock == NULL );
|
|
||||||
|
|
||||||
if( ( pxLink->xBlockSize & xBlockAllocatedBit ) != 0 )
|
|
||||||
{
|
|
||||||
if( pxLink->pxNextFreeBlock == NULL )
|
|
||||||
{
|
|
||||||
/* The block is being returned to the heap - it is no longer
|
|
||||||
allocated. */
|
|
||||||
pxLink->xBlockSize &= ~xBlockAllocatedBit;
|
|
||||||
|
|
||||||
vTaskSuspendAll();
|
|
||||||
{
|
|
||||||
/* Add this block to the list of free blocks. */
|
|
||||||
xFreeBytesRemaining += pxLink->xBlockSize;
|
|
||||||
traceFREE( pv, pxLink->xBlockSize );
|
|
||||||
prvInsertBlockIntoFreeList( ( ( BlockLink_t * ) pxLink ) );
|
|
||||||
}
|
|
||||||
( void ) xTaskResumeAll();
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
size_t xPortGetFreeHeapSize( void )
|
|
||||||
{
|
|
||||||
return xFreeBytesRemaining;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
size_t xPortGetMinimumEverFreeHeapSize( void )
|
|
||||||
{
|
|
||||||
return xMinimumEverFreeBytesRemaining;
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
void vPortInitialiseBlocks( void )
|
|
||||||
{
|
|
||||||
/* This just exists to keep the linker quiet. */
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvHeapInit( void )
|
|
||||||
{
|
|
||||||
BlockLink_t *pxFirstFreeBlock;
|
|
||||||
uint8_t *pucAlignedHeap;
|
|
||||||
size_t uxAddress;
|
|
||||||
size_t xTotalHeapSize = configTOTAL_HEAP_SIZE;
|
|
||||||
|
|
||||||
/* Ensure the heap starts on a correctly aligned boundary. */
|
|
||||||
uxAddress = ( size_t ) ucHeap;
|
|
||||||
|
|
||||||
if( ( uxAddress & portBYTE_ALIGNMENT_MASK ) != 0 )
|
|
||||||
{
|
|
||||||
uxAddress += ( portBYTE_ALIGNMENT - 1 );
|
|
||||||
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
|
|
||||||
xTotalHeapSize -= uxAddress - ( size_t ) ucHeap;
|
|
||||||
}
|
|
||||||
|
|
||||||
pucAlignedHeap = ( uint8_t * ) uxAddress;
|
|
||||||
|
|
||||||
/* xStart is used to hold a pointer to the first item in the list of free
|
|
||||||
blocks. The void cast is used to prevent compiler warnings. */
|
|
||||||
xStart.pxNextFreeBlock = ( void * ) pucAlignedHeap;
|
|
||||||
xStart.xBlockSize = ( size_t ) 0;
|
|
||||||
|
|
||||||
/* pxEnd is used to mark the end of the list of free blocks and is inserted
|
|
||||||
at the end of the heap space. */
|
|
||||||
uxAddress = ( ( size_t ) pucAlignedHeap ) + xTotalHeapSize;
|
|
||||||
uxAddress -= xHeapStructSize;
|
|
||||||
uxAddress &= ~( ( size_t ) portBYTE_ALIGNMENT_MASK );
|
|
||||||
pxEnd = ( void * ) uxAddress;
|
|
||||||
pxEnd->xBlockSize = 0;
|
|
||||||
pxEnd->pxNextFreeBlock = NULL;
|
|
||||||
|
|
||||||
/* To start with there is a single free block that is sized to take up the
|
|
||||||
entire heap space, minus the space taken by pxEnd. */
|
|
||||||
pxFirstFreeBlock = ( void * ) pucAlignedHeap;
|
|
||||||
pxFirstFreeBlock->xBlockSize = uxAddress - ( size_t ) pxFirstFreeBlock;
|
|
||||||
pxFirstFreeBlock->pxNextFreeBlock = pxEnd;
|
|
||||||
|
|
||||||
/* Only one block exists - and it covers the entire usable heap space. */
|
|
||||||
xMinimumEverFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
|
|
||||||
xFreeBytesRemaining = pxFirstFreeBlock->xBlockSize;
|
|
||||||
|
|
||||||
/* Work out the position of the top bit in a size_t variable. */
|
|
||||||
xBlockAllocatedBit = ( ( size_t ) 1 ) << ( ( sizeof( size_t ) * heapBITS_PER_BYTE ) - 1 );
|
|
||||||
}
|
|
||||||
/*-----------------------------------------------------------*/
|
|
||||||
|
|
||||||
static void prvInsertBlockIntoFreeList( BlockLink_t *pxBlockToInsert )
|
|
||||||
{
|
|
||||||
BlockLink_t *pxIterator;
|
|
||||||
uint8_t *puc;
|
|
||||||
|
|
||||||
/* Iterate through the list until a block is found that has a higher address
|
|
||||||
than the block being inserted. */
|
|
||||||
for( pxIterator = &xStart; pxIterator->pxNextFreeBlock < pxBlockToInsert; pxIterator = pxIterator->pxNextFreeBlock )
|
|
||||||
{
|
|
||||||
/* Nothing to do here, just iterate to the right position. */
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Do the block being inserted, and the block it is being inserted after
|
|
||||||
make a contiguous block of memory? */
|
|
||||||
puc = ( uint8_t * ) pxIterator;
|
|
||||||
if( ( puc + pxIterator->xBlockSize ) == ( uint8_t * ) pxBlockToInsert )
|
|
||||||
{
|
|
||||||
pxIterator->xBlockSize += pxBlockToInsert->xBlockSize;
|
|
||||||
pxBlockToInsert = pxIterator;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Do the block being inserted, and the block it is being inserted before
|
|
||||||
make a contiguous block of memory? */
|
|
||||||
puc = ( uint8_t * ) pxBlockToInsert;
|
|
||||||
if( ( puc + pxBlockToInsert->xBlockSize ) == ( uint8_t * ) pxIterator->pxNextFreeBlock )
|
|
||||||
{
|
|
||||||
if( pxIterator->pxNextFreeBlock != pxEnd )
|
|
||||||
{
|
|
||||||
/* Form one big block from the two blocks. */
|
|
||||||
pxBlockToInsert->xBlockSize += pxIterator->pxNextFreeBlock->xBlockSize;
|
|
||||||
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock->pxNextFreeBlock;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pxBlockToInsert->pxNextFreeBlock = pxEnd;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
pxBlockToInsert->pxNextFreeBlock = pxIterator->pxNextFreeBlock;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* If the block being inserted plugged a gab, so was merged with the block
|
|
||||||
before and the block after, then it's pxNextFreeBlock pointer will have
|
|
||||||
already been set, and should not be set here as that would make it point
|
|
||||||
to itself. */
|
|
||||||
if( pxIterator != pxBlockToInsert )
|
|
||||||
{
|
|
||||||
pxIterator->pxNextFreeBlock = pxBlockToInsert;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
mtCOVERAGE_TEST_MARKER();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,63 +0,0 @@
|
|||||||
# Select the board to build for: if not given on the command line,
|
|
||||||
# then default to WIPY
|
|
||||||
BOARD ?= WIPY
|
|
||||||
ifeq ($(wildcard boards/$(BOARD)/.),)
|
|
||||||
$(error Invalid BOARD specified)
|
|
||||||
endif
|
|
||||||
|
|
||||||
# Make 'release' the default build type
|
|
||||||
BTYPE ?= release
|
|
||||||
|
|
||||||
# Port for flashing firmware
|
|
||||||
PORT ?= /dev/ttyUSB1
|
|
||||||
|
|
||||||
# If the build directory is not given, make it reflect the board name.
|
|
||||||
BUILD ?= build/$(BOARD)/$(BTYPE)
|
|
||||||
|
|
||||||
include ../../py/mkenv.mk
|
|
||||||
-include ../../localconfig.mk
|
|
||||||
|
|
||||||
CROSS_COMPILE ?= arm-none-eabi-
|
|
||||||
|
|
||||||
CFLAGS_CORTEX_M4 = -mthumb -mtune=cortex-m4 -march=armv7e-m -mabi=aapcs -mcpu=cortex-m4 -msoft-float -mfloat-abi=soft -fsingle-precision-constant -Wdouble-promotion
|
|
||||||
CFLAGS = -Wall -Wpointer-arith -Werror -std=gnu99 -nostdlib $(CFLAGS_CORTEX_M4) -Os
|
|
||||||
CFLAGS += -g -ffunction-sections -fdata-sections -fno-common -fsigned-char -mno-unaligned-access
|
|
||||||
CFLAGS += -Iboards/$(BOARD)
|
|
||||||
CFLAGS += $(CFLAGS_MOD)
|
|
||||||
|
|
||||||
LDFLAGS = -Wl,-nostdlib -Wl,--gc-sections -Wl,-Map=$@.map
|
|
||||||
|
|
||||||
FLASH_SIZE_WIPY = 2M
|
|
||||||
FLASH_SIZE_LAUNCHXL = 1M
|
|
||||||
|
|
||||||
ifeq ($(BTARGET), application)
|
|
||||||
# qstr definitions (must come before including py.mk)
|
|
||||||
QSTR_DEFS = qstrdefsport.h $(BUILD)/pins_qstr.h
|
|
||||||
# include MicroPython make definitions
|
|
||||||
include $(TOP)/py/py.mk
|
|
||||||
include application.mk
|
|
||||||
else
|
|
||||||
ifeq ($(BTARGET), bootloader)
|
|
||||||
include bootmgr/bootloader.mk
|
|
||||||
else
|
|
||||||
$(error Invalid BTARGET specified)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
# always include MicroPython make rules
|
|
||||||
include $(TOP)/py/mkrules.mk
|
|
||||||
|
|
||||||
erase:
|
|
||||||
cc3200tool -p $(PORT) format_flash --size $(FLASH_SIZE_$(BOARD))
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
cc3200tool -p $(PORT) \
|
|
||||||
write_file bootmgr/build/$(BOARD)/$(BTYPE)/bootloader.bin /sys/mcuimg.bin \
|
|
||||||
write_file build/$(BOARD)/$(BTYPE)/mcuimg.bin /sys/factimg.bin
|
|
||||||
|
|
||||||
# Files *.ucf and *ucf.signed.bin come from CC3200SDK-SERVICEPACK
|
|
||||||
# package from http://www.ti.com/tool/cc3200sdk
|
|
||||||
servicepack:
|
|
||||||
cc3200tool -p $(PORT) \
|
|
||||||
write_file --file-size=0x20000 --signature ota_1.0.1.6-2.7.0.0.ucf.signed.bin \
|
|
||||||
ota_1.0.1.6-2.7.0.0.ucf /sys/servicepack.ucf
|
|
@ -1,148 +0,0 @@
|
|||||||
MicroPython port to CC3200 WiFi SoC
|
|
||||||
===================================
|
|
||||||
|
|
||||||
This is a MicroPython port to Texas Instruments CC3200 WiFi SoC (ARM Cortex-M4
|
|
||||||
architecture). This port supports 2 boards: WiPy and TI CC3200-LAUNCHXL.
|
|
||||||
|
|
||||||
## Build Instructions for the CC3200
|
|
||||||
|
|
||||||
Currently the CC3200 port of MicroPython builds under Linux and OSX,
|
|
||||||
but not under Windows.
|
|
||||||
|
|
||||||
The toolchain required for the build can be found at
|
|
||||||
<https://launchpad.net/gcc-arm-embedded>.
|
|
||||||
|
|
||||||
In order to flash the image to the CC3200 you will need the
|
|
||||||
[cc3200tool](https://github.com/ALLTERCO/cc3200tool). An alternative is
|
|
||||||
to use CCS_Uniflash tool from TI, which works only under Windows, and all
|
|
||||||
support is provided by TI itself.
|
|
||||||
|
|
||||||
Building the bootloader:
|
|
||||||
|
|
||||||
```
|
|
||||||
make BTARGET=bootloader BTYPE=release BOARD=LAUNCHXL
|
|
||||||
```
|
|
||||||
|
|
||||||
Building the "release" image:
|
|
||||||
|
|
||||||
```
|
|
||||||
make BTARGET=application BTYPE=release BOARD=LAUNCHXL
|
|
||||||
```
|
|
||||||
|
|
||||||
To build an image suitable for debugging:
|
|
||||||
|
|
||||||
In order to debug the port specific code, optimizations need to be disabled on the
|
|
||||||
port file (check the Makefile for specific details). You can use CCS from TI.
|
|
||||||
Use the CC3200.ccxml file supplied with this distribution for the debuuger configuration.
|
|
||||||
|
|
||||||
```
|
|
||||||
make BTARGET=application BTYPE=debug BOARD=LAUNCHXL
|
|
||||||
```
|
|
||||||
|
|
||||||
## Flashing the CC3200-LAUNCHXL
|
|
||||||
|
|
||||||
Note that WiPy comes factory programmed with a default version of MicroPython,
|
|
||||||
it cannot be programmed via serial, and can be upgraded only with OTA (see
|
|
||||||
below).
|
|
||||||
|
|
||||||
- Make sure that you have built both the *bootloader* and the *application* in **release** mode.
|
|
||||||
- Make sure the SOP2 jumper is in position.
|
|
||||||
- Make sure you Linux system recognized the board and created `ttyUSB*`
|
|
||||||
devices (see below for configuration of `ftdi_sio` driver).
|
|
||||||
- Run "make erase" and immediately press Reset button on the device.
|
|
||||||
- Wait few seconds.
|
|
||||||
- Run "make deploy" and immediately press Reset button on the device.
|
|
||||||
- You are recommended to install the latest vendor WiFi firmware
|
|
||||||
servicepack from http://www.ti.com/tool/cc3200sdk. Download
|
|
||||||
CC3200SDK-SERVICEPACK package, install it, and locate `ota_*.ucf`
|
|
||||||
and `ota_*.ucf.signed.bin` files. Copy them to the port's directory
|
|
||||||
and run "make servicepack", with immediate press of Reset button.
|
|
||||||
- Remove the SOP2 jumper and reset the board.
|
|
||||||
|
|
||||||
Flashing process using TI Uniflash:
|
|
||||||
|
|
||||||
- Open CCS_Uniflash and connect to the board (by default on port 22).
|
|
||||||
- Format the serial flash (select 1MB size in case of the CC3200-LAUNCHXL, 2MB in case of the WiPy, leave the rest unchecked).
|
|
||||||
- Mark the following files for erasing: `/cert/ca.pem`, `/cert/client.pem`, `/cert/private.key` and `/tmp/pac.bin`.
|
|
||||||
- Add a new file with the name of /sys/mcuimg.bin, and select the URL to point to cc3200\bootmgr\build\<BOARD_NAME>\bootloader.bin.
|
|
||||||
- Add another file with the name of /sys/factimg.bin, and select the URL to point to cc3200\build\<BOARD_NAME>\mcuimg.bin.
|
|
||||||
- Click "Program" to apply all changes.
|
|
||||||
- Flash the latest service pack (servicepack_1.0.0.10.0.bin) using the "Service Pack Update" button.
|
|
||||||
- Close CCS_Uniflash, remove the SOP2 jumper and reset the board.
|
|
||||||
|
|
||||||
## Playing with MicroPython and the CC3200:
|
|
||||||
|
|
||||||
Once the software is running, you have two options to access the MicroPython REPL:
|
|
||||||
|
|
||||||
- Through telnet.
|
|
||||||
* Connect to the network created by the board (as boots up in AP mode), **ssid = "wipy-wlan", key = "www.wipy.io"**.
|
|
||||||
* You can also reinitialize the WLAN in station mode and connect to another AP, or in AP mode but with a
|
|
||||||
different ssid and/or key.
|
|
||||||
* Use your favourite telnet client with the following settings: **host = 192.168.1.1, port = 23.**
|
|
||||||
* Log in with **user = "micro" and password = "python"**
|
|
||||||
|
|
||||||
- Through UART (serial).
|
|
||||||
* This is enabled by default in the standard configuration, for UART0 (speed 115200).
|
|
||||||
* For CC3200-LAUNCHXL, you will need to configure Linux `ftdi_sio` driver as described
|
|
||||||
in the [blog post](http://www.achanceofbrainshowers.com/blog/tech/2014/8/19/cc3200-development-under-linux/).
|
|
||||||
After that, connecting a board will create two `/dev/ttyUSB*` devices, a serial
|
|
||||||
console is available on the 2nd one (usually `/dev/ttyUSB1`).
|
|
||||||
* WiPy doesn't have onboard USB-UART converter, so you will need an external one,
|
|
||||||
connected to GPIO01 (Tx) and GPIO02 (Rx).
|
|
||||||
* Usage of UART port for REPL is controlled by MICROPY_STDIO_UART setting (and
|
|
||||||
is done at the high level, using a suitable call to `os.dupterm()` function
|
|
||||||
in boot.py, so you can override it at runtime regardless of MICROPY_STDIO_UART
|
|
||||||
setting).
|
|
||||||
|
|
||||||
The board has a small file system of 192K (WiPy) or 64K (Launchpad) located in the serial flash connected to the CC3200.
|
|
||||||
SD cards are also supported, you can connect any SD card and configure the pinout using the SD class API.
|
|
||||||
|
|
||||||
## Uploading scripts:
|
|
||||||
|
|
||||||
To upload your MicroPython scripts to the FTP server, open your FTP client of choice and connect to:
|
|
||||||
**ftp://192.168.1.1, user = "micro", password = "python"**
|
|
||||||
|
|
||||||
Tested FTP clients are: FileZilla, FireFTP, FireFox, IE and Chrome. Other
|
|
||||||
clients should work as well, but you may need to configure them to use a
|
|
||||||
single connection (this should be the default for any compliant FTP client).
|
|
||||||
|
|
||||||
## Upgrading the firmware Over The Air (OTA)
|
|
||||||
|
|
||||||
OTA software updates can be performed through the builtin FTP server. After
|
|
||||||
building a new `mcuimg.bin` in release mode, upload it to:
|
|
||||||
`/flash/sys/mcuimg.bin`. It will take around 6s (The TI SimpleLink file
|
|
||||||
system is quite slow because every file is mirrored for safety). You won't
|
|
||||||
see the file being stored inside `/flash/sys/` because it's actually saved
|
|
||||||
bypassing FatFS, but rest assured that the file was successfully transferred,
|
|
||||||
and it has been signed with a MD5 checksum to verify its integrity.
|
|
||||||
Now, reset the MCU by pressing the switch on the board, or by typing:
|
|
||||||
|
|
||||||
```python
|
|
||||||
import machine
|
|
||||||
machine.reset()
|
|
||||||
```
|
|
||||||
|
|
||||||
There's a script which automates this process from the host side:
|
|
||||||
|
|
||||||
- Make sure the board is running and connected to the same network as the computer.
|
|
||||||
|
|
||||||
```bash
|
|
||||||
make BTARGET=application BTYPE=release BOARD=LAUNCHXL WIPY_IP=192.168.1.1 WIPY_USER=micro WIPY_PWD=python deploy-ota
|
|
||||||
```
|
|
||||||
|
|
||||||
If `WIPY_IP`, `WIPY_USER` or `WIPY_PWD` are omitted the default values (the ones shown above) will be used.
|
|
||||||
|
|
||||||
|
|
||||||
## Notes and known issues
|
|
||||||
|
|
||||||
## Regarding old revisions of the CC3200-LAUNCHXL
|
|
||||||
|
|
||||||
First silicon (pre-release) revisions of the CC3200 had issues with the ram blocks, and MicroPython cannot run
|
|
||||||
there. Make sure to use a **v4.1 (or higher) LAUNCHXL board** when trying this port, otherwise it won't work.
|
|
||||||
|
|
||||||
### Note regarding FileZilla
|
|
||||||
|
|
||||||
Do not use the quick connect button, instead, open the site manager and create a new configuration. In the "General" tab make
|
|
||||||
sure that encryption is set to: "Only use plain FTP (insecure)". In the Transfer Settings tab limit the max number of connections
|
|
||||||
to one, otherwise FileZilla will try to open a second command connection when retrieving and saving files, and for simplicity and
|
|
||||||
to reduce code size, only one command and one data connections are possible.
|
|
@ -1,116 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the MicroPython project, http://micropython.org/
|
|
||||||
*
|
|
||||||
* The MIT License (MIT)
|
|
||||||
*
|
|
||||||
* Copyright (c) 2015 Daniel Campora
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
__stack_size__ = 2K; /* interrupts are handled within this stack */
|
|
||||||
__min_heap_size__ = 8K;
|
|
||||||
|
|
||||||
MEMORY
|
|
||||||
{
|
|
||||||
SRAMB (rwx) : ORIGIN = 0x20000000, LENGTH = 0x00004000
|
|
||||||
SRAM (rwx) : ORIGIN = 0x20004000, LENGTH = 0x0003C000
|
|
||||||
}
|
|
||||||
|
|
||||||
ENTRY(ResetISR)
|
|
||||||
|
|
||||||
SECTIONS
|
|
||||||
{
|
|
||||||
/* place the FreeRTOS heap (the MicroPython stack will live here) */
|
|
||||||
.rtos_heap (NOLOAD) :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
*(.rtos_heap*)
|
|
||||||
. = ALIGN(8);
|
|
||||||
} > SRAMB
|
|
||||||
|
|
||||||
.text :
|
|
||||||
{
|
|
||||||
_text = .;
|
|
||||||
KEEP(*(.intvecs))
|
|
||||||
*(.text*)
|
|
||||||
*(.rodata*)
|
|
||||||
*(.ARM.extab* .gnu.linkonce.armextab.*)
|
|
||||||
. = ALIGN(8);
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.ARM :
|
|
||||||
{
|
|
||||||
__exidx_start = .;
|
|
||||||
*(.ARM.exidx*)
|
|
||||||
__exidx_end = .;
|
|
||||||
_etext = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.data :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_data = .;
|
|
||||||
*(.data*)
|
|
||||||
. = ALIGN(8);
|
|
||||||
_edata = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
.bss :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_bss = .;
|
|
||||||
*(.bss*)
|
|
||||||
*(COMMON)
|
|
||||||
. = ALIGN(8);
|
|
||||||
_ebss = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
/* place here functions that are only called during boot up, */
|
|
||||||
/* that way, we can re-use this area for the MicroPython heap */
|
|
||||||
.boot :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_boot = .;
|
|
||||||
*(.boot*)
|
|
||||||
. = ALIGN(8);
|
|
||||||
_eboot = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
/* allocate the MicroPython heap */
|
|
||||||
.heap :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_heap = .;
|
|
||||||
. = . + __min_heap_size__;
|
|
||||||
. = . + (ORIGIN(SRAM) + LENGTH(SRAM) - __stack_size__ - ABSOLUTE(.));
|
|
||||||
. = ALIGN(8);
|
|
||||||
_eheap = .;
|
|
||||||
} > SRAM
|
|
||||||
|
|
||||||
/* allocate the main stack */
|
|
||||||
.stack ORIGIN(SRAM) + LENGTH(SRAM) - __stack_size__ :
|
|
||||||
{
|
|
||||||
. = ALIGN(8);
|
|
||||||
_stack = .;
|
|
||||||
. = . + __stack_size__;
|
|
||||||
. = ALIGN(8);
|
|
||||||
_estack = .;
|
|
||||||
} > SRAM
|
|
||||||
}
|
|
@ -1,240 +0,0 @@
|
|||||||
APP_INC = -I.
|
|
||||||
APP_INC += -I$(TOP)
|
|
||||||
APP_INC += -Ifatfs/src
|
|
||||||
APP_INC += -Ifatfs/src/drivers
|
|
||||||
APP_INC += -IFreeRTOS
|
|
||||||
APP_INC += -IFreeRTOS/Source/include
|
|
||||||
APP_INC += -IFreeRTOS/Source/portable/GCC/ARM_CM3
|
|
||||||
APP_INC += -Iftp
|
|
||||||
APP_INC += -Ihal
|
|
||||||
APP_INC += -Ihal/inc
|
|
||||||
APP_INC += -Imisc
|
|
||||||
APP_INC += -Imods
|
|
||||||
APP_INC += -I$(TOP)/drivers/cc3100/inc
|
|
||||||
APP_INC += -Isimplelink
|
|
||||||
APP_INC += -Isimplelink/oslib
|
|
||||||
APP_INC += -Itelnet
|
|
||||||
APP_INC += -Iutil
|
|
||||||
APP_INC += -Ibootmgr
|
|
||||||
APP_INC += -I$(BUILD)
|
|
||||||
APP_INC += -I$(BUILD)/genhdr
|
|
||||||
APP_INC += -I$(TOP)/ports/stm32
|
|
||||||
|
|
||||||
APP_CPPDEFINES = -Dgcc -DTARGET_IS_CC3200 -DSL_FULL -DUSE_FREERTOS
|
|
||||||
|
|
||||||
APP_FATFS_SRC_C = $(addprefix fatfs/src/,\
|
|
||||||
drivers/sflash_diskio.c \
|
|
||||||
drivers/sd_diskio.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_RTOS_SRC_C = $(addprefix FreeRTOS/Source/,\
|
|
||||||
croutine.c \
|
|
||||||
event_groups.c \
|
|
||||||
list.c \
|
|
||||||
queue.c \
|
|
||||||
tasks.c \
|
|
||||||
timers.c \
|
|
||||||
portable/GCC/ARM_CM3/port.c \
|
|
||||||
portable/MemMang/heap_4.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_FTP_SRC_C = $(addprefix ftp/,\
|
|
||||||
ftp.c \
|
|
||||||
updater.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_HAL_SRC_C = $(addprefix hal/,\
|
|
||||||
adc.c \
|
|
||||||
aes.c \
|
|
||||||
cc3200_hal.c \
|
|
||||||
cpu.c \
|
|
||||||
crc.c \
|
|
||||||
des.c \
|
|
||||||
gpio.c \
|
|
||||||
i2c.c \
|
|
||||||
i2s.c \
|
|
||||||
interrupt.c \
|
|
||||||
pin.c \
|
|
||||||
prcm.c \
|
|
||||||
sdhost.c \
|
|
||||||
shamd5.c \
|
|
||||||
spi.c \
|
|
||||||
startup_gcc.c \
|
|
||||||
systick.c \
|
|
||||||
timer.c \
|
|
||||||
uart.c \
|
|
||||||
utils.c \
|
|
||||||
wdt.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_MISC_SRC_C = $(addprefix misc/,\
|
|
||||||
antenna.c \
|
|
||||||
FreeRTOSHooks.c \
|
|
||||||
help.c \
|
|
||||||
mpirq.c \
|
|
||||||
mperror.c \
|
|
||||||
mpexception.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_MODS_SRC_C = $(addprefix mods/,\
|
|
||||||
modmachine.c \
|
|
||||||
modnetwork.c \
|
|
||||||
modubinascii.c \
|
|
||||||
moduos.c \
|
|
||||||
modusocket.c \
|
|
||||||
modussl.c \
|
|
||||||
modutime.c \
|
|
||||||
modwipy.c \
|
|
||||||
modwlan.c \
|
|
||||||
pybadc.c \
|
|
||||||
pybpin.c \
|
|
||||||
pybi2c.c \
|
|
||||||
pybrtc.c \
|
|
||||||
pybflash.c \
|
|
||||||
pybsd.c \
|
|
||||||
pybsleep.c \
|
|
||||||
pybspi.c \
|
|
||||||
pybtimer.c \
|
|
||||||
pybuart.c \
|
|
||||||
pybwdt.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_CC3100_SRC_C = $(addprefix drivers/cc3100/src/,\
|
|
||||||
device.c \
|
|
||||||
driver.c \
|
|
||||||
flowcont.c \
|
|
||||||
fs.c \
|
|
||||||
netapp.c \
|
|
||||||
netcfg.c \
|
|
||||||
socket.c \
|
|
||||||
wlan.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_SL_SRC_C = $(addprefix simplelink/,\
|
|
||||||
oslib/osi_freertos.c \
|
|
||||||
cc_pal.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_TELNET_SRC_C = $(addprefix telnet/,\
|
|
||||||
telnet.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_UTIL_SRC_C = $(addprefix util/,\
|
|
||||||
cryptohash.c \
|
|
||||||
fifo.c \
|
|
||||||
gccollect.c \
|
|
||||||
random.c \
|
|
||||||
socketfifo.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_UTIL_SRC_S = $(addprefix util/,\
|
|
||||||
gchelper.s \
|
|
||||||
sleeprestore.s \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_MAIN_SRC_C = \
|
|
||||||
main.c \
|
|
||||||
mptask.c \
|
|
||||||
mpthreadport.c \
|
|
||||||
serverstask.c \
|
|
||||||
fatfs_port.c \
|
|
||||||
|
|
||||||
APP_LIB_SRC_C = $(addprefix lib/,\
|
|
||||||
oofatfs/ff.c \
|
|
||||||
oofatfs/option/unicode.c \
|
|
||||||
libc/string0.c \
|
|
||||||
mp-readline/readline.c \
|
|
||||||
netutils/netutils.c \
|
|
||||||
timeutils/timeutils.c \
|
|
||||||
utils/pyexec.c \
|
|
||||||
utils/interrupt_char.c \
|
|
||||||
utils/sys_stdio_mphal.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
APP_STM_SRC_C = $(addprefix ports/stm32/,\
|
|
||||||
bufhelper.c \
|
|
||||||
irq.c \
|
|
||||||
)
|
|
||||||
|
|
||||||
OBJ = $(PY_O) $(addprefix $(BUILD)/, $(APP_FATFS_SRC_C:.c=.o) $(APP_RTOS_SRC_C:.c=.o) $(APP_FTP_SRC_C:.c=.o) $(APP_HAL_SRC_C:.c=.o) $(APP_MISC_SRC_C:.c=.o))
|
|
||||||
OBJ += $(addprefix $(BUILD)/, $(APP_MODS_SRC_C:.c=.o) $(APP_CC3100_SRC_C:.c=.o) $(APP_SL_SRC_C:.c=.o) $(APP_TELNET_SRC_C:.c=.o) $(APP_UTIL_SRC_C:.c=.o) $(APP_UTIL_SRC_S:.s=.o))
|
|
||||||
OBJ += $(addprefix $(BUILD)/, $(APP_MAIN_SRC_C:.c=.o) $(APP_LIB_SRC_C:.c=.o) $(APP_STM_SRC_C:.c=.o))
|
|
||||||
OBJ += $(BUILD)/pins.o
|
|
||||||
|
|
||||||
# List of sources for qstr extraction
|
|
||||||
SRC_QSTR += $(APP_MODS_SRC_C) $(APP_MISC_SRC_C) $(APP_STM_SRC_C)
|
|
||||||
# Append any auto-generated sources that are needed by sources listed in
|
|
||||||
# SRC_QSTR
|
|
||||||
SRC_QSTR_AUTO_DEPS +=
|
|
||||||
|
|
||||||
# Add the linker script
|
|
||||||
LINKER_SCRIPT = application.lds
|
|
||||||
LDFLAGS += -T $(LINKER_SCRIPT)
|
|
||||||
|
|
||||||
# Add the application specific CFLAGS
|
|
||||||
CFLAGS += $(APP_CPPDEFINES) $(APP_INC)
|
|
||||||
|
|
||||||
# Disable strict aliasing for the simplelink driver
|
|
||||||
$(BUILD)/drivers/cc3100/src/driver.o: CFLAGS += -fno-strict-aliasing
|
|
||||||
|
|
||||||
# Check if we would like to debug the port code
|
|
||||||
ifeq ($(BTYPE), release)
|
|
||||||
CFLAGS += -DNDEBUG
|
|
||||||
else
|
|
||||||
ifeq ($(BTYPE), debug)
|
|
||||||
CFLAGS += -DNDEBUG
|
|
||||||
else
|
|
||||||
$(error Invalid BTYPE specified)
|
|
||||||
endif
|
|
||||||
endif
|
|
||||||
|
|
||||||
SHELL = bash
|
|
||||||
APP_SIGN = appsign.sh
|
|
||||||
UPDATE_WIPY ?= tools/update-wipy.py
|
|
||||||
WIPY_IP ?= '192.168.1.1'
|
|
||||||
WIPY_USER ?= 'micro'
|
|
||||||
WIPY_PWD ?= 'python'
|
|
||||||
|
|
||||||
all: $(BUILD)/mcuimg.bin
|
|
||||||
|
|
||||||
.PHONY: deploy-ota
|
|
||||||
|
|
||||||
deploy-ota: $(BUILD)/mcuimg.bin
|
|
||||||
$(ECHO) "Writing $< to the board"
|
|
||||||
$(Q)$(PYTHON) $(UPDATE_WIPY) --verify --ip $(WIPY_IP) --user $(WIPY_USER) --password $(WIPY_PWD) --file $<
|
|
||||||
|
|
||||||
$(BUILD)/application.axf: $(OBJ) $(LINKER_SCRIPT)
|
|
||||||
$(ECHO) "LINK $@"
|
|
||||||
$(Q)$(CC) -o $@ $(LDFLAGS) $(OBJ) $(LIBS)
|
|
||||||
$(Q)$(SIZE) $@
|
|
||||||
|
|
||||||
$(BUILD)/application.bin: $(BUILD)/application.axf
|
|
||||||
$(ECHO) "Create $@"
|
|
||||||
$(Q)$(OBJCOPY) -O binary $< $@
|
|
||||||
|
|
||||||
$(BUILD)/mcuimg.bin: $(BUILD)/application.bin
|
|
||||||
$(ECHO) "Create $@"
|
|
||||||
$(Q)$(SHELL) $(APP_SIGN) $(BUILD)
|
|
||||||
|
|
||||||
MAKE_PINS = boards/make-pins.py
|
|
||||||
BOARD_PINS = boards/$(BOARD)/pins.csv
|
|
||||||
AF_FILE = boards/cc3200_af.csv
|
|
||||||
PREFIX_FILE = boards/cc3200_prefix.c
|
|
||||||
GEN_PINS_SRC = $(BUILD)/pins.c
|
|
||||||
GEN_PINS_HDR = $(HEADER_BUILD)/pins.h
|
|
||||||
GEN_PINS_QSTR = $(BUILD)/pins_qstr.h
|
|
||||||
|
|
||||||
# Making OBJ use an order-only dependency on the generated pins.h file
|
|
||||||
# has the side effect of making the pins.h file before we actually compile
|
|
||||||
# any of the objects. The normal dependency generation will deal with the
|
|
||||||
# case when pins.h is modified. But when it doesn't exist, we don't know
|
|
||||||
# which source files might need it.
|
|
||||||
$(OBJ): | $(GEN_PINS_HDR)
|
|
||||||
|
|
||||||
# Call make-pins.py to generate both pins_gen.c and pins.h
|
|
||||||
$(GEN_PINS_SRC) $(GEN_PINS_HDR) $(GEN_PINS_QSTR): $(BOARD_PINS) $(MAKE_PINS) $(AF_FILE) $(PREFIX_FILE) | $(HEADER_BUILD)
|
|
||||||
$(ECHO) "Create $@"
|
|
||||||
$(Q)$(PYTHON) $(MAKE_PINS) --board $(BOARD_PINS) --af $(AF_FILE) --prefix $(PREFIX_FILE) --hdr $(GEN_PINS_HDR) --qstr $(GEN_PINS_QSTR) > $(GEN_PINS_SRC)
|
|
||||||
|
|
||||||
$(BUILD)/pins.o: $(BUILD)/pins.c
|
|
||||||
$(call compile_c)
|
|
@ -1,29 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
|
||||||
echo "Usage: appsign.sh *build dir*"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Build location
|
|
||||||
BUILD=$1
|
|
||||||
|
|
||||||
# Generate the MD5 hash
|
|
||||||
# md5 on Darwin, md5sum on Unix
|
|
||||||
if [ `uname -s` = "Darwin" ]; then
|
|
||||||
echo -n `md5 -q $BUILD/application.bin` > __md5hash.bin
|
|
||||||
else
|
|
||||||
echo -n `md5sum --binary $BUILD/application.bin | awk '{ print $1 }'` > __md5hash.bin
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Concatenate it with the application binary
|
|
||||||
cat $BUILD/application.bin __md5hash.bin > $BUILD/mcuimg.bin
|
|
||||||
RET=$?
|
|
||||||
|
|
||||||
# Remove the tmp files
|
|
||||||
rm -f __md5hash.bin
|
|
||||||
|
|
||||||
# Remove the unsigned binary
|
|
||||||
rm -f $BUILD/application.bin
|
|
||||||
|
|
||||||
exit $RET
|
|
@ -1,49 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the MicroPython project, http://micropython.org/
|
|
||||||
*
|
|
||||||
* The MIT License (MIT)
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013, 2014 Damien P. George
|
|
||||||
* Copyright (c) 2015 Daniel Campora
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define LAUNCHXL
|
|
||||||
|
|
||||||
#define MICROPY_HW_BOARD_NAME "LaunchPad"
|
|
||||||
#define MICROPY_HW_MCU_NAME "CC3200"
|
|
||||||
|
|
||||||
#define MICROPY_HW_ANTENNA_DIVERSITY (0)
|
|
||||||
|
|
||||||
#define MICROPY_STDIO_UART 1
|
|
||||||
#define MICROPY_STDIO_UART_BAUD 115200
|
|
||||||
|
|
||||||
#define MICROPY_SYS_LED_PRCM PRCM_GPIOA1
|
|
||||||
#define MICROPY_SAFE_BOOT_PRCM PRCM_GPIOA2
|
|
||||||
#define MICROPY_SYS_LED_PORT GPIOA1_BASE
|
|
||||||
#define MICROPY_SAFE_BOOT_PORT GPIOA2_BASE
|
|
||||||
#define MICROPY_SYS_LED_GPIO pin_GP9
|
|
||||||
#define MICROPY_SYS_LED_PIN_NUM PIN_64 // GP9
|
|
||||||
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_15 // GP22
|
|
||||||
#define MICROPY_SYS_LED_PORT_PIN GPIO_PIN_1
|
|
||||||
#define MICROPY_SAFE_BOOT_PORT_PIN GPIO_PIN_6
|
|
||||||
|
|
||||||
#define MICROPY_PORT_SFLASH_BLOCK_COUNT 32
|
|
||||||
|
|
@ -1,25 +0,0 @@
|
|||||||
P12,58
|
|
||||||
P13,4
|
|
||||||
P14,3
|
|
||||||
P15,61
|
|
||||||
P16,59
|
|
||||||
P17,5
|
|
||||||
P18,62
|
|
||||||
P19,1
|
|
||||||
P110,2
|
|
||||||
P33,57
|
|
||||||
P34,60
|
|
||||||
P37,63
|
|
||||||
P38,53
|
|
||||||
P39,64
|
|
||||||
P310,50
|
|
||||||
P49,16
|
|
||||||
P410,17
|
|
||||||
P22,18
|
|
||||||
P23,8
|
|
||||||
P24,45
|
|
||||||
P26,7
|
|
||||||
P27,6
|
|
||||||
P28,21
|
|
||||||
P29,55
|
|
||||||
P210,15
|
|
|
@ -1,48 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the MicroPython project, http://micropython.org/
|
|
||||||
*
|
|
||||||
* The MIT License (MIT)
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013, 2014 Damien P. George
|
|
||||||
* Copyright (c) 2015 Daniel Campora
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define WIPY
|
|
||||||
|
|
||||||
#define MICROPY_HW_BOARD_NAME "WiPy"
|
|
||||||
#define MICROPY_HW_MCU_NAME "CC3200"
|
|
||||||
|
|
||||||
#define MICROPY_HW_ANTENNA_DIVERSITY (1)
|
|
||||||
|
|
||||||
#define MICROPY_STDIO_UART 1
|
|
||||||
#define MICROPY_STDIO_UART_BAUD 115200
|
|
||||||
|
|
||||||
#define MICROPY_SYS_LED_PRCM PRCM_GPIOA3
|
|
||||||
#define MICROPY_SAFE_BOOT_PRCM PRCM_GPIOA3
|
|
||||||
#define MICROPY_SYS_LED_PORT GPIOA3_BASE
|
|
||||||
#define MICROPY_SAFE_BOOT_PORT GPIOA3_BASE
|
|
||||||
#define MICROPY_SYS_LED_GPIO pin_GP25
|
|
||||||
#define MICROPY_SYS_LED_PIN_NUM PIN_21 // GP25 (SOP2)
|
|
||||||
#define MICROPY_SAFE_BOOT_PIN_NUM PIN_18 // GP28
|
|
||||||
#define MICROPY_SYS_LED_PORT_PIN GPIO_PIN_1
|
|
||||||
#define MICROPY_SAFE_BOOT_PORT_PIN GPIO_PIN_4
|
|
||||||
|
|
||||||
#define MICROPY_PORT_SFLASH_BLOCK_COUNT 96
|
|
@ -1,25 +0,0 @@
|
|||||||
L2,GP2
|
|
||||||
L3,GP1
|
|
||||||
L4,GP23
|
|
||||||
L5,GP24
|
|
||||||
L6,GP11
|
|
||||||
L7,GP12
|
|
||||||
L8,GP13
|
|
||||||
L9,GP14
|
|
||||||
L10,GP15
|
|
||||||
L11,GP16
|
|
||||||
L12,GP17
|
|
||||||
L13,GP22
|
|
||||||
L14,GP28
|
|
||||||
R4,GP10
|
|
||||||
R5,GP9
|
|
||||||
R6,GP8
|
|
||||||
R7,GP7
|
|
||||||
R8,GP6
|
|
||||||
R9,GP30
|
|
||||||
R10,GP31
|
|
||||||
R11,GP3
|
|
||||||
R12,GP0
|
|
||||||
R13,GP4
|
|
||||||
R14,GP5
|
|
||||||
HBL,GP25
|
|
|
@ -1,66 +0,0 @@
|
|||||||
Pin,Name,Default,AF0,AF1,AF2,AF3,AF4,AF5,AF6,AF7,AF8,AF9,AF10,AF11,AF12,AF13,AF14,AF15,ADC
|
|
||||||
1,GP10,GP10,GP10,I2C0_SCL,,TIM3_PWM,,,SD0_CLK,UART1_TX,,,,,TIM0_CC,,,,
|
|
||||||
2,GP11,GP11,GP11,I2C0_SDA,,TIM3_PWM,pXCLK(XVCLK),,SD0_CMD,UART1_RX,,,,,TIM1_CC,I2S0_FS,,,
|
|
||||||
3,GP12,GP12,GP12,,,I2S0_CLK,pVS(VSYNC),I2C0_SCL,,UART0_TX,,,,,TIM1_CC,,,,
|
|
||||||
4,GP13,GP13,GP13,,,,pHS(HSYNC),I2C0_SDA,,UART0_RX,,,,,TIM2_CC,,,,
|
|
||||||
5,GP14,GP14,GP14,,,,pDATA8(CAM_D4),I2C0_SCL,,SPI0_CLK,,,,,TIM2_CC,,,,
|
|
||||||
6,GP15,GP15,GP15,,,,pDATA9(CAM_D5),I2C0_SDA,,SPI0_MISO,SD0_DAT0,,,,,TIM3_CC,,,
|
|
||||||
7,GP16,GP16,GP16,,,,pDATA10(CAM_D6),UART1_TX,,SPI0_MOSI,SD0_CLK,,,,,TIM3_CC,,,
|
|
||||||
8,GP17,GP17,GP17,,,,pDATA11(CAM_D7),UART1_RX,,SPI0_CS0,SD0_CMD,,,,,,,,
|
|
||||||
9,VDD_DIG1,VDD_DIG1,VDD_DIG1,,,,,,,,,,,,,,,,
|
|
||||||
10,VIN_IO1,VIN_IO1,VIN_IO1,,,,,,,,,,,,,,,,
|
|
||||||
11,FLASH_SPI_CLK,FLASH_SPI_CLK,FLASH_SPI_CLK,,,,,,,,,,,,,,,,
|
|
||||||
12,FLASH_SPI_DOUT,FLASH_SPI_DOUT,FLASH_SPI_DOUT,,,,,,,,,,,,,,,,
|
|
||||||
13,FLASH_SPI_DIN,FLASH_SPI_DIN,FLASH_SPI_DIN,,,,,,,,,,,,,,,,
|
|
||||||
14,FLASH_SPI_CS,FLASH_SPI_CS,FLASH_SPI_CS,,,,,,,,,,,,,,,,
|
|
||||||
15,GP22,GP22,GP22,,,,,TIM2_CC,,I2S0_FS,,,,,,,,,
|
|
||||||
16,GP23,TDI,GP23,TDI,UART1_TX,,,,,,,I2C0_SCL,,,,,,,
|
|
||||||
17,GP24,TDO,GP24,TDO,UART1_RX,,TIM3_CC,TIM0_PWM,I2S0_FS,,,I2C0_SDA,,,,,,,
|
|
||||||
18,GP28,GP28,GP28,,,,,,,,,,,,,,,,
|
|
||||||
19,TCK,TCK,,TCK,,,,,,,TIM1_PWM,,,,,,,,
|
|
||||||
20,GP29,TMS,GP29,TMS,,,,,,,,,,,,,,,
|
|
||||||
21,GP25,SOP2,GP25,,I2S0_FS,,,,,,,TIM1_PWM,,,,,,,
|
|
||||||
22,WLAN_XTAL_N,WLAN_XTAL_N,WLAN_XTAL_N,,,,,,,,,,,,,,,,
|
|
||||||
23,WLAN_XTAL_P,WLAN_XTAL_P,WLAN_XTAL_P,,,,,,,,,,,,,,,,
|
|
||||||
24,VDD_PLL,VDD_PLL,VDD_PLL,,,,,,,,,,,,,,,,
|
|
||||||
25,LDO_IN2,LDO_IN2,LDO_IN2,,,,,,,,,,,,,,,,
|
|
||||||
26,NC,NC,NC,,,,,,,,,,,,,,,,
|
|
||||||
27,NC,NC,NC,,,,,,,,,,,,,,,,
|
|
||||||
28,NC,NC,NC,,,,,,,,,,,,,,,,
|
|
||||||
29,ANTSEL1,ANTSEL1,ANTSEL1,,,,,,,,,,,,,,,,
|
|
||||||
30,ANTSEL2,ANTSEL2,ANTSEL2,,,,,,,,,,,,,,,,
|
|
||||||
31,RF_BG,RF_BG,RF_BG,,,,,,,,,,,,,,,,
|
|
||||||
32,nRESET,nRESET,nRESET,,,,,,,,,,,,,,,,
|
|
||||||
33,VDD_PA_IN,VDD_PA_IN,VDD_PA_IN,,,,,,,,,,,,,,,,
|
|
||||||
34,SOP1,SOP1,SOP1,,,,,,,,,,,,,,,,
|
|
||||||
35,SOP0,SOP0,SOP0,,,,,,,,,,,,,,,,
|
|
||||||
36,LDO_IN1,LDO_IN1,LDO_IN1,,,,,,,,,,,,,,,,
|
|
||||||
37,VIN_DCDC_ANA,VIN_DCDC_ANA,VIN_DCDC_ANA,,,,,,,,,,,,,,,,
|
|
||||||
38,DCDC_ANA_SW,DCDC_ANA_SW,DCDC_ANA_SW,,,,,,,,,,,,,,,,
|
|
||||||
39,VIN_DCDC_PA,VIN_DCDC_ PA,VIN_DCDC_PA,,,,,,,,,,,,,,,,
|
|
||||||
40,DCDC_PA_SW_P,DCDC_PA_SW_P,DCDC_PA_SW_P,,,,,,,,,,,,,,,,
|
|
||||||
41,DCDC_PA_SW_N,DCDC_PA_SW_N,DCDC_PA_SW_N,,,,,,,,,,,,,,,,
|
|
||||||
42,DCDC_PA_OUT,DCDC_PA_O UT,DCDC_PA_O UT,,,,,,,,,,,,,,,,
|
|
||||||
43,DCDC_DIG_SW,DCDC_DIG_ SW,DCDC_DIG_ SW,,,,,,,,,,,,,,,,
|
|
||||||
44,VIN_DCDC_DIG,VIN_DCDC_ DIG,VIN_DCDC_ DIG,,,,,,,,,,,,,,,,
|
|
||||||
45,GP31,DCDC_ANA2_SW_P,GP31,,UART1_RX,,,,I2S0_DAT0,SPI0_CLK,,UART0_RX,,,I2S0_FS,,,,
|
|
||||||
46,DCDC_ANA2_SW_N,DCDC_ANA2_SW_N,DCDC_ANA2_SW_N,,,,,,,,,,,,,,,,
|
|
||||||
47,VDD_ANA2,VDD_ANA2,VDD_ANA2,,,,,,,,,,,,,,,,
|
|
||||||
48,VDD_ANA1,VDD_ANA1,VDD_ANA1,,,,,,,,,,,,,,,,
|
|
||||||
49,VDD_RAM,VDD_RAM,VDD_RAM,,,,,,,,,,,,,,,,
|
|
||||||
50,GP0,GP0,GP0,,,UART0_RTS,I2S0_DAT0,,I2S0_DAT1,TIM0_CC,,SPI0_CS0,UART1_RTS,,UART0_CTS,,,,
|
|
||||||
51,RTC_XTAL_P,RTC_XTAL_P,RTC_XTAL_P,,,,,,,,,,,,,,,,
|
|
||||||
52,RTC_XTAL_N,RTC_XTAL_N,GP32,,I2S0_CLK,,I2S0_DAT0,,UART0_RTS,,SPI0_MOSI,,,,,,,,
|
|
||||||
53,GP30,GP30,GP30,,I2S0_CLK,I2S0_FS,TIM2_CC,,,SPI0_MISO,,UART0_TX,,,,,,,
|
|
||||||
54,VIN_IO2,VIN_IO2,VIN_IO2,,,,,,,,,,,,,,,,
|
|
||||||
55,GP1,GP1,GP1,,,UART0_TX,pCLK (PIXCLK),,UART1_TX,TIM0_CC,,,,,,,,,
|
|
||||||
56,VDD_DIG2,VDD_DIG2,VDD_DIG2,,,,,,,,,,,,,,,,
|
|
||||||
57,GP2,GP2,GP2,,,UART0_RX,,,UART1_RX,TIM1_CC,,,,,,,,,ADC0_CH0
|
|
||||||
58,GP3,GP3,GP3,,,,pDATA7(CAM_D3),,UART1_TX,,,,,,,,,,ADC0_CH1
|
|
||||||
59,GP4,GP4,GP4,,,,pDATA6(CAM_D2),,UART1_RX,,,,,,,,,,ADC0_CH2
|
|
||||||
60,GP5,GP5,GP5,,,,pDATA5(CAM_D1),,I2S0_DAT1,TIM2_CC,,,,,,,,,ADC0_CH3
|
|
||||||
61,GP6,GP6,GP6,,,UART1_CTS,pDATA4(CAM_D0),UART0_RTS,UART0_CTS,TIM3_CC,,,,,,,,,
|
|
||||||
62,GP7,GP7,GP7,,,UART1_RTS,,,,,,,UART0_RTS,UART0_TX,,I2S0_CLK,,,
|
|
||||||
63,GP8,GP8,GP8,,,,,,SD0_IRQ,I2S0_FS,,,,,TIM3_CC,,,,
|
|
||||||
64,GP9,GP9,GP9,,,TIM2_PWM,,,SD0_DAT0,I2S0_DAT0,,,,,TIM0_CC,,,,
|
|
||||||
65,GND_TAB,GND_TAB,GND_TAB,,,,,,,,,,,,,,,,
|
|
|
@ -1,69 +0,0 @@
|
|||||||
/*
|
|
||||||
* This file is part of the MicroPython project, http://micropython.org/
|
|
||||||
*
|
|
||||||
* The MIT License (MIT)
|
|
||||||
*
|
|
||||||
* Copyright (c) 2013, 2014 Damien P. George
|
|
||||||
* Copyright (c) 2015 Daniel Campora
|
|
||||||
*
|
|
||||||
* 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.
|
|
||||||
*/
|
|
||||||
|
|
||||||
// cc3200_prefix.c becomes the initial portion of the generated pins file.
|
|
||||||
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
#include "py/mpconfig.h"
|
|
||||||
#include "py/obj.h"
|
|
||||||
#include "inc/hw_types.h"
|
|
||||||
#include "inc/hw_memmap.h"
|
|
||||||
#include "pin.h"
|
|
||||||
#include "gpio.h"
|
|
||||||
#include "pybpin.h"
|
|
||||||
|
|
||||||
|
|
||||||
#define AF(af_name, af_idx, af_fn, af_unit, af_type) \
|
|
||||||
{ \
|
|
||||||
.name = MP_QSTR_ ## af_name, \
|
|
||||||
.idx = (af_idx), \
|
|
||||||
.fn = PIN_FN_ ## af_fn, \
|
|
||||||
.unit = (af_unit), \
|
|
||||||
.type = PIN_TYPE_ ## af_fn ## _ ## af_type, \
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
#define PIN(p_pin_name, p_port, p_bit, p_pin_num, p_af_list, p_num_afs) \
|
|
||||||
{ \
|
|
||||||
{ &pin_type }, \
|
|
||||||
.name = MP_QSTR_ ## p_pin_name, \
|
|
||||||
.port = PORT_A ## p_port, \
|
|
||||||
.af_list = (p_af_list), \
|
|
||||||
.pull = PIN_TYPE_STD, \
|
|
||||||
.bit = (p_bit), \
|
|
||||||
.pin_num = (p_pin_num), \
|
|
||||||
.af = PIN_MODE_0, \
|
|
||||||
.strength = PIN_STRENGTH_4MA, \
|
|
||||||
.mode = GPIO_DIR_MODE_IN, \
|
|
||||||
.num_afs = (p_num_afs), \
|
|
||||||
.value = 0, \
|
|
||||||
.used = false, \
|
|
||||||
.irq_trigger = 0, \
|
|
||||||
.irq_flags = 0, \
|
|
||||||
}
|
|
@ -1,233 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
"""Generates the pins file for the CC3200."""
|
|
||||||
|
|
||||||
from __future__ import print_function
|
|
||||||
|
|
||||||
import argparse
|
|
||||||
import sys
|
|
||||||
import csv
|
|
||||||
|
|
||||||
|
|
||||||
SUPPORTED_AFS = { 'UART': ('TX', 'RX', 'RTS', 'CTS'),
|
|
||||||
'SPI': ('CLK', 'MOSI', 'MISO', 'CS0'),
|
|
||||||
#'I2S': ('CLK', 'FS', 'DAT0', 'DAT1'),
|
|
||||||
'I2C': ('SDA', 'SCL'),
|
|
||||||
'TIM': ('PWM'),
|
|
||||||
'SD': ('CLK', 'CMD', 'DAT0'),
|
|
||||||
'ADC': ('CH0', 'CH1', 'CH2', 'CH3')
|
|
||||||
}
|
|
||||||
|
|
||||||
def parse_port_pin(name_str):
|
|
||||||
"""Parses a string and returns a (port, gpio_bit) tuple."""
|
|
||||||
if len(name_str) < 3:
|
|
||||||
raise ValueError("Expecting pin name to be at least 3 characters")
|
|
||||||
if name_str[:2] != 'GP':
|
|
||||||
raise ValueError("Expecting pin name to start with GP")
|
|
||||||
if not name_str[2:].isdigit():
|
|
||||||
raise ValueError("Expecting numeric GPIO number")
|
|
||||||
port = int(int(name_str[2:]) / 8)
|
|
||||||
gpio_bit = 1 << int(int(name_str[2:]) % 8)
|
|
||||||
return (port, gpio_bit)
|
|
||||||
|
|
||||||
|
|
||||||
class AF:
|
|
||||||
"""Holds the description of an alternate function"""
|
|
||||||
def __init__(self, name, idx, fn, unit, type):
|
|
||||||
self.name = name
|
|
||||||
self.idx = idx
|
|
||||||
if self.idx > 15:
|
|
||||||
self.idx = -1
|
|
||||||
self.fn = fn
|
|
||||||
self.unit = unit
|
|
||||||
self.type = type
|
|
||||||
|
|
||||||
def print(self):
|
|
||||||
print (' AF({:16s}, {:4d}, {:8s}, {:4d}, {:8s}), // {}'.format(self.name, self.idx, self.fn, self.unit, self.type, self.name))
|
|
||||||
|
|
||||||
|
|
||||||
class Pin:
|
|
||||||
"""Holds the information associated with a pin."""
|
|
||||||
def __init__(self, name, port, gpio_bit, pin_num):
|
|
||||||
self.name = name
|
|
||||||
self.port = port
|
|
||||||
self.gpio_bit = gpio_bit
|
|
||||||
self.pin_num = pin_num
|
|
||||||
self.board_pin = False
|
|
||||||
self.afs = []
|
|
||||||
|
|
||||||
def add_af(self, af):
|
|
||||||
self.afs.append(af)
|
|
||||||
|
|
||||||
def print(self):
|
|
||||||
print('// {}'.format(self.name))
|
|
||||||
if len(self.afs):
|
|
||||||
print('const pin_af_t pin_{}_af[] = {{'.format(self.name))
|
|
||||||
for af in self.afs:
|
|
||||||
af.print()
|
|
||||||
print('};')
|
|
||||||
print('pin_obj_t pin_{:4s} = PIN({:6s}, {:1d}, {:3d}, {:2d}, pin_{}_af, {});\n'.format(
|
|
||||||
self.name, self.name, self.port, self.gpio_bit, self.pin_num, self.name, len(self.afs)))
|
|
||||||
else:
|
|
||||||
print('pin_obj_t pin_{:4s} = PIN({:6s}, {:1d}, {:3d}, {:2d}, NULL, 0);\n'.format(
|
|
||||||
self.name, self.name, self.port, self.gpio_bit, self.pin_num))
|
|
||||||
|
|
||||||
def print_header(self, hdr_file):
|
|
||||||
hdr_file.write('extern pin_obj_t pin_{:s};\n'.format(self.name))
|
|
||||||
|
|
||||||
|
|
||||||
class Pins:
|
|
||||||
def __init__(self):
|
|
||||||
self.board_pins = [] # list of pin objects
|
|
||||||
|
|
||||||
def find_pin(self, port, gpio_bit):
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.port == port and pin.gpio_bit == gpio_bit:
|
|
||||||
return pin
|
|
||||||
|
|
||||||
def find_pin_by_num(self, pin_num):
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.pin_num == pin_num:
|
|
||||||
return pin
|
|
||||||
|
|
||||||
def find_pin_by_name(self, name):
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.name == name:
|
|
||||||
return pin
|
|
||||||
|
|
||||||
def parse_af_file(self, filename, pin_col, pinname_col, af_start_col):
|
|
||||||
with open(filename, 'r') as csvfile:
|
|
||||||
rows = csv.reader(csvfile)
|
|
||||||
for row in rows:
|
|
||||||
try:
|
|
||||||
(port_num, gpio_bit) = parse_port_pin(row[pinname_col])
|
|
||||||
except:
|
|
||||||
continue
|
|
||||||
if not row[pin_col].isdigit():
|
|
||||||
raise ValueError("Invalid pin number {:s} in row {:s}".format(row[pin_col]), row)
|
|
||||||
# Pin numbers must start from 0 when used with the TI API
|
|
||||||
pin_num = int(row[pin_col]) - 1;
|
|
||||||
pin = Pin(row[pinname_col], port_num, gpio_bit, pin_num)
|
|
||||||
self.board_pins.append(pin)
|
|
||||||
af_idx = 0
|
|
||||||
for af in row[af_start_col:]:
|
|
||||||
af_splitted = af.split('_')
|
|
||||||
fn_name = af_splitted[0].rstrip('0123456789')
|
|
||||||
if fn_name in SUPPORTED_AFS:
|
|
||||||
type_name = af_splitted[1]
|
|
||||||
if type_name in SUPPORTED_AFS[fn_name]:
|
|
||||||
unit_idx = af_splitted[0][-1]
|
|
||||||
pin.add_af(AF(af, af_idx, fn_name, int(unit_idx), type_name))
|
|
||||||
af_idx += 1
|
|
||||||
|
|
||||||
def parse_board_file(self, filename, cpu_pin_col):
|
|
||||||
with open(filename, 'r') as csvfile:
|
|
||||||
rows = csv.reader(csvfile)
|
|
||||||
for row in rows:
|
|
||||||
# Pin numbers must start from 0 when used with the TI API
|
|
||||||
if row[cpu_pin_col].isdigit():
|
|
||||||
pin = self.find_pin_by_num(int(row[cpu_pin_col]) - 1)
|
|
||||||
else:
|
|
||||||
pin = self.find_pin_by_name(row[cpu_pin_col])
|
|
||||||
if pin:
|
|
||||||
pin.board_pin = True
|
|
||||||
|
|
||||||
def print_named(self, label, pins):
|
|
||||||
print('')
|
|
||||||
print('STATIC const mp_rom_map_elem_t pin_{:s}_pins_locals_dict_table[] = {{'.format(label))
|
|
||||||
for pin in pins:
|
|
||||||
if pin.board_pin:
|
|
||||||
print(' {{ MP_ROM_QSTR(MP_QSTR_{:6s}), MP_ROM_PTR(&pin_{:6s}) }},'.format(pin.name, pin.name))
|
|
||||||
print('};')
|
|
||||||
print('MP_DEFINE_CONST_DICT(pin_{:s}_pins_locals_dict, pin_{:s}_pins_locals_dict_table);'.format(label, label));
|
|
||||||
|
|
||||||
def print(self):
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.board_pin:
|
|
||||||
pin.print()
|
|
||||||
self.print_named('board', self.board_pins)
|
|
||||||
print('')
|
|
||||||
|
|
||||||
def print_header(self, hdr_filename):
|
|
||||||
with open(hdr_filename, 'wt') as hdr_file:
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.board_pin:
|
|
||||||
pin.print_header(hdr_file)
|
|
||||||
|
|
||||||
def print_qstr(self, qstr_filename):
|
|
||||||
with open(qstr_filename, 'wt') as qstr_file:
|
|
||||||
pin_qstr_set = set([])
|
|
||||||
af_qstr_set = set([])
|
|
||||||
for pin in self.board_pins:
|
|
||||||
if pin.board_pin:
|
|
||||||
pin_qstr_set |= set([pin.name])
|
|
||||||
for af in pin.afs:
|
|
||||||
af_qstr_set |= set([af.name])
|
|
||||||
print('// Board pins', file=qstr_file)
|
|
||||||
for qstr in sorted(pin_qstr_set):
|
|
||||||
print('Q({})'.format(qstr), file=qstr_file)
|
|
||||||
print('\n// Pin AFs', file=qstr_file)
|
|
||||||
for qstr in sorted(af_qstr_set):
|
|
||||||
print('Q({})'.format(qstr), file=qstr_file)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
parser = argparse.ArgumentParser(
|
|
||||||
prog="make-pins.py",
|
|
||||||
usage="%(prog)s [options] [command]",
|
|
||||||
description="Generate board specific pin file"
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"-a", "--af",
|
|
||||||
dest="af_filename",
|
|
||||||
help="Specifies the alternate function file for the chip",
|
|
||||||
default="cc3200_af.csv"
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"-b", "--board",
|
|
||||||
dest="board_filename",
|
|
||||||
help="Specifies the board file",
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"-p", "--prefix",
|
|
||||||
dest="prefix_filename",
|
|
||||||
help="Specifies beginning portion of generated pins file",
|
|
||||||
default="cc3200_prefix.c"
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"-q", "--qstr",
|
|
||||||
dest="qstr_filename",
|
|
||||||
help="Specifies name of generated qstr header file",
|
|
||||||
default="build/pins_qstr.h"
|
|
||||||
)
|
|
||||||
parser.add_argument(
|
|
||||||
"-r", "--hdr",
|
|
||||||
dest="hdr_filename",
|
|
||||||
help="Specifies name of generated pin header file",
|
|
||||||
default="build/pins.h"
|
|
||||||
)
|
|
||||||
args = parser.parse_args(sys.argv[1:])
|
|
||||||
|
|
||||||
pins = Pins()
|
|
||||||
|
|
||||||
print('// This file was automatically generated by make-pins.py')
|
|
||||||
print('//')
|
|
||||||
if args.af_filename:
|
|
||||||
print('// --af {:s}'.format(args.af_filename))
|
|
||||||
pins.parse_af_file(args.af_filename, 0, 1, 3)
|
|
||||||
|
|
||||||
if args.board_filename:
|
|
||||||
print('// --board {:s}'.format(args.board_filename))
|
|
||||||
pins.parse_board_file(args.board_filename, 1)
|
|
||||||
|
|
||||||
if args.prefix_filename:
|
|
||||||
print('// --prefix {:s}'.format(args.prefix_filename))
|
|
||||||
print('')
|
|
||||||
with open(args.prefix_filename, 'r') as prefix_file:
|
|
||||||
print(prefix_file.read())
|
|
||||||
pins.print()
|
|
||||||
pins.print_qstr(args.qstr_filename)
|
|
||||||
pins.print_header(args.hdr_filename)
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
@ -1,50 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
if [ "$#" -ne 1 ]; then
|
|
||||||
echo "Usage: bootgen.sh *build dir*"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
BUILD=$1
|
|
||||||
|
|
||||||
# Re-locator Path
|
|
||||||
RELOCATOR=bootmgr/relocator
|
|
||||||
|
|
||||||
# Build location
|
|
||||||
BOOTMGR=${BUILD}
|
|
||||||
|
|
||||||
# Check for re-locator binary
|
|
||||||
if [ ! -f $RELOCATOR/relocator.bin ]; then
|
|
||||||
|
|
||||||
echo "Error : Relocator Not found!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Relocator found..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Check for boot manager binary
|
|
||||||
if [ ! -f $BOOTMGR/bootmgr.bin ]; then
|
|
||||||
|
|
||||||
echo "Error : Boot Manager Not found!"
|
|
||||||
exit 1
|
|
||||||
else
|
|
||||||
echo "Boot Manager found..."
|
|
||||||
fi
|
|
||||||
|
|
||||||
# echo
|
|
||||||
echo "Generating bootloader..."
|
|
||||||
|
|
||||||
# Generate an all 0 bin file
|
|
||||||
dd if=/dev/zero of=__tmp.bin ibs=1 count=256 conv=notrunc >/dev/null 2>&1
|
|
||||||
|
|
||||||
# Generate a 0 padded version of the relocator
|
|
||||||
dd if=$RELOCATOR/relocator.bin of=__tmp.bin ibs=1 conv=notrunc >/dev/null 2>&1
|
|
||||||
|
|
||||||
# Concatenate the re-locator and the boot-manager
|
|
||||||
cat __tmp.bin $BOOTMGR/bootmgr.bin > $BOOTMGR/bootloader.bin
|
|
||||||
|
|
||||||
# Remove the tmp files
|
|
||||||
rm -f __tmp.bin
|
|
||||||
|
|
||||||
# Remove bootmgr.bin
|
|
||||||
rm -f $BOOTMGR/bootmgr.bin
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user