cc3200: Disable FreeRTOS asserts. Optimize more files if BTYPE=debug.
This commit is contained in:
parent
690458300b
commit
e1dfc44178
|
@ -85,7 +85,7 @@
|
||||||
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
#define configTICK_RATE_HZ ( ( TickType_t ) 1000 )
|
||||||
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 64 )
|
#define configMINIMAL_STACK_SIZE ( ( unsigned short ) 64 )
|
||||||
#define configTOTAL_HEAP_SIZE ( ( size_t ) ( 16384 ) )
|
#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_TRACE_FACILITY 0
|
||||||
#define configUSE_16_BIT_TICKS 0
|
#define configUSE_16_BIT_TICKS 0
|
||||||
#define configIDLE_SHOULD_YIELD 1
|
#define configIDLE_SHOULD_YIELD 1
|
||||||
|
@ -151,9 +151,4 @@ See http://www.FreeRTOS.org/RTOS-Cortex-M3-M4.html. */
|
||||||
version. */
|
version. */
|
||||||
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
#define configUSE_PORT_OPTIMISED_TASK_SELECTION 1
|
||||||
|
|
||||||
#ifdef DEBUG
|
|
||||||
#include "debug.h"
|
|
||||||
#define configASSERT( x ) ASSERT( x )
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* FREERTOS_CONFIG_H */
|
#endif /* FREERTOS_CONFIG_H */
|
||||||
|
|
|
@ -62,8 +62,8 @@
|
||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
__stack_size__ = 1024; /* interrupts are handled using this stack */
|
__stack_size__ = 1K; /* interrupts are handled using this stack */
|
||||||
__min_heap_size__ = 4K;
|
__min_heap_size__ = 6K;
|
||||||
__rtos_heap_size = 16K;
|
__rtos_heap_size = 16K;
|
||||||
|
|
||||||
MEMORY
|
MEMORY
|
||||||
|
|
|
@ -186,6 +186,9 @@ $(BUILD)/stmhal/%.o: CFLAGS += -Os
|
||||||
$(BUILD)/telnet/%.o: CFLAGS += -Os
|
$(BUILD)/telnet/%.o: CFLAGS += -Os
|
||||||
$(BUILD)/util/%.o: CFLAGS += -Os
|
$(BUILD)/util/%.o: CFLAGS += -Os
|
||||||
$(BUILD)/pins.o: CFLAGS += -Os
|
$(BUILD)/pins.o: CFLAGS += -Os
|
||||||
|
$(BUILD)/main.o: CFLAGS += -Os
|
||||||
|
$(BUILD)/mptask.o: CFLAGS += -Os
|
||||||
|
$(BUILD)/servertask.o: CFLAGS += -Os
|
||||||
else
|
else
|
||||||
$(error Invalid BTYPE specified)
|
$(error Invalid BTYPE specified)
|
||||||
endif
|
endif
|
||||||
|
@ -216,7 +219,7 @@ PREFIX_FILE = boards/cc3200_prefix.c
|
||||||
GEN_PINS_SRC = $(BUILD)/pins.c
|
GEN_PINS_SRC = $(BUILD)/pins.c
|
||||||
GEN_PINS_HDR = $(HEADER_BUILD)/pins.h
|
GEN_PINS_HDR = $(HEADER_BUILD)/pins.h
|
||||||
GEN_PINS_QSTR = $(BUILD)/pins_qstr.h
|
GEN_PINS_QSTR = $(BUILD)/pins_qstr.h
|
||||||
|
|
||||||
# Making OBJ use an order-only dependency on the generated pins.h file
|
# 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
|
# 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
|
# any of the objects. The normal dependency generation will deal with the
|
||||||
|
|
|
@ -88,7 +88,7 @@ void HAL_SystemInit (void) {
|
||||||
|
|
||||||
// in the case of a release image, these steps are already performed by
|
// 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
|
// the bootloader so we can skip it and gain some code space
|
||||||
#ifndef NDEBUG
|
#ifdef DEBUG
|
||||||
MAP_IntMasterEnable();
|
MAP_IntMasterEnable();
|
||||||
PRCMCC3200MCUInit();
|
PRCMCC3200MCUInit();
|
||||||
#endif
|
#endif
|
||||||
|
|
|
@ -145,13 +145,13 @@ bool uart_init2(pyb_uart_obj_t *self) {
|
||||||
self->reg = UARTA0_BASE;
|
self->reg = UARTA0_BASE;
|
||||||
uartPerh = PRCM_UARTA0;
|
uartPerh = PRCM_UARTA0;
|
||||||
MAP_UARTIntRegister(UARTA0_BASE, UART0IntHandler);
|
MAP_UARTIntRegister(UARTA0_BASE, UART0IntHandler);
|
||||||
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_7);
|
MAP_IntPrioritySet(INT_UARTA0, INT_PRIORITY_LVL_3);
|
||||||
break;
|
break;
|
||||||
case PYB_UART_2:
|
case PYB_UART_2:
|
||||||
self->reg = UARTA1_BASE;
|
self->reg = UARTA1_BASE;
|
||||||
uartPerh = PRCM_UARTA1;
|
uartPerh = PRCM_UARTA1;
|
||||||
MAP_UARTIntRegister(UARTA1_BASE, UART1IntHandler);
|
MAP_UARTIntRegister(UARTA1_BASE, UART1IntHandler);
|
||||||
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_7);
|
MAP_IntPrioritySet(INT_UARTA1, INT_PRIORITY_LVL_3);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue