summaryrefslogtreecommitdiff
path: root/shared-bindings/microcontroller/__init__.c
AgeCommit message (Collapse)Author
2021-03-15run code formatting scriptmicroDev
2021-01-29Fix typo in documentation.root
2021-01-28Adding files for cpu temperature fixroot
2020-12-06Make ResetReason and RunReason availableDan Halbert
2020-11-27fix stub problems; touch up docDan Halbert
2020-11-23working, but need to avoid deep sleeping too fast before USB readyDan Halbert
2020-11-22wipDan Halbert
2020-11-21wip: ResetReason to microcontroller.cpuDan Halbert
2020-11-19WIP: redo API; not compiled yetDan Halbert
2020-10-27Add check for invalid io, function to disable all alarmsmicroDev
2020-10-27Add alarm_touch modulemicroDev
2020-10-27restructure alarm modulesmicroDev
2020-10-27Add function to get time elapsed during sleepmicroDev
2020-10-27Initial Sleep SupportmicroDev
2020-08-07Modify some Python stubsTaku Fukada
2020-07-27Fix several type hintsTaku Fukada
2020-07-24Add and correct some type hintsTaku Fukada
2020-07-03Added type hints previously misseddherrada
2020-05-27watchdogtimer: refactor to new apiSean Cross
This refactors the WatchDogTimer API to use the format proposed in https://github.com/adafruit/circuitpython/pull/2933#issuecomment-632268227 Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-27watchdog: rename module from `wdt` and move to `microcontroller`Sean Cross
This also places it under the `microcontroller` object. Signed-off-by: Sean Cross <sean@xobs.io>
2020-05-12Swap sphinx to autoapi and the inline stubsScott Shawcroft
2020-05-07Did math, microcontroller, and multiterminaldherrada
2019-05-30Improve rST consistency for rst2pyi useScott Shawcroft
2018-08-07Support internationalisation.Scott Shawcroft
2018-02-27Merge remote-tracking branch 'adafruit/2.x' into merge_2xScott Shawcroft
2018-02-20Delete a bunch of docs, drivers and examples not relevant to CircuitPython.Scott Shawcroft
This fixes #345 and fixes #215.
2018-01-02merge from 2.2.0 + fix up board defsDan Halbert
2017-12-14Documentation Updates (mcu.delay() and Design Guide) (#481)sommersoft
/docs/design_guide: added links to firmware build learning guides for SAMD21 & ESP8266. Changes were placed in the "Adding native modules" section, since that seemed to me the best place based on target audience. Updated documentation for `delay()` which fixes #243.
2017-12-05Introduce reset mechanics to microcontroller.Scott Shawcroft
This allows one to configure how a subsequent reset will behave and also trigger a reset. Fixes #350 and fixes #173
2017-09-06Add Processor to microcontroller documentation TOC (#237)Dan Halbert
2017-08-31Add microcontroller.cpu.temperature, for use as a simple sensor on minimal ↵Dan Halbert
boards. (#211) * Add microcontroller.cpu, the sole instance of microcontroller.Processor. microcontroller.cpu.frequency is the clock frequency, in Hz. microcontroller.cpu.temperature is the reading from the internal temperature sensor, in Celsius. None if not available. * Squeeze firmware size by using -finline-limit. Otherwise non-Express builds were slightly too big. * Update submodules. * Fix documentation glitches
2017-08-25atmel-samd: Introduce a nvm module for non-volatile byte-level memory ↵Scott Shawcroft
access. (#203) * atmel-samd: Introduce a nvm module for non-volatile byte-level memory access. This allows for persisting small configuration values even when the file system is read-only from CircuitPython. Fixes #160 * Review feedback: * Add tests. * Fix non-zero index. * Fix len()
2017-04-12atmel-samd: Rework status LED implementationScott Shawcroft
* Track status pin use by user code separately so it can take over the pins and then give them back. * Switch to hardware SPI for APA102 on Gemma and Trinket. * Merge microcontroller/types.h into microcontroller/Pin.h to better match approach going forwards.
2017-01-05Improve docs and update to CircuitPython.Scott Shawcroft
2016-12-02Add try_lock and unlock to I2C and SPI classes to make sure thingsScott Shawcroft
are shared well between threads and underlying MicroPython (SPI Flash for example.) It is recommended to use the bus device classes to manage the locks and other transaction state. https://github.com/adafruit/Adafruit_MicroPython_BusDevice Fixed #58 Fixed #59 Fixed #60
2016-11-21This introduces an alternative hardware API called nativeio structured ↵Scott Shawcroft
around different functions that are typically accelerated by native hardware. Its not meant to reflect the structure of the hardware. Docs are here: http://tannewt-micropython.readthedocs.io/en/microcontroller/ It differs from upstream's machine in the following ways: * Python API is identical across ports due to code structure. (Lives in shared-bindings) * Focuses on abstracting common functionality (AnalogIn) and not representing structure (ADC). * Documentation lives with code making it easy to ensure they match. * Pin is split into references (board.D13 and microcontroller.pin.PA17) and functionality (DigitalInOut). * All nativeio classes claim underlying hardware resources when inited on construction, support Context Managers (aka with statements) and have deinit methods which release the claimed hardware. * All constructors take pin references rather than peripheral ids. Its up to the implementation to find hardware or throw and exception.