新手入门
- 积分
- 11
- 金钱
- 11
- 注册时间
- 2016-12-18
- 在线时间
- 1 小时
|

楼主 |
发表于 2016-12-19 11:12:01
|
显示全部楼层
在keil 5的 example 里面有 c++的例子,有一个是有 使用std::map 功能的,由于里面的串口使用 PA8,PA9和我的 板子配PB6,PB7的不一样,改了一下,
发现是可以跑的,能够正确的打印 串口发送信息。
里面有个retarget.c ,可能是来解决这个 std库调用底层的问题。 后面研究了在发上来。
/*----------------------------------------------------------------------------
* Name: Retarget.c
* Purpose: 'Retarget' layer for target-dependent low level functions
* Note(s):
*----------------------------------------------------------------------------
* This file is part of the uVision/ARM development tools.
* This software may only be used under the terms of a valid, current,
* end user licence from KEIL for a compatible version of KEIL software
* development tools. Nothing else gives you the right to use this software.
*
* This software is supplied "AS IS" without warranties of any kind.
*
* Copyright (c) 2012 Keil - An ARM Company. All rights reserved.
*----------------------------------------------------------------------------*/ |
|