Cleanup and refactoring of the STM32w port
This is a general cleanup of things like code style issues and code structure of the STM32w port to make it more like the rest of Contiki is structured.
This commit is contained in:
parent
12b3d02ba1
commit
a5046e83c7
118 changed files with 4470 additions and 4281 deletions
|
@ -56,7 +56,7 @@
|
|||
#endif
|
||||
|
||||
#include <string.h>
|
||||
#include "small_mprec.h"
|
||||
#include "small-mprec.h"
|
||||
|
||||
static int
|
||||
_DEFUN (quorem,
|
||||
|
@ -203,8 +203,8 @@ _DEFUN (quorem,
|
|||
*/
|
||||
|
||||
|
||||
/* Scanf and printf call both the small_mprec.c file if small_printf
|
||||
* has not been specfied optimizations concerning small_mprec.c and
|
||||
/* Scanf and printf call both the small-mprec.c file if small_printf
|
||||
* has not been specfied optimizations concerning small-mprec.c and
|
||||
* call of balloc will be performed anyway for printf.
|
||||
*/
|
||||
|
||||
|
@ -292,8 +292,8 @@ _DEFUN (_dtoa_r,
|
|||
* provided by Balloc variables are initialized to the beginning of the array.
|
||||
* - For some variables many buffers have been declared, in fact for each call of small_lshift we used a
|
||||
* buffer that has not been used at the moment
|
||||
* - This buffers are used in the call of function declared in small_mprec.h
|
||||
* To have more informations look at small_mprec.c
|
||||
* - This buffers are used in the call of function declared in small-mprec.h
|
||||
* To have more informations look at small-mprec.c
|
||||
*/
|
||||
|
||||
_Bigint tab_b[BUF_LSHIFT_SIZE],tab_b1[BUF_SIZE],tab_delta[BUF_SIZE],tab_mlo[BUF_SIZE],tab_mhi[BUF_LSHIFT_SIZE],tab_S[BUF_LSHIFT_SIZE];
|
|
@ -86,7 +86,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <reent.h>
|
||||
#include "small_mprec.h"
|
||||
#include "small-mprec.h"
|
||||
|
||||
/* reent.c knows this value */
|
||||
#define _Kmax 15
|
|
@ -98,8 +98,8 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
|
|||
*/
|
||||
|
||||
|
||||
/* Scanf and printf call both the small_mprec.c file if small_scanf
|
||||
* has not been specfied optimizations concerning small_mprec.c and
|
||||
/* Scanf and printf call both the small-mprec.c file if small_scanf
|
||||
* has not been specfied optimizations concerning small-mprec.c and
|
||||
* call of balloc will be performed anyway for scanf.
|
||||
*/
|
||||
|
||||
|
@ -113,7 +113,7 @@ Supporting OS subroutines required: <<close>>, <<fstat>>, <<isatty>>,
|
|||
#include <_ansi.h>
|
||||
#include <reent.h>
|
||||
#include <string.h>
|
||||
#include "small_mprec.h"
|
||||
#include "small-mprec.h"
|
||||
|
||||
double
|
||||
_DEFUN (_strtod_r, (ptr, s00, se),
|
||||
|
@ -141,8 +141,8 @@ _DEFUN (_strtod_r, (ptr, s00, se),
|
|||
* provided by Balloc variables are initialized to the beginning of the array.
|
||||
* - For some variables many buffers have been declared, in fact for each call of small_lshift we used a
|
||||
* buffer that has not been used at the moment
|
||||
* - This buffers are used in the call of function declared in small_mprec.h
|
||||
* To have more informations look at small_mprec.c
|
||||
* - This buffers are used in the call of function declared in small-mprec.h
|
||||
* To have more informations look at small-mprec.c
|
||||
*/
|
||||
|
||||
|
|
@ -14,8 +14,8 @@
|
|||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*/
|
||||
/* doc in _SP_sprintf.c */
|
||||
/* This code created by modifying _SP_sprintf.c so copyright inherited. */
|
||||
/* doc in sp-sprintf.c */
|
||||
/* This code created by modifying sp-sprintf.c so copyright inherited. */
|
||||
|
||||
#include <stdio.h>
|
||||
#ifdef _HAVE_STDC
|
Loading…
Add table
Add a link
Reference in a new issue