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
Diff: Nucleo64-L152RE.h
- Revision:
- 1:d81bef65eece
- Parent:
- 0:39a545e08ccd
--- a/Nucleo64-L152RE.h Sat Feb 10 09:43:16 2018 +0000 +++ b/Nucleo64-L152RE.h Sun Feb 11 16:14:51 2018 +0000 @@ -2,6 +2,9 @@ Header file for the Nucleo64 L152RE Board +MBED page for the board: +https://os.mbed.com/platforms/ST-Nucleo-L152RE/ + Basic requirements for a board are: MBED Compatible 2 DACs or more @@ -43,11 +46,24 @@ #define AD3 A4 #define AD4 A5 +//#define FAST_ADC // Non Optimized code for single readings + // DACs #define DA1 A2 #define DA2 D13 //#define EXIST_DAC3 +// Digital I/O +#define EXIST_DIO +#define DIO1 D2 +#define DIO2 D3 +#define DIO3 D4 +#define DIO4 D5 +#define DIO5 D6 +#define DIO6 D7 +#define DIO7 D8 +#define DIO8 D9 + // Board capabilities implemented in firmware #define NDACS 2 // Number of DACs #define NADCS 4 // Number of ADCs @@ -67,6 +83,14 @@ #define MAX_SF 20000 // Maximum sample freq. for f response #define MAX_SF_M 20 // Mantissa #define MAX_SF_E 3 // Exponent +#define NDIO 8 // Number of digital I/O // List of DAC and ADC pins -#define PIN_LIST "A2|D13|A0|A1|A4|A5|$" +#define PIN_LIST "A2|D13|A0|A1|A4|A5|D2|D3|D4|D5|D6|D7|D8|D9|$" + +// HALT signal +#define HALT_PIN USER_BUTTON +//#define HALT_RISING // Interrupt is on falling + +// No profiling is defined for this board yet +