danicampora
74589cbeeb
cc3200: Move code that disables/enables servers to wlan_sl_enable().
2015-02-26 11:19:15 +01:00
danicampora
5330d8996f
cc3200: Modify simplelink FreeRTOS OSI layer to only use semaphores.
...
Before, both mutexes and semaphores were used. Using only the latter
and with a bit of cleanup to remove some code bloat, we save ~600
bytes of code.
2015-02-26 11:18:18 +01:00
danicampora
f3661d4100
cc3200: Change PRCM_PeriphRegs_t fields to unsigned char.
...
This helps saving ~300 bytes. Thanks to dpgeorge.
2015-02-25 23:25:23 +01:00
danicampora
7a074a14ce
cc3200: Implement safe boot pin and system led behaviour.
...
The safe boot pin, when pulled high during reset rolls back the
firmware to the "factory" image and skips execution of 'boot.py'
and 'main.py'. This is useful to recover from a crash condition.
The system led is used mostly to signal errors.
2015-02-25 23:17:17 +01:00
danicampora
8a5aee103d
cc3200: Fix md5 application signing, add missing accents.
2015-02-25 23:17:12 +01:00
Paul Sokolovsky
bbaf68f2cb
modffi: Implement 'O' type handling for func arguments.
2015-02-25 23:38:22 +02:00
Damien George
534574348e
py: Make inline assembler raise exception when branch not in range.
...
Addresses issue #1132 .
2015-02-25 15:45:55 +00:00
danicampora
11aa6ba456
cc3200: Add WDT functionality as part of the pyb module.
...
Also improve pybsd, and make it save it's pin configuration.
This is a necessary step towards supporting the CC3200 low
power deep sleep (LPDS) mode.
2015-02-25 11:37:29 +01:00
danicampora
fe2eb5f58a
cc3200: Update README.md to add step for flashing the bootloader.
2015-02-25 11:36:56 +01:00
Damien George
993f067fa2
py: In inline assembler, add return statement to fix flow logic.
2015-02-24 22:43:01 +00:00
Damien George
e5315f7ffd
py: Factor some code in inline thumb assembler to reduce code size.
2015-02-24 16:35:37 +00:00
Damien George
e41b21c01e
py: Make more asmthumb functions inline to reduce code size.
2015-02-24 16:32:52 +00:00
Damien George
8f7976ba0d
py: Reduce code size of inline thumb assembler by using static tables.
...
Reduces stmhal by about 300 bytes ROM.
2015-02-24 16:10:58 +00:00
Paul Sokolovsky
2330fe08fe
README.md: Update list of supported Python types.
2015-02-24 16:40:15 +02:00
Paul Sokolovsky
8c437f95fc
README.md: Promote project status from "early beta" to just "beta".
...
Also, reword purpose to avoid impression that uPy supports just one
microcontroller.
2015-02-24 16:31:00 +02:00
Damien George
4fddbe5ab6
docs: Correct the documentation for math.frexp.
2015-02-23 22:15:11 +00:00
Damien George
1babb6d0c7
docs: Update timer tutorial to reflect new behaviour of timer.
2015-02-23 22:14:54 +00:00
nhtshot
5d323defe4
py: Update parse.c&mpconfig.h to reflect rename of mp_lexer_show_token.
...
This function is only used when DEBUG_PRINTERS and USE_RULE_NAME are
enabled.
2015-02-23 21:36:05 +00:00
Paul Sokolovsky
71ebd4b7f0
py: Implement UnicodeError.
...
Still too shy to implement UnicodeEncodeError which was really needed for
micropython-lib case.
2015-02-23 23:20:16 +02:00
danicampora
70b3160871
cc3200: Introduce MICROPY_PORT_HAS_TELNET and MICROPY_PORT_HAS_FTP.
...
These definitions help on making modwlan.c usable by other ports
with the CC3100.
2015-02-23 15:02:57 +01:00
danicampora
379a3fa305
cc3200: Change UART.print() to make it consistent with the rest.
2015-02-23 15:02:55 +01:00
danicampora
88b7f52ebb
cc3200: Replace WLAN.get_ip() with WLAN.ifconfig().
...
Also change other methods' names to make them consistent.
2015-02-23 15:02:55 +01:00
Damien George
626ee90ce1
tests: Add more tests for pyb.Timer class.
2015-02-23 13:18:33 +00:00
Damien George
d38939e676
stmhal: Reset state of timer when deinit is called.
2015-02-23 13:18:14 +00:00
Dave Hylands
caf5c40c19
stmhal: Fix problem when passing callback= to timer init function.
...
In particular, make sure that the globals are all initialized
before enabling the interrupt, and also make sure that the timer
interrupt has been initialied before enabling the NVIC.
2015-02-22 19:58:51 -08:00
danicampora
44bb616b53
cc3200: Add simplelink non-os task calls.
2015-02-22 18:59:50 +01:00
danicampora
4bfc491753
cc3200: Add wlan_urn() thanks to Nadim El-Fata and Bryan Morrissey.
2015-02-22 18:43:01 +01:00
danicampora
0c11b167a7
cc3200: Add optimization flags to drivers/cc3100 in the debug build.
2015-02-22 17:50:52 +01:00
danicampora
5687ce7e35
drivers/cc3100: Remove simplelink trace messages completely.
...
Those trace messages have never proven to be useful and they make
the code 9K bigger.
2015-02-22 17:50:51 +01:00
danicampora
33ddb566a7
cc3200: Remove dependencies from FreeRTOS.
...
Use the simplelink wrappers instead. This is one step further
towards having a single module for the cc3200 and the cc3100.
2015-02-22 17:50:50 +01:00
Damien George
5c047b97f2
tests: Add test for math special functions.
2015-02-22 14:49:46 +00:00
Damien George
5cbeacebdb
py: Make math special functions configurable and disabled by default.
...
The implementation of these functions is very large (order 4k) and they
are rarely used, so we don't enable them by default.
They are however enabled in stmhal and unix, since we have the room.
2015-02-22 14:48:18 +00:00
Damien George
9ab94c468c
lib/libm: Add implementations of erf, erfc, lgamma, tgamma.
2015-02-22 14:47:11 +00:00
Paul Sokolovsky
3527085587
pyb.UART.rst: Clean up note about stream protocol support.
2015-02-22 13:36:35 +02:00
Damien George
77fc276c08
stmhal: For UART, check that baudrate is within 5% of desired value.
...
Also includes documentation about minimum baudrate.
Addresses issue #1090 .
2015-02-22 00:26:49 +00:00
Paul Sokolovsky
e06cf89f04
py: Add few more special methods.
2015-02-22 01:21:08 +02:00
Damien George
3611c1de14
drivers/cc3100: Remove dependence on debug.h.
2015-02-21 22:04:07 +00:00
danicampora
92ea99a0fb
cc3200: Add support for connecting to WEP secured networks.
2015-02-21 22:27:54 +01:00
danicampora
18605b36dc
cc3200: Rename SD.config() to SD.config_pins().
2015-02-21 22:27:48 +01:00
danicampora
7102e51506
cc3200: Add UART __del__ method.
2015-02-21 22:27:44 +01:00
danicampora
a7208bcc43
cc3200: Remove sd paths from sys path when disabling the sd card.
2015-02-21 22:27:39 +01:00
danicampora
1cf82a9800
drivers/cc3100: Make wlan.c closer to TI original file.
2015-02-21 22:24:41 +01:00
Damien George
5ca1f5f9d9
cc3200: Get compiling with CC3100 driver from drivers/ directory.
2015-02-21 19:55:57 +00:00
Damien George
49c2ad4fb4
cc3200: Move CC3100 driver from cc3200/simplelink to drivers/cc3100.
...
This commit will not build, it exists just to track changes.
2015-02-21 19:52:07 +00:00
Damien George
36e2845e36
cc3200: Replace physical tabs with spaces.
...
Preparing this to move to drivers/ directory, want to make it as similar
to original code from TI as possible.
2015-02-21 19:48:34 +00:00
Damien George
4a23a01945
cc3200: Add explicit py/ path-prefix for py includes.
...
This is how it should be, so one knows exactly where the includes are
coming from.
2015-02-21 18:58:43 +00:00
Damien George
eff359e114
py: Expose mp_obj_list_remove as a public function.
2015-02-21 14:47:02 +00:00
danicampora
59d14914cd
cc3200: Correct pybsd_config() params retrieval.
2015-02-21 14:26:38 +01:00
danicampora
c020109cfa
cc3200: Add SD module and disable SD card support for the LAUNCHXL.
2015-02-21 14:19:40 +01:00
danicampora
571e3f5804
cc3200: Add exit values to the shell scripts.
2015-02-21 14:19:36 +01:00