summaryrefslogtreecommitdiffstatshomepage
path: root/cc3200/mods/pybtimer.c
Commit message (Collapse)AuthorAge
* cc3200: Improve robustness of WLAN during sleep modes.danicampora2016-02-21
|
* test/wipy: Add Timer class tests.danicampora2016-02-21
|
* cc3200: Simplify the Timer API and correct the documents.danicampora2016-02-21
| | | | | | Make the PWM duty cycle configurable from 0.00 to 100.00 by accepting values from 0 to 10000. Add automatic Pin assignment when operating in PWM mode.
* cc3200: Finally fix the Timer class API.danicampora2016-02-21
| | | | | | Properly calculate the period and the prescaler, this now allows to set the PWM frequency down to 5Hz. Make Timer IDs go from 0 to 3. Add the trigger definitions for the channel IRQ.
* py: Change first arg of type.make_new from mp_obj_t to mp_obj_type_t*.Damien George2016-01-11
| | | | | | | | The first argument to the type.make_new method is naturally a uPy type, and all uses of this argument cast it directly to a pointer to a type structure. So it makes sense to just have it a pointer to a type from the very beginning (and a const pointer at that). This patch makes such a change, and removes all unnecessary casting to/from mp_obj_t.
* all: Add py/mphal.h and use it in all ports.Damien George2015-10-31
| | | | | | py/mphal.h contains declarations for generic mp_hal_XXX functions, such as stdio and delay/ticks, which ports should provide definitions for. A port will also provide mphalport.h with further HAL declarations.
* cc3200: Rename pyb module to machine.Daniel Campora2015-09-27
|
* cc3200: New irq API, affects all classes that provide the irq method.Daniel Campora2015-09-27
|
* cc3200: New UART API plus related test.Daniel Campora2015-09-10
|
* cc3200: Improve callback API.Daniel Campora2015-08-16
| | | | | Rename "wakes" param to "wake_from" and make "value" an object instead of an integer.
* docs: Add more documentation for the CC3200 in the pyb module.Daniel Campora2015-06-16
|
* cc3200: In Timer.callback() only use value param if in edge count mode.Daniel Campora2015-06-16
|
* cc3200: Remove Timer.AB constant.Daniel Campora2015-06-10
| | | | Timer.A and Timer.B can be ORed for this purpose.
* cc3200: Add period set method to the Timer class.Daniel Campora2015-05-29
|
* cc3200: Make API more similar to stmhal.Daniel Campora2015-05-25
| | | | | | | | | In general the changes are: 1. Peripheral (UART, SPI, ADC, I2C, Timer) IDs start from 1, not zero. 2. Make I2C and SPI require the ID even when there's only one bus. 3. Make I2C and SPI accept 'mode' parameter even though only MASTER is supported.
* cc3200: Set the timer edge count interrupt value in the calbback const.Daniel Campora2015-05-17
|
* cc3200: Add Timer module. Supports free running, PWM and capture modes.Daniel Campora2015-05-17