changes from CR of IAR fixes for nRF5x port

pull/2234/head
Andrzej Puzdrowski 2016-07-15 13:10:20 +02:00
parent 7eaef66ba2
commit d433b55763
3 changed files with 4 additions and 4 deletions

View File

@ -18,7 +18,7 @@ LR_IROM1 0x1C000 0x0064000 {
*(InRoot$$Sections)
.ANY (+RO)
}
RW_IRAM1 0x20002080 0x0000DF80 {
RW_IRAM1 0x20002EF8 0x0000D108 {
.ANY (+RW +ZI)
}
}

View File

@ -6,13 +6,13 @@ define symbol __ICFEDIT_intvec_start__ = 0x1c000;
/*-Memory Regions-*/
define symbol __ICFEDIT_region_ROM_start__ = 0x1c000;
define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
define symbol __ICFEDIT_region_RAM_start__ = 0x20002080;
define symbol __ICFEDIT_region_RAM_start__ = 0x20002ef8;
define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
export symbol __ICFEDIT_region_RAM_start__;
export symbol __ICFEDIT_region_RAM_end__;
/*-Sizes-*/
/*Heap 1/4 of ram and stack 1/8*/
define symbol __ICFEDIT_size_cstack__ = 0xc00;
define symbol __ICFEDIT_size_cstack__ = 0x800;
define symbol __ICFEDIT_size_heap__ = 0x1800;
/**** End of ICF editor section. ###ICF###*/

View File

@ -62,7 +62,7 @@ uint16_t analogin_read_u16(analogin_t *obj)
nrf_drv_adc_channel_t adc_channel;
// initialization by assigment because IAR dosen't support variable initializer in declaration statement.
adc_channel.config.config.resolution = NRF_ADC_CONFIG_RES_10BIT;
adc_channel.config.config.input = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE;
adc_channel.config.config.reference = NRF_ADC_CONFIG_REF_VBG;