konstantinchizhov / mcucpp Goto Github PK
View Code? Open in Web Editor NEWC++ framework for different microcontrollers
License: Other
C++ framework for different microcontrollers
License: Other
Неверное имя файла:
mcucpp/MSP430/platform_dalay.h.
Правильнее будет platform_delay.h.
Орфоргафически неверное слово Cysles в именах постоянных.
Обьявление перечисления:
enum
{
PlatformCyslesPerDelayLoop32 = 4,
PlatformCyslesPerDelayLoop16 = 3,
PlatformCyslesPerDelayLoop8 = 3
};
Правильнее будет:
enum
{
PlatformCyclesPerDelayLoop32 = 4,
PlatformCyclesPerDelayLoop16 = 3,
PlatformCyclesPerDelayLoop8 = 3
};
On STM32, it seems that unshifted port inversion mask applied to the shifted value upon PinRead() function. For example, if the following pin list used:
Pa1Inv, Pb2Inv, Pb3Inv, Pb4Inv, Pb5Inv, Pc10Inv, Pc11Inv, Pc12Inv,
it could be noted, that after read of PortC, value of three bits copied to the right position, then masked (we get 0xe0 in the case of all ones) and then inverted using 0x1c00 mask which is wrong and looks like unshifted PortC mask.
Compiler: arm-none-eabi-gcc (GNU Tools for ARM Embedded Processors) 4.9.3 20150303 (release) [ARM/embedded-4_9-branch revision 221220]
Do you plan to change requirements to python3?
RFM70 datasheet claims that only registers 0..8 from bank 1 should be written most significant byte first (MSB first).
Rfm70<>::WriteReg32()
function writes 32-bit data in platform native endianess (little endian for AVR and STM32, not sure for MSP430). It means that Rfm70<>::WriteReg32()
sends least significant byte of 32-bit word first.
But Rfm70<>::InitBank1Regs()
assumes MSB first for WriteReg32(): "magic" register values from sample code for regs 0..6 are sent as-is, and only reg values for regs 0x0c and 0x0d send in reverse byte order.
Also SetAddresess() depends on WriteReg32() function and sets address incorrectly.
I think in Mcucpp/mcucpp/AVR/adc.h on line 110:
ADCSRA = (ADCSRA & DividerMask) | divider;
should be:
ADCSRA = (ADCSRA & ~DividerMask) | divider;
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.