Skip to content

Commit d889a60

Browse files
author
Laurent MEUNIER
committed
[STM32] clean-up DEVICE features
Device features definition have been moved to targets.json, so definitions in device.h are not required anymore.
1 parent 9111aa4 commit d889a60

File tree

3 files changed

+1
-41
lines changed

3 files changed

+1
-41
lines changed

hal/targets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -729,7 +729,7 @@
729729
"progen": {"target": "nucleo-f303k8"},
730730
"detect_code": ["0775"],
731731
"default_lib": "small",
732-
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
732+
"device_has": ["ANALOGIN", "ANALOGOUT", "CAN", "I2C", "I2CSLAVE", "INTERRUPTIN", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "RTC_LSI", "SERIAL", "SLEEP", "SPI", "SPISLAVE", "STDIO_MESSAGES"],
733733
"release_versions": ["2"]
734734
},
735735
"NUCLEO_F303RE": {

hal/targets/hal/TARGET_STM/TARGET_STM32F3/TARGET_NUCLEO_F303K8/device.h

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,11 @@
3131
*/
3232
#ifndef MBED_DEVICE_H
3333
#define MBED_DEVICE_H
34-
#define DEVICE_RTC_LSI 1
35-
36-
37-
3834

3935
//=======================================
4036

4137
#define DEVICE_ID_LENGTH 24
4238

43-
44-
45-
4639
#include "objects.h"
4740

4841
#endif

hal/targets/hal/TARGET_STM/TARGET_STM32F7/TARGET_NUCLEO_F767ZI/device.h

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -30,43 +30,10 @@
3030
#ifndef MBED_DEVICE_H
3131
#define MBED_DEVICE_H
3232

33-
#define DEVICE_PORTIN 1
34-
#define DEVICE_PORTOUT 1
35-
#define DEVICE_PORTINOUT 1
36-
37-
#define DEVICE_INTERRUPTIN 1
38-
39-
#define DEVICE_ANALOGIN 1
40-
#define DEVICE_ANALOGOUT 1
41-
42-
#define DEVICE_SERIAL 1
43-
#define DEVICE_SERIAL_FC 0
44-
45-
#define DEVICE_I2C 1
46-
#define DEVICE_I2CSLAVE 1
47-
48-
#define DEVICE_SPI 1
49-
#define DEVICE_SPISLAVE 1
50-
51-
#define DEVICE_RTC 1
52-
#define DEVICE_RTC_LSI 0
53-
54-
#define DEVICE_PWMOUT 1
55-
56-
#define DEVICE_SLEEP 1
57-
5833
//=======================================
5934

60-
#define DEVICE_SEMIHOST 0
61-
#define DEVICE_LOCALFILESYSTEM 0
6235
#define DEVICE_ID_LENGTH 24
6336

64-
#define DEVICE_DEBUG_AWARENESS 0
65-
66-
#define DEVICE_STDIO_MESSAGES 1
67-
68-
#define DEVICE_ERROR_RED 0
69-
7037
#include "objects.h"
7138

7239
#endif

0 commit comments

Comments
 (0)