File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed
cmsis/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF52832
hal/TARGET_NORDIC/TARGET_NRF5/TARGET_MCU_NRF51822 Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ LR_IROM1 0x1C000 0x0064000 {
18
18
*(InRoot$$Sections)
19
19
.ANY (+RO)
20
20
}
21
- RW_IRAM1 0x20002080 0x0000DF80 {
21
+ RW_IRAM1 0x20002EF8 0x0000D108 {
22
22
.ANY (+RW +ZI)
23
23
}
24
24
}
Original file line number Diff line number Diff line change @@ -6,13 +6,13 @@ define symbol __ICFEDIT_intvec_start__ = 0x1c000;
6
6
/*-Memory Regions-*/
7
7
define symbol __ICFEDIT_region_ROM_start__ = 0x1c000;
8
8
define symbol __ICFEDIT_region_ROM_end__ = 0x7ffff;
9
- define symbol __ICFEDIT_region_RAM_start__ = 0x20002080 ;
9
+ define symbol __ICFEDIT_region_RAM_start__ = 0x20002ef8 ;
10
10
define symbol __ICFEDIT_region_RAM_end__ = 0x2000ffff;
11
11
export symbol __ICFEDIT_region_RAM_start__;
12
12
export symbol __ICFEDIT_region_RAM_end__;
13
13
/*-Sizes-*/
14
14
/*Heap 1/4 of ram and stack 1/8*/
15
- define symbol __ICFEDIT_size_cstack__ = 0xc00 ;
15
+ define symbol __ICFEDIT_size_cstack__ = 0x800 ;
16
16
define symbol __ICFEDIT_size_heap__ = 0x1800;
17
17
/**** End of ICF editor section. ###ICF###*/
18
18
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ uint16_t analogin_read_u16(analogin_t *obj)
62
62
63
63
nrf_drv_adc_channel_t adc_channel ;
64
64
65
-
65
+ // initialization by assigment because IAR dosen't support variable initializer in declaration statement.
66
66
adc_channel .config .config .resolution = NRF_ADC_CONFIG_RES_10BIT ;
67
67
adc_channel .config .config .input = NRF_ADC_CONFIG_SCALING_INPUT_FULL_SCALE ;
68
68
adc_channel .config .config .reference = NRF_ADC_CONFIG_REF_VBG ;
You can’t perform that action at this time.
0 commit comments