rt-thread-official/bsp/maxim/MAX32660_EVSYS/board/board.h

46 lines
1.0 KiB
C
Raw Normal View History

2021-02-12 00:28:44 +08:00
/*
* Copyright (c) 2006-2020, RT-Thread Development Team
*
* SPDX-License-Identifier: Apache-2.0
*
* Change Logs:
* Date Author Notes
* 2021-02-11 supperthomas first version
*
*/
2021-02-06 07:36:26 +08:00
#ifndef _BOARD_H_
#define _BOARD_H_
#include <rtthread.h>
#include <rthw.h>
2021-02-16 00:00:26 +08:00
#include "mxc_config.h"
#include "mxc_assert.h"
2021-02-11 10:57:00 +08:00
#define MCU_FLASH_START_ADRESS ((uint32_t)0x0)
#define MCU_FLASH_SIZE_KB (256)
#define MCU_FLASH_END_ADDRESS ((uint32_t)(MCU_FLASH_START_ADRESS + MCU_FLASH_SIZE*1024))
#define MCU_SRAM_SIZE_KB (96)
#define MCU_SRAM_START (0x20000000)
#define MCU_SRAM_END (MCU_SRAM_START + MCU_SRAM_SIZE_KB * 1024)
2021-02-06 07:36:26 +08:00
#if defined(__ARMCC_VERSION)
2021-02-06 07:36:26 +08:00
extern int Image$$RW_IRAM1$$ZI$$Limit;
#define HEAP_BEGIN ((void *)&Image$$RW_IRAM1$$ZI$$Limit)
#elif __ICCARM__
#pragma section="CSTACK"
#define HEAP_BEGIN (__segment_end("CSTACK"))
#else
2021-02-11 20:50:05 +08:00
extern int _ebss;
#define HEAP_BEGIN ((void *)&_ebss)
2021-02-06 07:36:26 +08:00
#endif
2021-02-11 10:57:00 +08:00
#define HEAP_END MCU_SRAM_END
2021-02-06 07:36:26 +08:00
void rt_hw_board_init(void);
#endif