Skip to content

Commit e1dfc44

Browse files
committed
cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.
1 parent 6904583 commit e1dfc44

File tree

5 files changed

+10
-12
lines changed

5 files changed

+10
-12
lines changed

cc3200/FreeRTOS/FreeRTOSConfig.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
8686
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 64 )
8787
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 16384 ) )
88-
#define configMAX_TASK_NAME_LEN ( 12 )
88+
#define configMAX_TASK_NAME_LEN ( 8 )
8989
#define configUSE_TRACE_FACILITY 0
9090
#define configUSE_16_BIT_TICKS 0
9191
#define configIDLE_SHOULD_YIELD 1
@@ -151,9 +151,4 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
151151
version. */
152152
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
153153

154-
#ifdef DEBUG
155-
#include "debug.h"
156-
#define configASSERT( x ) ASSERT( x )
157-
#endif
158-
159154
#endif /* FREERTOS_CONFIG_H */

cc3200/application.lds

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@
6262
* THE SOFTWARE.
6363
*/
6464

65-
__stack_size__ = 1024; /* interrupts are handled using this stack */
66-
__min_heap_size__ = 4K;
65+
__stack_size__ = 1K; /* interrupts are handled using this stack */
66+
__min_heap_size__ = 6K;
6767
__rtos_heap_size = 16K;
6868

6969
MEMORY

cc3200/application.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,9 @@ $(BUILD)/stmhal/%.o: CFLAGS += -Os
186186
$(BUILD)/telnet/%.o: CFLAGS += -Os
187187
$(BUILD)/util/%.o: CFLAGS += -Os
188188
$(BUILD)/pins.o: CFLAGS += -Os
189+
$(BUILD)/main.o: CFLAGS += -Os
190+
$(BUILD)/mptask.o: CFLAGS += -Os
191+
$(BUILD)/servertask.o: CFLAGS += -Os
189192
else
190193
$(error Invalid BTYPE specified)
191194
endif
@@ -216,7 +219,7 @@ PREFIX_FILE = boards/cc3200_prefix.c
216219
GEN_PINS_SRC = $(BUILD)/pins.c
217220
GEN_PINS_HDR = $(HEADER_BUILD)/pins.h
218221
GEN_PINS_QSTR = $(BUILD)/pins_qstr.h
219-
222+
220223
# Making OBJ use an order-only dependency on the generated pins.h file
221224
# has the side effect of making the pins.h file before we actually compile
222225
# any of the objects. The normal dependency generation will deal with the

cc3200/hal/cc3200_hal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ void HAL_SystemInit (void) {
8888

8989
// in the case of a release image, these steps are already performed by
9090
// the bootloader so we can skip it and gain some code space
91-
#ifndef NDEBUG
91+
#ifdef DEBUG
9292
MAP_IntMasterEnable();
9393
PRCMCC3200MCUInit();
9494
#endif

cc3200/mods/pybuart.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,13 +145,13 @@ bool uart_init2(pyb_uart_obj_t *self) {
145145
self->reg = UARTA0_BASE;
146146
uartPerh = PRCM_UARTA0;
147147
MAP_UARTIntRegister(UARTA0_BASE, UART0IntHandler);
148-
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_7);
148+
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_3);
149149
break;
150150
case PYB_UART_2:
151151
self->reg = UARTA1_BASE;
152152
uartPerh = PRCM_UARTA1;
153153
MAP_UARTIntRegister(UARTA1_BASE, UART1IntHandler);
154-
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_7);
154+
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_3);
155155
break;
156156
default:
157157
return false;

0 commit comments

Comments
 (0)