Jeff Epler
85f0048d22
mp_bytecode_print_str: avoid undefined behavior
...
Left shift of negative numbers is undefined in the "C" standard. Multiplying
by 128 has the intended effect (in the absence of integer overflow, anyway),
can be implemented using the same shift instruction, but does not invoke
undefined behavior.
This problem was found using clang 7's scan-build static analyzer.
2019-10-08 11:16:11 +09:00
Jeff Epler
46b6870ffa
gc_alloc: Remove redundant 'collected' assignment
...
The remaining assignment was added in upstream micropython; the
deleted assignment was added in circuitpython as part of the long-lived
object area feature. During the merge, the redundant assignment
was not removed.
(since collected is a local variable and no pointers to it escape,
it doesn't seem possible for the placement of the assignment before
or after GC_ENTER() is important)
This diagnostic was found by clang 7's scan-build static analyzer.
2019-10-08 10:54:13 +09:00
Jeff Epler
0d96f1906b
mp_binary_get_int: avoid undefined behavior
...
Left shift of negative numbers is undefined in the "C" standard. Multiplying
by 256 has the intended effect (in the absence of integer overflow, anyway),
can be implemented using the same shift instruction, but does not invoke
undefined behavior.
This problem was found using clang 7's scan-build static analyzer.
2019-10-08 10:48:25 +09:00
Scott Shawcroft
4eb11fbde6
Merge pull request #2198 from kamtom480/circuitpython-msc-max-packet-size
...
Add a way to change max packet size for MSC
2019-10-07 13:58:06 -07:00
Hierophect
cc3a17845c
Fix USB issues, frequency macro, F412 tests
2019-10-07 14:22:12 -04:00
Dan Halbert
45c57db0ed
Merge pull request #2200 from kickbutts/patch-1
...
Update de_DE.po
2019-10-07 11:58:06 -04:00
hierophect
59ed879c8f
Merge pull request #2197 from hierophect/always-build-modules
...
Sort some modules into ALWAYS-BUILD in mpconfig
2019-10-07 09:09:28 -04:00
Kamil Tomaszewski
a020f203dc
Update usb_descriptor submodule
2019-10-07 13:44:05 +02:00
Kamil Tomaszewski
badf32e88d
Add HID OUT
2019-10-07 13:40:44 +02:00
Kamil Tomaszewski
1205d3e305
Add validation
2019-10-07 12:31:42 +02:00
Kamil Tomaszewski
7aefcc449a
Add an alternative way to number the USB endpoints
...
Two options available:
- relative numbering (USB_RELATIVE_EP_NUM = 1) - default
- absolute numbering (USB_RELATIVE_EP_NUM = 0) - new!
2019-10-07 12:31:42 +02:00
Thomas Konnemann
4d8aae12b5
Update de_DE.po
2019-10-05 12:42:40 +02:00
Hierophect
e017a5925d
Revert modules with missed dependence
2019-10-04 15:04:24 -04:00
Hierophect
0b85172ba6
WIP
2019-10-04 14:37:18 -04:00
Hierophect
51901f7de0
Add peripheral definitions
2019-10-04 11:42:38 -04:00
Kamil Tomaszewski
ef42abb818
Add a way to change max packet size for MSC
2019-10-04 13:49:33 +02:00
Hierophect
dc4abb922b
Revert accidental OS delete
2019-10-03 15:40:46 -04:00
hierophect
f4922a530a
Merge pull request #2186 from hierophect/stm32-spi-flash
...
STM32: SPI Flash
2019-10-03 15:32:56 -04:00
Hierophect
7a2f60c43d
Add Always Build flag, remove redundancy
2019-10-03 15:23:45 -04:00
Hierophect
eacdb1da6e
Disable timeout, remove redundancy
2019-10-03 14:43:25 -04:00
Scott Shawcroft
6827354527
Merge pull request #2185 from dhalbert/xac-gamepad-fixes
...
Update tinyusb to fix gamepad;add HID OUT interface descriptor
2019-10-03 11:35:10 -07:00
Dan Halbert
463415a7ef
update stm32f4 port to use tinyusb synopsys tree
2019-10-03 13:26:03 -04:00
Hierophect
83c49a5c80
Increase SPI timeout duration
2019-10-03 09:14:54 -04:00
Hierophect
8a4bbae077
Fix typo causing parsing error
2019-10-02 18:18:52 -04:00
Hierophect
5a6194839b
Timeout fix for I2C device testing
2019-10-02 17:59:42 -04:00
Hierophect
86305bfdfe
Make all errors value errors
2019-10-02 17:32:54 -04:00
Hierophect
9aa6d215fd
Add some definitions for when F412 can be implemented
2019-10-02 16:03:22 -04:00
Hierophect
5a2f82095a
Implement SPI flash settings, bugfix for SPI pin assignment
2019-10-02 15:17:49 -04:00
Scott Shawcroft
22b7050c4c
Merge pull request #2180 from sommersoft/support_matrix_defaults
...
Docs: Support Matrix - Fix Dependent Modules; Add Minimal/Default Build
2019-10-02 10:04:50 -07:00
sommersoft
01ec3b995e
use 'any()' vs 'len == 1 & == False'
2019-10-02 00:02:49 -05:00
Dan Halbert
05038ea1e5
Update tinyusb to fix gamepad;add HID OUT interface descriptor
2019-10-01 15:57:16 -04:00
Scott Shawcroft
d6e987e587
Merge pull request #2182 from hierophect/stm32-spi
...
STM32: SPI Support
2019-09-30 20:00:23 -07:00
Hierophect
b66700720b
improve error readability
2019-09-30 18:05:07 -04:00
Scott Shawcroft
3ff53a64cb
Merge pull request #2181 from tannewt/update_frozen
...
Update frozen modules.
2019-09-30 14:23:05 -07:00
Scott Shawcroft
25cefc16a5
Merge pull request #2184 from adafruit/tannewt-patch-1
...
Fail when boards are missing too
2019-09-30 13:40:35 -07:00
Scott Shawcroft
c12c837abd
Improve frozen prep to skip example subdirectories
2019-09-30 13:37:58 -07:00
Scott Shawcroft
8048dcb76c
Update frozon modules.
...
Fixes https://github.com/adafruit/Adafruit_CircuitPython_INA219/issues/12
2019-09-30 13:37:58 -07:00
Scott Shawcroft
060e81ded0
Fail when boards are missing too
2019-09-30 12:09:29 -07:00
Scott Shawcroft
33af5a913e
Merge pull request #2183 from hierophect/stm32-ci-update
...
Update Git CI with STM32 F405 boards
2019-09-30 12:08:45 -07:00
Hierophect
7848d0dbe5
that's right they need to be in order
2019-09-30 14:13:54 -04:00
Hierophect
1a7a235b05
Update CI boards
2019-09-30 13:47:17 -04:00
Hierophect
1f90cffc89
protect against edge case
2019-09-30 13:33:20 -04:00
Hierophect
56eb9666ea
Implement never-reset, fix F412
2019-09-30 11:35:40 -04:00
Hierophect
a475b667b5
Clean up debugging messages, remove shortcuts
2019-09-30 11:04:09 -04:00
Hierophect
492bc3eedc
Expand pin definitions for all boards
2019-09-30 10:45:02 -04:00
Hierophect
e2d0ad6adc
Add settings reconfiguration
2019-09-29 15:01:32 -04:00
Hierophect
bf7b841020
Further reversion
2019-09-29 13:22:12 -04:00
Hierophect
89315999e2
Fix bad returns, revert flash changes
2019-09-29 13:18:43 -04:00
Hierophect
270396a882
Refine SPI settings for testing
2019-09-29 13:01:27 -04:00
sommersoft
c53ad5fe8a
Merge branch 'master' of https://github.com/adafruit/circuitpython into support_matrix_defaults
2019-09-27 23:41:48 -05:00