eboxmaker / ebox_framework Goto Github PK
View Code? Open in Web Editor NEWebox是类似于arduino的一层api,简化stm32编程
License: MIT License
ebox是类似于arduino的一层api,简化stm32编程
License: MIT License
使用RTC::Begin(),初始化RTC,LSE总是不能初始化成功,老是卡死在int Rtc::_config(ClockS clock)函数的
/* Wait for RTC registers synchronization */
RTC_WaitForSynchro();
这一个地方。
想用USB HID来实现stm32的USB设备功能,现用到源程序中USBDevice.cpp文件,函数void USBDevice::connect(bool blocking)中是不是一直在阻塞,因为你的configured()函数
返回的一直是非0??是这样吗
I'm trying to tailor the firmware Lora STM8L for my master thesis on STM8L051F3, but I'm having trouble sending AT commands and receiving it. What do I need to change in the code of the STM8L051F3 and what can I remove from the code? this is very important. I'll be happy to get an answer. Thank you
我想为我在 STM8L051F3 上的硕士论文调整固件 Lora STM8L,但我在发送 AT 命令时遇到问题。 我需要在 STM8L051F3 的代码中更改哪些内容,我可以从代码中删除哪些内容? 这是非常重要的。 我会很高兴得到答案。
继承Stream可以获得更好的流式操作,比如String s = usart1.readString()
ebox_init();
PD2.mode(OUTPUT_PP);
PA8.mode(OUTPUT_PP);
PD2.set();
PA8.set();
uart3.begin(9600);
uart3.attach(test,RxIrq);
要使能中断才可以使用attach吧?
实际测试,改成下面的代码才能用
uart3.attach(pc_rcv_func,RxIrq);
**uart3.interrupt(RxIrq, ENABLE, 5, 1);**
还有如果使用freertos串口中断优先级会和rtos冲突,影响实时性,我试着修改了一下
void Uart::interrupt(IrqType type, FunctionalState enable,uint8_t preemption_priority, uint8_t sub_priority)
{
// ailike modified under freertos
// if(preemption_priority > 4)preemption_priority = 4;
// if(sub_priority > 4)sub_priority = 4;
**if(preemption_priority < 5)preemption_priority = 5;
if(sub_priority > 4)sub_priority = 4;**
NVIC_InitTypeDef NVIC_InitStructure;
component\usb_device_stack\USBDevice\USBHAL_STM32F1.cpp中函数USB_LP_CAN1_RX0_IRQHandler() 与
ebox\hardware\cortex-m3\Peripherals\ebox_can.cpp中USB_LP_CAN1_RX0_IRQHandler()函数会形成多重定义,怎么解决?
第一次读取温度钱要先启动一次温度转换,否则读取的值是85.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.