diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/applications/blehr_app.c b/bsp/bluetrum/ab32vg1-ab-prougen/applications/blehr_app.c index e79a4a671f879184ca88c530c0330cbd1737a9a7..8dfe885baac94c135357161ef3a07898eb77c2d9 100644 --- a/bsp/bluetrum/ab32vg1-ab-prougen/applications/blehr_app.c +++ b/bsp/bluetrum/ab32vg1-ab-prougen/applications/blehr_app.c @@ -33,7 +33,6 @@ int btctrl_mem_init(void) uint32_t block_size; bthw_get_heap_info(&heap_buf, &heap_size_buf, &block_size); - // rt_kprintf("heap_buf=0x%p heap_size_buf=0x%p block_size=0x%p\n", heap_buf, heap_size_buf, block_size); nsmem_cb_init(heap_buf, heap_size_buf, block_size); return 0; } diff --git a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c index 4246a92d0bd3111bd8f43e35e7a8183cff387cf0..67a76885bbb281dbf026b43a374203038be3dd42 100644 --- a/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c +++ b/bsp/bluetrum/ab32vg1-ab-prougen/board/board.c @@ -156,7 +156,6 @@ void cache_init(void) RT_SECTION(".irq.cache") void os_spiflash_lock(void) { - // if (rt_thread_self()->stat == RT_THREAD_RUNNING) { if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) { rt_mutex_take(&mutex_spiflash, RT_WAITING_FOREVER); } @@ -165,7 +164,6 @@ void os_spiflash_lock(void) RT_SECTION(".irq.cache") void os_spiflash_unlock(void) { - // if (rt_thread_self()->stat == RT_THREAD_RUNNING) { if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) { rt_mutex_release(&mutex_spiflash); } @@ -174,7 +172,6 @@ void os_spiflash_unlock(void) RT_SECTION(".irq.cache") void os_cache_lock(void) { - // if (rt_thread_self()->stat == RT_THREAD_RUNNING) { if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) { rt_mutex_take(&mutex_cache, RT_WAITING_FOREVER); } @@ -183,7 +180,6 @@ void os_cache_lock(void) RT_SECTION(".irq.cache") void os_cache_unlock(void) { - // if (rt_thread_self()->stat == RT_THREAD_RUNNING) { if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) { rt_mutex_release(&mutex_cache); } @@ -200,6 +196,8 @@ void rt_hw_console_output(const char *str) /** * @brief print exception error * @note Every message needed to print, must put in .comm exction. + * @note (IRQ in Flash: %x %x - %x %x\n, -, rt_interrupt_nest, PC, miss_addr) + * miss_addr: The address in map file minus 0x10000000 */ RT_SECTION(".irq.err") void exception_isr(void)