Dan Halbert
5edc59f070
Merge pull request #6337 from jepler/property-storage
...
Optimize flash storage of properties
2022-05-06 09:55:18 -04:00
Dan Halbert
68acd14342
use generic hash routine where possible
2022-05-03 19:11:54 -04:00
Dan Halbert
9717fd235d
make Pin hashable
2022-05-03 15:28:42 -04:00
Jeff Epler
78cf0a90af
Make MP_PROPERTY_GETTER / _GETSET fully declare the property
...
This will enable setting data attributes, namely, the section of the
symbol.
2022-05-03 08:48:53 -05:00
Jeff Epler
31da335cac
Introduce, use MP_PROPERTY_GETTER, _GETSET
...
Later, these can be changed in cunning ways to save flash storage.
2022-05-03 08:48:52 -05:00
mjs513
2e9e29bf1b
Delete Left Over Comments
2022-04-20 04:10:16 -04:00
mjs513
fd41c1ac5b
Update based on PR Comments
2022-04-14 06:45:16 -04:00
mjs513
7a30176b49
Fix Build Errors for Other Boards
2022-04-13 13:44:22 -04:00
root
716497c132
corrected pre-commit errors
2022-04-13 12:04:28 -04:00
root
60e330fb0d
Added Settable Clock for MIMXRT BOARDS
2022-04-13 09:47:55 -04:00
Timon
a1052d5f73
Initial broadcom port for Raspberry Pi
...
This targets the 64-bit CPU Raspberry Pis. The BCM2711 on the Pi 4
and the BCM2837 on the Pi 3 and Zero 2W. There are 64-bit fixes
outside of the ports directory for it.
There are a couple other cleanups that were incidental:
* Use const mcu_pin_obj_t instead of omitting the const. The structs
themselves are const because they are in ROM.
* Use PTR <-> OBJ conversions in more places. They were found when
mp_obj_t was set to an integer type rather than pointer.
* Optimize submodule checkout because the Pi submodules are heavy
and unnecessary for the vast majority of builds.
Fixes #4314
2021-11-22 14:54:44 -08:00
Robert Pafford
65f8804816
Implement reset_reason for raspberrypi port
2021-09-08 18:34:34 -04:00
Rob Capellini
b8f2799609
Convert more modules to use MP_REGISTER_MODULE
...
Convert bitbangio, bitmaptools, _bleio, board, busio, countio, digitalio, framebufferio, frequencyio, gamepadshift, getpass, keypad, math, microcontroller, and msgpack modules to use MP_REGISTER_MODULE.
Related to #5183 .
2021-08-26 21:35:02 -04:00
gamblor21
47db00f0af
Made error message clear and reduce calls
2021-08-19 20:03:49 -05:00
gamblor21
e5dc722176
Fix for int type and pin validation
2021-08-17 19:16:26 -05:00
gamblor21
168ed355b1
Made check function generic
2021-08-17 17:55:26 -05:00
microDev
9ac607dffa
update run-mode
...
- add microcontroller.RunMode.UF2
- add UF2, NORMAL and BOOTLOADER run-modes to esp32s2
2021-07-18 00:00:58 +05:30
Jeff Epler
268717e427
ParallelImageCapture: Switch to taking a list of pins
...
.. adopting validate_pins from RGBMatrix into shared-bindings
.. updating other platforms for API change
2021-06-10 11:15:18 -05:00
Scott Shawcroft
3fda0c0a1b
Fix board builds and use MP_ERROR_TEXT in py and extmod
2021-05-05 17:51:52 -07:00
Scott Shawcroft
f0bb26d70f
Merge MicroPython 1.13 into CircuitPython
2021-05-04 18:06:33 -07:00
Scott Shawcroft
76033d5115
Merge MicroPython v1.11 into CircuitPython
2021-04-26 15:47:41 -07:00
microDev
a52eb88031
run code formatting script
2021-03-15 19:27:36 +05:30
root
e1838ff335
Fix typo in documentation.
2021-01-29 11:57:36 -06:00
root
cfd6ffc649
Adding files for cpu temperature fix
2021-01-28 16:06:30 -06:00
root
ccdc97d23e
Update documentation for microprossors with multiple cpus
2021-01-26 09:47:21 -06:00
Scott Shawcroft
2b4ad1ed03
Fix warnings that come from -O3 (I think)
2021-01-20 19:16:56 -08:00
Scott Shawcroft
733094aead
Add initial RP2040 support
...
The RP2040 is new microcontroller from Raspberry Pi that features
two Cortex M0s and eight PIO state machines that are good for
crunching lots of data. It has 264k RAM and a built in UF2
bootloader too.
Datasheet: https://pico.raspberrypi.org/files/rp2040_datasheet.pdf
2021-01-20 19:16:56 -08:00
Dan Halbert
9391c8f9dd
Make ResetReason and RunReason available
2020-12-06 12:00:00 -05:00
Dan Halbert
65e2fe4654
fix stub problems; touch up doc
2020-11-27 23:27:15 -05:00
Dan Halbert
104a089677
deep sleep working; deep sleep delay when connected
2020-11-26 22:06:37 -05:00
Dan Halbert
f868cc5dd0
some API renaming and bug fixes; fix docs
2020-11-24 23:37:05 -05:00
Dan Halbert
7a45afc549
working, but need to avoid deep sleeping too fast before USB ready
2020-11-23 22:44:53 -05:00
Dan Halbert
a0f1ec3c4a
wip
2020-11-22 19:10:09 -05:00
Dan Halbert
75559f35cc
wip: ResetReason to microcontroller.cpu
2020-11-21 23:29:52 -05:00
Dan Halbert
682054a216
WIP: redo API; not compiled yet
2020-11-19 00:23:27 -05:00
microDev
930cf14dce
Add check for invalid io, function to disable all alarms
2020-10-27 16:17:26 -07:00
microDev
59df1a11ad
Add alarm_touch module
2020-10-27 16:16:52 -07:00
microDev
4d8ffdca8d
restructure alarm modules
2020-10-27 16:15:09 -07:00
microDev
e5ff55b15c
Renamed alarm modules
2020-10-27 16:13:25 -07:00
microDev
05a3f203db
Add function to get time elapsed during sleep
2020-10-27 16:13:25 -07:00
microDev
90b9ec6f2c
Initial Sleep Support
2020-10-27 16:13:22 -07:00
askpatricw
33952023e8
Print package if it exists for pin or module only if it does not
2020-09-25 10:08:26 -07:00
Taku Fukada
56c898da80
Modify some Python stubs
2020-08-07 01:01:28 +09:00
Taku Fukada
d356581651
Fix several type hints
2020-07-27 18:05:13 +09:00
Taku Fukada
54a342a7f5
Add and correct some type hints
2020-07-24 18:20:03 +09:00
Scott Shawcroft
2bd6d05663
Add externs. GCC10 complains about duplicate defines
2020-07-22 16:26:46 -07:00
dherrada
bce77adecd
Added type hints previously missed
2020-07-03 16:03:19 -04:00
dherrada
d0d949cd24
Made every init return None
2020-07-03 14:23:34 -04:00
dherrada
3df03a5650
Made most of the requested changes
2020-07-03 13:49:00 -04:00
dherrada
0a8d9eed45
Added type hints to microcontroller
2020-07-03 10:33:28 -04:00