This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] MSP430FR2533:代码审查

Guru**** 2380860 points
Other Parts Discussed in Thread: MSP430FR2533
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/msp-low-power-microcontrollers-group/msp430/f/msp-low-power-microcontroller-forum/1082799/msp430fr2533-code-review

部件号:MSP430FR2533
“线程: 测试”中讨论的其它部件

大家好,团队  

寻求一些帮助。

尝试在 MSP430Fr2533的 FRAM 中写入结构。 这里是示例代码。  

#define FRAM_TEST_START 0xCABA

typedef struct st_adxlsensor
{
    //switch status
    uint8_t l1;
    uint8_t l2;
    uint8_t l3;
}MEM_status;

MEM_status current_MEM_status;

void main(void)
{
    current_MEM_status.l1 = 1;
    current_MEM_status.l2 = 2;
    current_MEM_status.l3 = 3;

    FRAMCtl_write8(&current_MEM_status, (uint8_t*) FRAM_TEST_START, sizeof(current_MEM_status));
}

谢谢你。

-标记