remove useless definitions in device.h

also fix a minor building error
pull/4438/head
Yuguo Zou 2017-02-27 14:52:24 +08:00 committed by Martin Kojtal
parent 0d84a8d0d0
commit 41f20d6913
3 changed files with 3 additions and 33 deletions

View File

@ -16,34 +16,7 @@
#ifndef MBED_DEVICE_H
#define MBED_DEVICE_H
#ifndef CONFIG_MBED_ENABLED
#define DEVICE_PORTIN 1
#define DEVICE_PORTOUT 1
#define DEVICE_PORTINOUT 1
#define DEVICE_INTERRUPTIN 1
#define DEVICE_ANALOGIN 1
#define DEVICE_ANALOGOUT 1
#define DEVICE_SERIAL 1
#define DEVICE_I2C 1
#define DEVICE_I2CSLAVE 1
#define DEVICE_SPI 1
#define DEVICE_SPISLAVE 1
#define DEVICE_CAN 0
#define DEVICE_RTC 1
#define DEVICE_ETHERNET 1
#define DEVICE_PWMOUT 1
#define DEVICE_SLEEP 1
#endif
#include "objects.h"
#endif

View File

@ -14,11 +14,8 @@ LR_RAM 0x10006000 0x6FFFF {
;rtl_console.o(.mon.ram.bss*)
;}
.image2.table.1 0x10006000 FIXED {
.image2.table 0x10006000 FIXED {
rtl8195a_init.o(.image2.ram.data*)
}
.image2.table.2 +0 FIXED{
rtl8195a_init.o(.image2.validate.rodata*)
}

View File

@ -57,7 +57,7 @@ extern void PLAT_Start(void);
extern void PLAT_Main(void);
extern HAL_TIMER_OP HalTimerOp;
IMAGE2_START_RAM_FUN_SECTION RAM_START_FUNCTION gImage2EntryFun0 = {
IMAGE2_START_RAM_FUN_SECTION const RAM_START_FUNCTION gImage2EntryFun0 = {
PLAT_Start
};