Skip to content

Commit 8e0c469

Browse files
committed
[bluetrum] Remove unnecessary comments
1 parent 6a975ff commit 8e0c469

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

bsp/bluetrum/ab32vg1-ab-prougen/applications/blehr_app.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ int btctrl_mem_init(void)
3333
uint32_t block_size;
3434

3535
bthw_get_heap_info(&heap_buf, &heap_size_buf, &block_size);
36-
// rt_kprintf("heap_buf=0x%p heap_size_buf=0x%p block_size=0x%p\n", heap_buf, heap_size_buf, block_size);
3736
nsmem_cb_init(heap_buf, heap_size_buf, block_size);
3837
return 0;
3938
}

bsp/bluetrum/ab32vg1-ab-prougen/board/board.c

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,6 @@ void cache_init(void)
156156
RT_SECTION(".irq.cache")
157157
void os_spiflash_lock(void)
158158
{
159-
// if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
160159
if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) {
161160
rt_mutex_take(&mutex_spiflash, RT_WAITING_FOREVER);
162161
}
@@ -165,7 +164,6 @@ void os_spiflash_lock(void)
165164
RT_SECTION(".irq.cache")
166165
void os_spiflash_unlock(void)
167166
{
168-
// if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
169167
if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) {
170168
rt_mutex_release(&mutex_spiflash);
171169
}
@@ -174,7 +172,6 @@ void os_spiflash_unlock(void)
174172
RT_SECTION(".irq.cache")
175173
void os_cache_lock(void)
176174
{
177-
// if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
178175
if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) {
179176
rt_mutex_take(&mutex_cache, RT_WAITING_FOREVER);
180177
}
@@ -183,7 +180,6 @@ void os_cache_lock(void)
183180
RT_SECTION(".irq.cache")
184181
void os_cache_unlock(void)
185182
{
186-
// if (rt_thread_self()->stat == RT_THREAD_RUNNING) {
187183
if ((rt_thread_self() != RT_NULL) && (rt_interrupt_nest == 0)) {
188184
rt_mutex_release(&mutex_cache);
189185
}
@@ -200,6 +196,8 @@ void rt_hw_console_output(const char *str)
200196
/**
201197
* @brief print exception error
202198
* @note Every message needed to print, must put in .comm exction.
199+
* @note (IRQ in Flash: %x %x - %x %x\n, -, rt_interrupt_nest, PC, miss_addr)
200+
* miss_addr: The address in map file minus 0x10000000
203201
*/
204202
RT_SECTION(".irq.err")
205203
void exception_isr(void)

0 commit comments

Comments
 (0)