mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-03-27 01:10:20 +08:00
[bsp][raspberry-pico]All memory is used for heap.
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
#include "board.h"
|
||||
#include "hardware/structs/systick.h"
|
||||
|
||||
uint8_t heap[1024 * 80];
|
||||
|
||||
void isr_systick(void)
|
||||
{
|
||||
/* enter interrupt */
|
||||
@@ -45,7 +43,7 @@ uint32_t systick_config(uint32_t ticks)
|
||||
|
||||
void rt_hw_board_init()
|
||||
{
|
||||
rt_system_heap_init(heap, (uint8_t *)heap + sizeof(heap));
|
||||
rt_system_heap_init(HEAP_BEGIN, HEAP_END);
|
||||
|
||||
alarm_pool_init_default();
|
||||
|
||||
|
||||
@@ -20,9 +20,9 @@
|
||||
#define PICO_SRAM_SIZE 256
|
||||
#define PICO_SRAM_END (0x20000000 + PICO_SRAM_SIZE * 1024)
|
||||
|
||||
extern int __bss_end;
|
||||
#define HEAP_BEGIN (&__bss_end)
|
||||
#define HEAP_END PICO_SRAM_END
|
||||
extern int __bss_end__;
|
||||
#define HEAP_BEGIN (&__bss_end__)
|
||||
#define HEAP_END ((void *)PICO_SRAM_END)
|
||||
|
||||
int rt_hw_uart_init(void);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user