Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 259c18f

Browse files
author
Owen L - SFE
committedJan 15, 2020
Merge branch 'master' into core-ble
2 parents e797edb + aece3c3 commit 259c18f

File tree

22 files changed

+23
-1984
lines changed

22 files changed

+23
-1984
lines changed
 

‎cores/arduino/am_sdk_ap3/mcu/apollo3/hal/am_hal_iom.h

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,9 @@
5555
#include "am_hal_status.h"
5656
#include "am_hal_sysctrl.h"
5757

58+
#ifdef __cplusplus // Patch
59+
extern "C" {
60+
#endif // End patch
5861

5962
//*****************************************************************************
6063
//
@@ -831,4 +834,9 @@ uint32_t am_hal_iom_highprio_transfer(void *pHandle,
831834
//! @}
832835
//
833836
//*****************************************************************************
837+
838+
#ifdef __cplusplus // Patch
839+
}
840+
#endif // End patch
841+
834842
#endif // AM_HAL_IOM_H

‎cores/arduino/ard_sup/ap3_uart.h

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ SOFTWARE.
3535

3636
typedef RingBufferN<AP3_UART_RINGBUFF_SIZE> AP3UartRingBuffer;
3737

38+
extern char ap3_g_prfbuf[AM_PRINTF_BUFSIZE];
39+
3840
extern const am_hal_uart_config_t ap3_uart_config_default;
3941

4042
extern const ap3_uart_pad_map_elem_t ap3_uart0_tx_map[AP3_UART0_NUM_TX_PADS];

‎cores/arduino/ard_sup/uart/ap3_uart.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -417,10 +417,10 @@ uint32_t Uart::printf(const char *pcFmt, ...)
417417
//
418418
va_list pArgs;
419419
va_start(pArgs, pcFmt);
420-
ui32NumChars = am_util_stdio_vsprintf(g_prfbuf, pcFmt, pArgs);
420+
ui32NumChars = am_util_stdio_vsprintf(ap3_g_prfbuf, pcFmt, pArgs);
421421
va_end(pArgs);
422422

423-
write((const uint8_t *)g_prfbuf, ui32NumChars);
423+
write((const uint8_t *)ap3_g_prfbuf, ui32NumChars);
424424

425425
return ui32NumChars;
426426
}

‎platform.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ defines.variant={build.defs}
8080

8181

8282
## Compiler and Toolchain
83-
compiler.path={runtime.tools.arm-none-eabi-gcc-8-2018-q4-major.path}/bin
83+
compiler.path={runtime.tools.arm-none-eabi-gcc-7-2017q4.path}/bin
8484
compiler.cmd.cpp=arm-none-eabi-g++
8585
compiler.cmd.c=arm-none-eabi-gcc
8686
compiler.cmd.S=arm-none-eabi-gcc

‎variants/artemis/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/artemis_thing_plus/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/edge/include/hm01b0/HM01B0.c

-758
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0.h

-419
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_RAW8_QVGA_8bits_lsb_5fps.h

-510
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_Walking1s_01.h

-56
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_Walking1s_01.txt

-8
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_debug.c

-35
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_debug.h

-49
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_optimized.c

-84
This file was deleted.

‎variants/edge/include/hm01b0/HM01B0_optimized.h

-50
This file was deleted.

‎variants/edge/include/hm01b0/hm01b0_platform.h renamed to ‎variants/edge/include/hm01b0/hm01b0_platform_edge.h

+3-5
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
// based on demo from Himax
2-
31
/*
42
Copyright (c) 2019 SparkFun Electronics
53
@@ -22,8 +20,8 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2220
SOFTWARE.
2321
*/
2422

25-
#ifndef HM01B0_PLATFORM_H
26-
#define HM01B0_PLATFORM_H
23+
#ifndef HM01B0_PLATFORM_EDGE_H
24+
#define HM01B0_PLATFORM_EDGE_H
2725

2826
#ifdef __cplusplus
2927
extern "C"
@@ -70,4 +68,4 @@ extern "C"
7068
}
7169
#endif
7270

73-
#endif // HM01B0_PLATFORM_H
71+
#endif // HM01B0_PLATFORM_EDGE_H

‎variants/edge/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/edge2/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/redboard_artemis/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/redboard_artemis_atp/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

‎variants/redboard_artemis_nano/startup/startup_gcc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ extern int main(void);
127127
//
128128
//*****************************************************************************
129129
__attribute__ ((section(".stack")))
130-
static uint32_t g_pui32Stack[1024];
130+
static uint32_t g_pui32Stack[20*1024];
131131

132132
//*****************************************************************************
133133
//

0 commit comments

Comments
 (0)
Please sign in to comment.