Three small changes
1. Raise an exception when creating a USB device when host isn't initialized. 2. Mark RP2040 dtcm_bss as NOLOAD since it doesn't need to be loaded (just zeroed.) 3. Fix submodule location for ulab to Jeff's copy.
This commit is contained in:
parent
cfbfd53b00
commit
539f34f7fd
2
.gitmodules
vendored
2
.gitmodules
vendored
@ -106,7 +106,7 @@
|
|||||||
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
|
url = https://github.com/adafruit/Adafruit_CircuitPython_Register.git
|
||||||
[submodule "extmod/ulab"]
|
[submodule "extmod/ulab"]
|
||||||
path = extmod/ulab
|
path = extmod/ulab
|
||||||
url = https://github.com/v923z/micropython-ulab
|
url = https://github.com/jepler/micropython-ulab
|
||||||
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
|
[submodule "frozen/Adafruit_CircuitPython_ESP32SPI"]
|
||||||
path = frozen/Adafruit_CircuitPython_ESP32SPI
|
path = frozen/Adafruit_CircuitPython_ESP32SPI
|
||||||
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
|
url = https://github.com/adafruit/Adafruit_CircuitPython_ESP32SPI
|
||||||
|
@ -1536,6 +1536,10 @@ msgstr ""
|
|||||||
msgid "No timer available"
|
msgid "No timer available"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
#: shared-module/usb/core/Device.c
|
||||||
|
msgid "No usb host port initialized"
|
||||||
|
msgstr ""
|
||||||
|
|
||||||
#: ports/nrf/common-hal/_bleio/__init__.c
|
#: ports/nrf/common-hal/_bleio/__init__.c
|
||||||
msgid "Nordic system firmware out of memory"
|
msgid "Nordic system firmware out of memory"
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
@ -211,7 +211,7 @@ SECTIONS
|
|||||||
_ld_dtcm_data_flash_copy = LOADADDR(.dtcm_data);
|
_ld_dtcm_data_flash_copy = LOADADDR(.dtcm_data);
|
||||||
_ld_dtcm_data_size = SIZEOF(.dtcm_data);
|
_ld_dtcm_data_size = SIZEOF(.dtcm_data);
|
||||||
|
|
||||||
.dtcm_bss :
|
.dtcm_bss (NOLOAD) :
|
||||||
{
|
{
|
||||||
. = ALIGN(4);
|
. = ALIGN(4);
|
||||||
|
|
||||||
|
@ -51,6 +51,10 @@ void tuh_umount_cb(uint8_t dev_addr) {
|
|||||||
STATIC xfer_result_t _xfer_result;
|
STATIC xfer_result_t _xfer_result;
|
||||||
STATIC size_t _actual_len;
|
STATIC size_t _actual_len;
|
||||||
bool common_hal_usb_core_device_construct(usb_core_device_obj_t *self, uint8_t device_number) {
|
bool common_hal_usb_core_device_construct(usb_core_device_obj_t *self, uint8_t device_number) {
|
||||||
|
if (!tuh_inited()) {
|
||||||
|
mp_raise_RuntimeError(translate("No usb host port initialized"));
|
||||||
|
}
|
||||||
|
|
||||||
if (device_number == 0 || device_number > CFG_TUH_DEVICE_MAX + CFG_TUH_HUB) {
|
if (device_number == 0 || device_number > CFG_TUH_DEVICE_MAX + CFG_TUH_HUB) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user