如何把cc936.c存储在外部的FLASH芯片中

本文介绍了如何将cc936.c文件中的oem2unip[]和uni2oem[]数组内容存储到外部的FLASH芯片中,以实现程序运行时从外部读取这些数据。
摘要由CSDN通过智能技术生成

转载:http://www.stmcu.org.cn/module/forum/forum.php?mod=viewthread&tid=599065&highlight=936

//把从 oem2unip[] 和 uni2oem[]两个数组读取元素的部分程序从外部FLASH读取就可以了,得事先用一段程序把oem2unip[] 和 uni2oem[]两个数组存入到外部flash中。
 


WCHAR ff_convert (    /* Converted code, 0 means conversion error */
    WCHAR    src,    /* Character code to be converted */
    UINT    dir        /* 0: Unicode to OEMCP, 1: OEMCP to Unicode */
)
{
    const WCHAR *p;
    WCHAR c;
    int i, n, li, hi;


    if (src < 0x80) {    /* ASCII */
        c = src;
    } else {
        if (dir) {        /* OEMCP to unicode */
            p = oem2uni;
            hi = sizeof(oem2uni) / 4 - 1;
        } else {        /* Unicode to OEMCP */
            p = uni2oem;
            hi = sizeof(uni2oem) / 4 - 1;
  
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值