modify the link.ld file and board/SConscript
This commit is contained in:
parent
6dbfac0c9f
commit
7f2abb615f
|
@ -1,11 +1,11 @@
|
|||
/*
|
||||
* Copyright (c) 2006-2018, RT-Thread Development Team
|
||||
* Copyright (c) 2006-2019, RT-Thread Development Team
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*
|
||||
* Change Logs:
|
||||
* Date Author Notes
|
||||
* 2018-11-06 SummerGift first version
|
||||
* 2020-06-27 AHTYDHD the first version
|
||||
*/
|
||||
|
||||
#include <rtthread.h>
|
||||
|
|
|
@ -27,6 +27,7 @@ elif rtconfig.CROSS_TOOL == 'iar':
|
|||
|
||||
CPPDEFINES = ['PART_TM4C123GH6PM']
|
||||
CPPDEFINES += ['TARGET_IS_TM4C123_RB1']
|
||||
if rtconfig.CROSS_TOOL == 'keil':
|
||||
CPPDEFINES += ['rvmdk']
|
||||
group = DefineGroup('Drivers', src, depend = [''], CPPPATH = path, CPPDEFINES = CPPDEFINES)
|
||||
Return('group')
|
||||
|
|
|
@ -39,7 +39,7 @@ SECTIONS
|
|||
_etext = .;
|
||||
} > FLASH
|
||||
|
||||
.data : AT(ADDR(.text) + SIZEOF(.text))
|
||||
.data : AT(ADDR(.iplt) )
|
||||
{
|
||||
_data = .;
|
||||
_ldata = LOADADDR (.data);
|
||||
|
|
|
@ -1,6 +1,3 @@
|
|||
#ifndef _DRV_ADC_H_
|
||||
#define _DRV_ADC_H_
|
||||
|
||||
/*
|
||||
* Copyright (c) 2006-2019, RT-Thread Development Team
|
||||
*
|
||||
|
@ -11,6 +8,9 @@
|
|||
* 2020-06-27 AHTYDHD the first version
|
||||
*/
|
||||
|
||||
#ifndef __DRV_ADC_H__
|
||||
#define __DRV_ADC_H__
|
||||
|
||||
#include<stdint.h>
|
||||
#include<rtthread.h>
|
||||
#include<rtdevice.h>
|
||||
|
@ -26,6 +26,6 @@ struct tm4c123_adc_config
|
|||
uint32_t sequencepriority;
|
||||
};
|
||||
|
||||
#endif /*_DRV_ADC_H_*/
|
||||
#endif /*__DRV_ADC_H__*/
|
||||
|
||||
/************************** end of file ******************/
|
|
@ -8,8 +8,8 @@
|
|||
* 2020-06-27 AHTYDHD the first version
|
||||
*/
|
||||
|
||||
#ifndef _DRV_GPIO_H_
|
||||
#define _DRV_GPIO_H_
|
||||
#ifndef __DRV_GPIO_H__
|
||||
#define __DRV_GPIO_H__
|
||||
|
||||
#include <stdint.h>
|
||||
#include <rtthread.h>
|
||||
|
@ -34,6 +34,6 @@ struct pin_index
|
|||
|
||||
extern int rt_hw_pin_init(void);
|
||||
|
||||
#endif /*_DRV_GPIO_H_*/
|
||||
#endif /*__DRV_GPIO_H__*/
|
||||
|
||||
/************************** end of file ******************/
|
|
@ -23,8 +23,7 @@ struct tm4c123_uart_config
|
|||
uint32_t uartbase;
|
||||
uint32_t baudrate;
|
||||
uint32_t mode;
|
||||
//struct dma_config *dma_rx;
|
||||
//struct dma_config *dma_tx;
|
||||
|
||||
};
|
||||
|
||||
/* tm4c123 uart dirver class */
|
||||
|
|
Loading…
Reference in New Issue