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.
10 years ago
danicampora
f3661d4100
cc3200: Change PRCM_PeriphRegs_t fields to unsigned char.
This helps saving ~300 bytes. Thanks to dpgeorge.
10 years ago
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.
10 years ago
danicampora
8a5aee103d
cc3200: Fix md5 application signing, add missing accents.
10 years ago
Paul Sokolovsky
bbaf68f2cb
modffi: Implement 'O' type handling for func arguments.
10 years ago
Damien George
534574348e
py: Make inline assembler raise exception when branch not in range.
Addresses issue #1132 .
10 years ago
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.
10 years ago
danicampora
fe2eb5f58a
cc3200: Update README.md to add step for flashing the bootloader.
10 years ago
Damien George
993f067fa2
py: In inline assembler, add return statement to fix flow logic.
10 years ago
Damien George
e5315f7ffd
py: Factor some code in inline thumb assembler to reduce code size.
10 years ago
Damien George
e41b21c01e
py: Make more asmthumb functions inline to reduce code size.
10 years ago
Damien George
8f7976ba0d
py: Reduce code size of inline thumb assembler by using static tables.
Reduces stmhal by about 300 bytes ROM.
10 years ago
Paul Sokolovsky
2330fe08fe
README.md: Update list of supported Python types.
10 years ago
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.
10 years ago
Damien George
4fddbe5ab6
docs: Correct the documentation for math.frexp.
10 years ago
Damien George
1babb6d0c7
docs: Update timer tutorial to reflect new behaviour of timer.
10 years ago
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.
10 years ago
Paul Sokolovsky
71ebd4b7f0
py: Implement UnicodeError.
Still too shy to implement UnicodeEncodeError which was really needed for
micropython-lib case.
10 years ago
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.
10 years ago
danicampora
379a3fa305
cc3200: Change UART.print() to make it consistent with the rest.
10 years ago
danicampora
88b7f52ebb
cc3200: Replace WLAN.get_ip() with WLAN.ifconfig().
Also change other methods' names to make them consistent.
10 years ago
Damien George
626ee90ce1
tests: Add more tests for pyb.Timer class.
10 years ago
Damien George
d38939e676
stmhal: Reset state of timer when deinit is called.
10 years ago
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.
10 years ago
danicampora
44bb616b53
cc3200: Add simplelink non-os task calls.
10 years ago
danicampora
4bfc491753
cc3200: Add wlan_urn() thanks to Nadim El-Fata and Bryan Morrissey.
10 years ago
danicampora
0c11b167a7
cc3200: Add optimization flags to drivers/cc3100 in the debug build.
10 years ago
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.
10 years ago
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.
10 years ago
Damien George
5c047b97f2
tests: Add test for math special functions.
10 years ago
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.
10 years ago
Damien George
9ab94c468c
lib/libm: Add implementations of erf, erfc, lgamma, tgamma.
10 years ago
Paul Sokolovsky
3527085587
pyb.UART.rst: Clean up note about stream protocol support.
10 years ago
Damien George
77fc276c08
stmhal: For UART, check that baudrate is within 5% of desired value.
Also includes documentation about minimum baudrate.
Addresses issue #1090 .
10 years ago
Paul Sokolovsky
e06cf89f04
py: Add few more special methods.
10 years ago
Damien George
3611c1de14
drivers/cc3100: Remove dependence on debug.h.
10 years ago
danicampora
92ea99a0fb
cc3200: Add support for connecting to WEP secured networks.
10 years ago
danicampora
18605b36dc
cc3200: Rename SD.config() to SD.config_pins().
10 years ago
danicampora
7102e51506
cc3200: Add UART __del__ method.
10 years ago
danicampora
a7208bcc43
cc3200: Remove sd paths from sys path when disabling the sd card.
10 years ago
danicampora
1cf82a9800
drivers/cc3100: Make wlan.c closer to TI original file.
10 years ago
Damien George
5ca1f5f9d9
cc3200: Get compiling with CC3100 driver from drivers/ directory.
10 years ago
Damien George
49c2ad4fb4
cc3200: Move CC3100 driver from cc3200/simplelink to drivers/cc3100.
This commit will not build, it exists just to track changes.
10 years ago
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.
10 years ago
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.
10 years ago
Damien George
eff359e114
py: Expose mp_obj_list_remove as a public function.
10 years ago
danicampora
59d14914cd
cc3200: Correct pybsd_config() params retrieval.
10 years ago
danicampora
c020109cfa
cc3200: Add SD module and disable SD card support for the LAUNCHXL.
10 years ago
danicampora
571e3f5804
cc3200: Add exit values to the shell scripts.
10 years ago
danicampora
a6862fc812
cc3200: Disable MICROPY_OPT_COMPUTED_GOTO.
Saves around 1.3K. At the same time re-enable MICROPY_PY_SYS_EXIT
since it doesn't take much space and might be useful for certain
scripts.
10 years ago