<feed xmlns='http://www.w3.org/2005/Atom'>
<title>suspect-devices/circuitpython/cc3200/main.c, branch esp-extra-scripts</title>
<subtitle>CircuitPython - a Python implementation for teaching coding with microcontrollers</subtitle>
<id>https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts</id>
<link rel='self' href='https://git.suspectdevices.com/suspect-devices/circuitpython/atom?h=esp-extra-scripts'/>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/'/>
<updated>2016-06-28T10:28:53+00:00</updated>
<entry>
<title>cc3200: Shrink the FreeRTOS heap and place TCB+stack in freed location.</title>
<updated>2016-06-28T10:28:53+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-06-05T12:01:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=469c623bb8e504ca78f1964508579ecefec76a98'/>
<id>urn:sha1:469c623bb8e504ca78f1964508579ecefec76a98</id>
<content type='text'>
The 16k FreeRTOS heap originally had all TCBs and stacks dynamically
allocated within it (plus semaphores and some other things).  Now that
xTaskCreateStatic is used instead of xTaskCreate, the TCBs and stacks
are allocated statically and no longer use any of the FreeRTOS heap.
Therefore, the FreeRTOS stack can be shrunk by the amount that has been
made static.  Furthermore, the TCBs and stack that are now static should
be placed in the .rtos_heaps section of RAM because this RAM is treated
specially by the bootloader (the bootloader executes from the first 16k
of RAM and loads the firmware into the section starting after the 16k).

After this patch the FreeRTOS heap (ucHeap) is 7200 bytes.  The memory
available for the MicroPython heap is 54936 bytes (including GC overhead).
</content>
</entry>
<entry>
<title>cc3200: Use xTaskCreateStatic instead of osi_TaskCreate.</title>
<updated>2016-06-28T10:28:52+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-31T16:27:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=0455755296b27440e68cad1ca43c342d9a452f88'/>
<id>urn:sha1:0455755296b27440e68cad1ca43c342d9a452f88</id>
<content type='text'>
This allows to statically allocate the TCB (thread control block) and
thread stack in the BSS segment, reducing the need for dynamic memory
allocation.
</content>
</entry>
<entry>
<title>cc3200: Add basic threading capabilities.</title>
<updated>2016-06-28T10:28:51+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-27T16:35:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=eef4f13a3390dc88902563acb047f0439eff0caf'/>
<id>urn:sha1:eef4f13a3390dc88902563acb047f0439eff0caf</id>
<content type='text'>
Can create a new thread and run it.  Does not use the GIL at this point.
</content>
</entry>
<entry>
<title>cc3200: Define our own FreeRTOS heap so it can go in a special segment.</title>
<updated>2016-06-28T10:28:50+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2016-05-27T13:28:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=9b1c1262dc70cfb6b5cf5d27e3e3d8e41b5a4901'/>
<id>urn:sha1:9b1c1262dc70cfb6b5cf5d27e3e3d8e41b5a4901</id>
<content type='text'>
</content>
</entry>
<entry>
<title>all: Add py/mphal.h and use it in all ports.</title>
<updated>2015-10-31T16:14:30+00:00</updated>
<author>
<name>Damien George</name>
<email>damien.p.george@gmail.com</email>
</author>
<published>2015-10-30T23:03:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=731f359292c0e2630873df1a19c5baac7287024f'/>
<id>urn:sha1:731f359292c0e2630873df1a19c5baac7287024f</id>
<content type='text'>
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.
</content>
</entry>
<entry>
<title>cc3200: Re-config antenna selection when waking from suspended mode.</title>
<updated>2015-06-07T11:28:47+00:00</updated>
<author>
<name>Daniel Campora</name>
<email>daniel@wipy.io</email>
</author>
<published>2015-06-07T11:28:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=491c321720c772ee548f9e6f1612638ae8bce154'/>
<id>urn:sha1:491c321720c772ee548f9e6f1612638ae8bce154</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cc3200: Add antenna selection feature to WLAN.</title>
<updated>2015-06-06T22:06:27+00:00</updated>
<author>
<name>Daniel Campora</name>
<email>daniel@wipy.io</email>
</author>
<published>2015-06-06T16:42:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=a3acaa000c0835c0b4e8c3f488071b0ff2caa58b'/>
<id>urn:sha1:a3acaa000c0835c0b4e8c3f488071b0ff2caa58b</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cc3200: Place functions only used while booting in a special section.</title>
<updated>2015-03-11T15:59:29+00:00</updated>
<author>
<name>danicampora</name>
<email>danicampora@gmail.com</email>
</author>
<published>2015-03-02T13:11:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=26cbc91373cdfff43317da01e102617ed5885655'/>
<id>urn:sha1:26cbc91373cdfff43317da01e102617ed5885655</id>
<content type='text'>
Such functions are never used after MicroPython has started, and they
remain in RAM wasting space. Now they are placed in a special section
named "boot" which sits just before the heap, allowing us to extend
the effective heap area up to the new boot section. Right now, this
gives us back ~1K, but in the future, more functions might end up in
there as well.
</content>
</entry>
<entry>
<title>cc3200: Add heartbeat signal on system led.</title>
<updated>2015-02-28T18:03:21+00:00</updated>
<author>
<name>danicampora</name>
<email>danicampora@gmail.com</email>
</author>
<published>2015-02-26T14:03:52+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=d01060241a2102878a2b6ff270323e7d278f0af8'/>
<id>urn:sha1:d01060241a2102878a2b6ff270323e7d278f0af8</id>
<content type='text'>
</content>
</entry>
<entry>
<title>cc3200: Implement safe boot pin and system led behaviour.</title>
<updated>2015-02-25T22:17:17+00:00</updated>
<author>
<name>danicampora</name>
<email>danicampora@gmail.com</email>
</author>
<published>2015-02-25T21:38:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.suspectdevices.com/suspect-devices/circuitpython/commit/?id=7a074a14ced0c9ea890793aa7dc43c896cfdf9b9'/>
<id>urn:sha1:7a074a14ced0c9ea890793aa7dc43c896cfdf9b9</id>
<content type='text'>
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.
</content>
</entry>
</feed>
