Firmware for Nucleo boards for the SLab system Description at http://r6500.blogspot.com.es/2018/02/slab-first-release.html All associated files at https://github.com/R6500/SLab

Dependencies:   mbed

Revision:
0:39a545e08ccd
Child:
1:d81bef65eece
diff -r 000000000000 -r 39a545e08ccd Nucleo64-L152RE.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Nucleo64-L152RE.h	Sat Feb 10 09:43:16 2018 +0000
@@ -0,0 +1,72 @@
+/***********************************************************************
+
+   Header file for the Nucleo64 L152RE Board 
+
+Basic requirements for a board are:
+  MBED Compatible
+  2 DACs or more
+  4 ADCs or more
+That includes the following Nucleo Boards
+
+ Board           DACs Flash  RAM    
+ Nucleo64-F303RE  2*  512k   64k + 16k     
+ Nucleo64-L152RE  2*  512k   80k         (This board)
+ Nucleo32-F303K8  3   64k    12k + 4k    
+ Nucleo64-F072RB  2   128k   16k
+ Nucleo64-F091RC  2   256k   32k
+ Nucleo64-F334R8  3   64k    12k + 4k
+ Nucleo64-F446RE  2   512k   128k
+ Nucleo64-L073RZ  2   192k   20k
+ Nucleo64-L476RG  2   1M     128k
+
+(*) In DACs mean that one DAC has reduced range because
+    it is connected to the board LCD
+
+(*) In DACs mean that one DAC has reduced range because
+    it is connected to the board LCD
+
+History:
+
+  2017/02/24 : First version
+   
+**********************************************************************/   
+   
+#define BSTRING  "Nucleo64-L152RE SLab"   
+
+#define F_SIZE  512
+#define R_SIZE   64
+
+// ADCs
+
+#define AD1 A0
+#define AD2 A1
+#define AD3 A4
+#define AD4 A5
+
+// DACs
+#define DA1    A2
+#define DA2    D13
+//#define EXIST_DAC3
+
+// Board capabilities implemented in firmware
+#define NDACS       2           // Number of DACs
+#define NADCS       4           // Number of ADCs
+#define BSIZE       18000       // Unified buffer size (in samples)
+#define MAX_STIME   100.0f      // Maximum sample period is 100s
+#define MAX_S_M     100         //   Mantissa
+#define MAX_S_E     0           //   Exponent
+#define MIN_STIME   0.000050f   // Minimum sample period is 50us
+#define MIN_S_M     50          //   Mantissa
+#define MIN_S_E     -6          //   Exponent
+#define VDD_M       33          //   Vdd Mantissa
+#define VDD_E       -1          //       Exponent
+#define VREF_M      33          //   Vref Mantissa
+#define VREF_E      -1          //        Exponent
+#define DAC_BITS    12          // Number of DAC bits
+#define ADC_BITS    12          // Number of ADC bits
+#define MAX_SF      20000       // Maximum sample freq. for f response
+#define MAX_SF_M    20          //   Mantissa
+#define MAX_SF_E     3          //   Exponent
+
+// List of DAC and ADC pins
+#define PIN_LIST "A2|D13|A0|A1|A4|A5|$"