Skip to content

Commit 1bb14b7

Browse files
committed
Merge pull request #5 from mbedmicro/master
Synd with master (04 March 2015)
2 parents b746b28 + 83f6c17 commit 1bb14b7

File tree

129 files changed

+72501
-778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+72501
-778
lines changed

libraries/USBDevice/USBDevice/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_function_userdef.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ Typedef definitions
5252
/*******************************************************************************
5353
Macro definitions
5454
*******************************************************************************/
55-
#define DUMMY_ACCESS (*(volatile unsigned long *)(OSTM0CNT))
55+
#define DUMMY_ACCESS OSTM0CNT
5656

5757
/* #define CACHE_WRITEBACK */
5858

libraries/USBDevice/USBDevice/USBHAL_RZ_A1H.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -515,10 +515,10 @@ extern "C" {
515515
if (RZA_IO_RegRead_16(
516516
&g_usb0_function_pipecfg[pipe], USB_PIPECFG_DIR_SHIFT, USB_PIPECFG_DIR) == 0) {
517517
/* read */
518-
__nop();
518+
__NOP();
519519
} else {
520520
/* write */
521-
__nop();
521+
__NOP();
522522
}
523523
}
524524
}
@@ -629,7 +629,7 @@ extern "C" {
629629
if (RZA_IO_RegRead_16(
630630
&g_usb0_function_pipecfg[pipe], USB_PIPECFG_DIR_SHIFT, USB_PIPECFG_DIR) == 0) {
631631
/* read */
632-
__nop();
632+
__NOP();
633633
} else {
634634
/* write */
635635
EPx_read_status = DEVDRV_USBF_PIPE_WAIT;

libraries/USBHost/USBHost/TARGET_RENESAS/TARGET_RZ_A1H/src/userdef/usb0_host_userdef.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ Typedef definitions
5656
/*******************************************************************************
5757
Macro definitions
5858
*******************************************************************************/
59-
#define DUMMY_ACCESS (*(volatile unsigned long *)(OSTM0CNT))
59+
#define DUMMY_ACCESS OSTM0CNT
6060

6161
/* #define CACHE_WRITEBACK */
6262

libraries/USBHost/USBHost/USBHALHost_RZ_A1.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ void USBHALHost::_usbisr(void) {
237237

238238
void USBHALHost::UsbIrqhandler() {
239239
uint32_t int_status = ohciwrapp_reg_r(OHCI_REG_INTERRUPTSTATUS) & ohciwrapp_reg_r(OHCI_REG_INTERRUPTENABLE);
240+
uint32_t data;
240241

241242
if (int_status != 0) { //Is there something to actually process?
242243
// Root hub status change interrupt
@@ -254,7 +255,8 @@ void USBHALHost::UsbIrqhandler() {
254255
wait_ms(150);
255256

256257
//Hub 0 (root hub), Port 1 (count starts at 1), Low or High speed
257-
deviceConnected(0, 1, ohciwrapp_reg_r(OHCI_REG_RHPORTSTATUS1) & OR_RH_PORT_LSDA);
258+
data = ohciwrapp_reg_r(OHCI_REG_RHPORTSTATUS1) & OR_RH_PORT_LSDA;
259+
deviceConnected(0, 1, data);
258260
}
259261

260262
//Root device disconnected

libraries/mbed/api/mbed.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#ifndef MBED_H
1717
#define MBED_H
1818

19-
#define MBED_LIBRARY_VERSION 94
19+
#define MBED_LIBRARY_VERSION 95
2020

2121
#include "platform.h"
2222

libraries/mbed/common/retarget.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,10 @@ extern "C" void __iar_argc_argv() {
459459
// Linker defined symbol used by _sbrk to indicate where heap should start.
460460
extern "C" int __end__;
461461

462+
#if defined(TARGET_CORTEX_A)
463+
extern "C" uint32_t __HeapLimit;
464+
#endif
465+
462466
// Turn off the errno macro and use actual global variable instead.
463467
#undef errno
464468
extern "C" int errno;
@@ -474,6 +478,8 @@ extern "C" caddr_t _sbrk(int incr) {
474478

475479
#if defined(TARGET_ARM7)
476480
if (new_heap >= stack_ptr) {
481+
#elif defined(TARGET_CORTEX_A)
482+
if (new_heap >= (unsigned char*)&__HeapLimit) { /* __HeapLimit is end of heap section */
477483
#else
478484
if (new_heap >= (unsigned char*)__get_MSP()) {
479485
#endif

libraries/mbed/common/us_ticker_api.c

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,3 +116,17 @@ void us_ticker_remove_event(ticker_event_t *obj) {
116116

117117
__enable_irq();
118118
}
119+
120+
int us_ticker_get_next_timestamp(timestamp_t *timestamp) {
121+
int ret = 0;
122+
123+
/* if head is NULL, there are no pending events */
124+
__disable_irq();
125+
if (head != NULL) {
126+
*timestamp = head->timestamp;
127+
ret = 1;
128+
}
129+
__enable_irq();
130+
131+
return ret;
132+
}

libraries/mbed/hal/us_ticker_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ void us_ticker_irq_handler(void);
4343

4444
void us_ticker_insert_event(ticker_event_t *obj, timestamp_t timestamp, uint32_t id);
4545
void us_ticker_remove_event(ticker_event_t *obj);
46+
int us_ticker_get_next_timestamp(timestamp_t *timestamp);
4647

4748
#ifdef __cplusplus
4849
}

libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_K20XX/TARGET_K20D50M/TOOLCHAIN_IAR/MK20D5.icf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ define symbol __ICFEDIT_region_NVIC_end__ = 0x1fffe0f7;
1111
define symbol __ICFEDIT_region_RAM_start__ = 0x1fffe0f8;
1212
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
1313
/*-Sizes-*/
14-
define symbol __ICFEDIT_size_cstack__ = 0x400;
15-
define symbol __ICFEDIT_size_heap__ = 0x800;
14+
/*Heap 1/4 of ram and stack 1/8*/
15+
define symbol __ICFEDIT_size_cstack__ = 0x600;
16+
define symbol __ICFEDIT_size_heap__ = 0xC00;
1617
/**** End of ICF editor section. ###ICF###*/
1718

1819
define symbol __region_RAM2_start__ = 0x20000000;

libraries/mbed/targets/cmsis/TARGET_Freescale/TARGET_K22F/TOOLCHAIN_IAR/MK22F51212.icf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,13 @@ define symbol __ICFEDIT_intvec_start__ = 0x00000000;
77
define symbol __ICFEDIT_region_ROM_start__ = 0x00000000;
88
define symbol __ICFEDIT_region_ROM_end__ = 0x0007ffff;
99
define symbol __ICFEDIT_region_NVIC_start__ = 0x1fff0000;
10-
define symbol __ICFEDIT_region_NVIC_end__ = 0x1fff0197;
11-
define symbol __ICFEDIT_region_RAM_start__ = 0x1fff0198;
10+
define symbol __ICFEDIT_region_NVIC_end__ = 0x1fff03ff;
11+
define symbol __ICFEDIT_region_RAM_start__ = 0x1fff0400;
1212
define symbol __ICFEDIT_region_RAM_end__ = 0x1fffffff;
1313
/*-Sizes-*/
14-
define symbol __ICFEDIT_size_cstack__ = 0x2000;
15-
define symbol __ICFEDIT_size_heap__ = 0x4000;
14+
/*Heap 1/4 of ram and stack 1/8*/
15+
define symbol __ICFEDIT_size_cstack__ = 0x4000;
16+
define symbol __ICFEDIT_size_heap__ = 0x8000;
1617
/**** End of ICF editor section. ###ICF###*/
1718

1819
define symbol __region_RAM2_start__ = 0x20000000;

0 commit comments

Comments
 (0)