TI's CC3100 websocket camera demo with Arducam mini ov5642 and freertos. Should work with other M3's. Work in progress test demo.

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

platform.h File Reference

platform.h File Reference

mbed TLS Platform abstraction layer More...

Go to the source code of this file.

Functions

int platform_set_malloc_free (void *(*malloc_func)(size_t), void(*free_func)(void *))
 Set your own memory implementation function pointers.
int platform_set_fprintf (int(*fprintf_func)(FILE *stream, const char *,...))
 Set your own fprintf function pointer.
int platform_set_printf (int(*printf_func)(const char *,...))
 Set your own printf function pointer.
int platform_set_snprintf (int(*snprintf_func)(char *s, size_t n, const char *format,...))
 Set your own snprintf function pointer.
int platform_set_exit (void(*exit_func)(int status))
 Set your own exit function pointer.

Detailed Description

mbed TLS Platform abstraction layer

Copyright (C) 2006-2014, ARM Limited, All Rights Reserved

This file is part of mbed TLS (https://tls.mbed.org)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Definition in file platform.h.


Function Documentation

int platform_set_exit ( void(*)(int status)  exit_func )

Set your own exit function pointer.

Parameters:
exit_functhe exit function implementation
Returns:
0

Definition at line 158 of file platform.c.

int platform_set_fprintf ( int(*)(FILE *stream, const char *,...)  fprintf_func )

Set your own fprintf function pointer.

Parameters:
fprintf_functhe fprintf function implementation
Returns:
0
int platform_set_malloc_free ( void *(*)(size_t)  malloc_func,
void(*)(void *)  free_func 
)

Set your own memory implementation function pointers.

Parameters:
malloc_functhe malloc function implementation
free_functhe free function implementation
Returns:
0 if successful

Definition at line 56 of file platform.c.

int platform_set_printf ( int(*)(const char *,...)  printf_func )

Set your own printf function pointer.

Parameters:
printf_functhe printf function implementation
Returns:
0

Definition at line 111 of file platform.c.

int platform_set_snprintf ( int(*)(char *s, size_t n, const char *format,...)  snprintf_func )

Set your own snprintf function pointer.

Parameters:
snprintf_functhe snprintf function implementation
Returns:
0

Definition at line 86 of file platform.c.