Skip to content

Commit 2922de8

Browse files
committed
[NUC472/M453] Remove dead code in device.h
1 parent e09d9a1 commit 2922de8

File tree

3 files changed

+2
-81
lines changed

3 files changed

+2
-81
lines changed

targets/TARGET_NUVOTON/TARGET_M451/TARGET_NUMAKER_PFM_M453/device.h

Lines changed: 0 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -17,47 +17,8 @@
1717
#ifndef MBED_DEVICE_H
1818
#define MBED_DEVICE_H
1919

20-
#define DEVICE_PORTIN 1
21-
#define DEVICE_PORTOUT 1
22-
#define DEVICE_PORTINOUT 1
23-
24-
#define DEVICE_INTERRUPTIN 1
25-
26-
#define DEVICE_ANALOGIN 1
27-
#define DEVICE_ANALOGOUT 0
28-
29-
#define DEVICE_SERIAL 1
30-
#define DEVICE_SERIAL_FC 1
31-
#define DEVICE_SERIAL_ASYNCH 1
32-
33-
#define DEVICE_I2C 1
34-
#define DEVICE_I2CSLAVE 1
35-
#define DEVICE_I2C_ASYNCH 1
36-
37-
#define DEVICE_SPI 1
38-
#define DEVICE_SPI_ASYNCH 1
39-
#define DEVICE_SPISLAVE 1
40-
41-
#define DEVICE_RTC 1
42-
43-
#define DEVICE_ETHERNET 0
44-
45-
#define DEVICE_PWMOUT 1
46-
47-
#define DEVICE_SEMIHOST 0
48-
#define DEVICE_LOCALFILESYSTEM 0
4920
#define DEVICE_ID_LENGTH 24
5021

51-
#define DEVICE_SLEEP 1
52-
53-
#define DEVICE_DEBUG_AWARENESS 0
54-
55-
#define DEVICE_STDIO_MESSAGES 1
56-
57-
#define DEVICE_ERROR_RED 0
58-
59-
#define DEVICE_LOWPOWERTIMER 1
60-
6122
#include "objects.h"
6223

6324
#endif

targets/TARGET_NUVOTON/TARGET_NUC472/TARGET_NUMAKER_PFM_NUC472/device.h

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -17,48 +17,8 @@
1717
#ifndef MBED_DEVICE_H
1818
#define MBED_DEVICE_H
1919

20-
#define DEVICE_PORTIN 1
21-
#define DEVICE_PORTOUT 1
22-
#define DEVICE_PORTINOUT 1
23-
24-
#define DEVICE_INTERRUPTIN 1
25-
26-
#define DEVICE_ANALOGIN 1
27-
#define DEVICE_ANALOGOUT 0
28-
29-
#define DEVICE_SERIAL 1
30-
#define DEVICE_SERIAL_FC 1
31-
#define DEVICE_SERIAL_ASYNCH 1
32-
33-
#define DEVICE_I2C 1
34-
#define DEVICE_I2CSLAVE 1
35-
#define DEVICE_I2C_ASYNCH 1
36-
37-
#define DEVICE_SPI 1
38-
#define DEVICE_SPI_ASYNCH 1
39-
#define DEVICE_SPISLAVE 1
40-
41-
42-
#define DEVICE_RTC 1
43-
44-
#define DEVICE_ETHERNET 0
45-
46-
#define DEVICE_PWMOUT 1
47-
48-
#define DEVICE_SEMIHOST 0
49-
#define DEVICE_LOCALFILESYSTEM 0
5020
#define DEVICE_ID_LENGTH 24
5121

52-
#define DEVICE_SLEEP 1
53-
54-
#define DEVICE_DEBUG_AWARENESS 0
55-
56-
#define DEVICE_STDIO_MESSAGES 1
57-
58-
#define DEVICE_ERROR_RED 0
59-
60-
#define DEVICE_LOWPOWERTIMER 1
61-
6222
#include "objects.h"
6323

6424
#endif

targets/targets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2355,7 +2355,7 @@
23552355
"is_disk_virtual": true,
23562356
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
23572357
"inherits": ["Target"],
2358-
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "TRNG", "CAN"],
2358+
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "TRNG", "CAN"],
23592359
"features": ["LWIP"],
23602360
"release_versions": ["5"],
23612361
"device_name": "NUC472HI8AE"
@@ -2379,7 +2379,7 @@
23792379
"supported_toolchains": ["ARM", "uARM", "GCC_ARM", "IAR"],
23802380
"inherits": ["Target"],
23812381
"progen": {"target": "numaker-pfm-m453"},
2382-
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "CAN"],
2382+
"device_has": ["ANALOGIN", "I2C", "I2CSLAVE", "I2C_ASYNCH", "INTERRUPTIN", "LOWPOWERTIMER", "PORTIN", "PORTINOUT", "PORTOUT", "PWMOUT", "RTC", "SERIAL", "SERIAL_ASYNCH", "SERIAL_FC", "STDIO_MESSAGES", "SLEEP", "SPI", "SPISLAVE", "SPI_ASYNCH", "CAN"],
23832383
"release_versions": ["2", "5"],
23842384
"device_name": "M453VG6AE"
23852385
},

0 commit comments

Comments
 (0)