cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.

This commit is contained in:
danicampora 2015-02-14 16:35:29 +01:00
parent 690458300b
commit e1dfc44178
5 changed files with 10 additions and 12 deletions

View File

@ -85,7 +85,7 @@
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 64 )
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 16384 ) )
#define configMAX_TASK_NAME_LEN ( 12 )
#define configMAX_TASK_NAME_LEN ( 8 )
#define configUSE_TRACE_FACILITY 0
#define configUSE_16_BIT_TICKS 0
#define configIDLE_SHOULD_YIELD 1
@ -151,9 +151,4 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
version. */
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
#ifdef DEBUG
#include "debug.h"
#define configASSERT( x ) ASSERT( x )
#endif
#endif /* FREERTOS_CONFIG_H */

View File

@ -62,8 +62,8 @@
* THE SOFTWARE.
*/
__stack_size__ = 1024; /* interrupts are handled using this stack */
__min_heap_size__ = 4K;
__stack_size__ = 1K; /* interrupts are handled using this stack */
__min_heap_size__ = 6K;
__rtos_heap_size = 16K;
MEMORY

View File

@ -186,6 +186,9 @@ $(BUILD)/stmhal/%.o: CFLAGS += -Os
$(BUILD)/telnet/%.o: CFLAGS += -Os
$(BUILD)/util/%.o: CFLAGS += -Os
$(BUILD)/pins.o: CFLAGS += -Os
$(BUILD)/main.o: CFLAGS += -Os
$(BUILD)/mptask.o: CFLAGS += -Os
$(BUILD)/servertask.o: CFLAGS += -Os
else
$(error Invalid BTYPE specified)
endif
@ -216,7 +219,7 @@ PREFIX_FILE = boards/cc3200_prefix.c
GEN_PINS_SRC = $(BUILD)/pins.c
GEN_PINS_HDR = $(HEADER_BUILD)/pins.h
GEN_PINS_QSTR = $(BUILD)/pins_qstr.h
# Making OBJ use an order-only dependency on the generated pins.h file
# has the side effect of making the pins.h file before we actually compile
# any of the objects. The normal dependency generation will deal with the

View File

@ -88,7 +88,7 @@ void HAL_SystemInit (void) {
// in the case of a release image, these steps are already performed by
// the bootloader so we can skip it and gain some code space
#ifndef NDEBUG
#ifdef DEBUG
MAP_IntMasterEnable();
PRCMCC3200MCUInit();
#endif

View File

@ -145,13 +145,13 @@ bool uart_init2(pyb_uart_obj_t *self) {
self->reg = UARTA0_BASE;
uartPerh = PRCM_UARTA0;
MAP_UARTIntRegister(UARTA0_BASE, UART0IntHandler);
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_7);
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_3);
break;
case PYB_UART_2:
self->reg = UARTA1_BASE;
uartPerh = PRCM_UARTA1;
MAP_UARTIntRegister(UARTA1_BASE, UART1IntHandler);
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_7);
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_3);
break;
default:
return false;