[riot-notifications] [RIOT-OS/RIOT] cpu/msp430_common: add real malloc/free functions (#10944)

Gunar Schorcht notifications at github.com
Tue Feb 5 10:57:33 CET 2019


### Contribution description

This PR realizes real `malloc/free` functions for MSP430 CPUs. For this purpose adapted AVR libc function are used. Thus, the remaining RAM becomes available as heap.

When used, `malloc` and `free` functions require 318 additional bytes of ROM and 7 additional bytes of RAM compared to the `oneway_malloc` module.

### Testing procedure

Use `tests/malloc` with the current master and the changes in this PR to verify the differences, for example:
```
make -C tests/malloc BOARD=wsn430-v1_3b flash test
```
With current master, `tests/malloc` doesn't work at all and gives no output. With the changes in this PR, `malloc` and `free` functions work as expected.

### Issues/PRs references

Depends on PR #10943
You can view, comment on, or merge this pull request online at:

  https://github.com/RIOT-OS/RIOT/pull/10944

-- Commit Summary --

  * cpu/msp430_common: add real malloc/free functions

-- File Changes --

    M cpu/msp430_common/Makefile.include (4)
    A cpu/msp430_common/malloc.c (440)
    M cpu/msp430_common/msp430-main.c (2)

-- Patch Links --

https://github.com/RIOT-OS/RIOT/pull/10944.patch
https://github.com/RIOT-OS/RIOT/pull/10944.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/10944
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190205/45a0efdf/attachment-0001.html>


More information about the notifications mailing list