xud6的笔记本
  • 主页
  • Centos
  • SELinux
  • FreeIPA
  • node.js
  • ember.js
  • Hyper-V
  • Windows
  • Embedded
  • Linux
  • 树莓派
  • MACOS

CC1310

A collection of 2 posts
MCU

CC1310 Sensor Controller 变更RTC事件时序

在delay时间后以interval的周期运行Sensor Controller的RTC事件 #include DeviceFamily_constructPath(inc/hw_aon_rtc.h) uint32_t scifOsalEnterCriticalSection(void); void scifOsalLeaveCriticalSection(uint32_t key); //delay应大于8 void SceRTCDelay(uint32_t delay,uint32_t interval){ uint32_t key, sec, subsec,startTime; /* disable hwi to make sure startTime won't become past */ key = scifOsalEnterCriticalSection(); /* read current rtc value */ sec
2018年4月12日
MCU

TI CC1310 TRNG使用

头文件 #include DeviceFamily_constructPath(driverlib/trng.h) 初始化 Power_setDependency(PowerCC26XX_PERIPH_TRNG); TRNGEnable(); while (!(TRNGStatusGet() & TRNG_NUMBER_READY)) { //wait for random number generator } 读取低32位 TRNGNumberGet(TRNG_LOW_WORD) 判断是否已经启动 if (0 == (HWREG(TRNG_BASE + TRNG_O_CTL) & TRNG_CTL_TRNG_EN)) { //trng is disable } 关闭 TRNGDisable(); Power_releaseDependency(PowerCC26XX_
2018年4月12日
Page 1 of 1
xud6的笔记本 © 2025
Powered by Ghost