forked from nanoframework/nf-interpreter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
target_common.c
28 lines (22 loc) · 852 Bytes
/
target_common.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//
// Copyright (c) .NET Foundation and Contributors
// Portions Copyright (c) Microsoft Corporation. All rights reserved.
// See LICENSE file in the project root for full license information.
//
#include <nanoHAL_v2.h>
#include "target_board.h"
#include "target_common.h"
HAL_SYSTEM_CONFIG HalSystemConfig =
{
{ true }, // HAL_DRIVER_CONFIG_HEADER Header;
1, //ConvertCOM_DebugHandle(1),
0,//ConvertCOM_DebugHandle(0),
921600,
0, // STDIO = COM2 or COM1
{ RAM1_MEMORY_StartAddress, RAM1_MEMORY_Size },
{ FLASH1_MEMORY_StartAddress, FLASH1_MEMORY_Size }
};
HAL_TARGET_CONFIGURATION g_TargetConfiguration;
// these addresses are the start and end address of flash region FLASH
uint32_t __nanoImage_start__ = FLASH1_MEMORY_StartAddress;
uint32_t __nanoImage_end__ = (FLASH1_MEMORY_StartAddress + FLASH1_MEMORY_Size);