LoadCell_STM32_SDRAM_v1

Dependencies:   BSP_DISCO_F746NG DISCO-F746NG_SDRAMBlockDevice LCD_DISCO_F746NG mbed

Fork of LoadCell_STM32 by Tapio Valli

Revision:
3:22b1719c2b92
Parent:
2:386f65563144
Child:
5:f8d3bcb187de
--- a/functions.cpp	Fri Feb 23 20:28:44 2018 +0000
+++ b/functions.cpp	Sat Feb 24 11:26:50 2018 +0000
@@ -36,6 +36,12 @@
   a->array[a->used++] = element;
 }
 
+void insertArray2(Array *a, uint32_t newsize) {
+    a->size = newsize;
+    a->array = (uint32_t *)realloc(a->array, a->size * sizeof(uint32_t));
+    a->used = 0;
+}
+
 void freeArray(Array *a) {
   free(a->array);
   a->array = NULL;