Giter VIP home page Giter VIP logo

mcucpp's People

Contributors

dema avatar evugar avatar flydrag avatar konstantinchizhov avatar pqqp avatar suprmaks avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mcucpp's Issues

Орфоргафически неверное слово в имени файла platform_dalay.h.

Неверное имя файла:
mcucpp/MSP430/platform_dalay.h.
Правильнее будет platform_delay.h.

Орфоргафически неверное слово Cysles в именах постоянных.
Обьявление перечисления:
enum
{
PlatformCyslesPerDelayLoop32 = 4,
PlatformCyslesPerDelayLoop16 = 3,
PlatformCyslesPerDelayLoop8 = 3
};

Правильнее будет:
enum
{
PlatformCyclesPerDelayLoop32 = 4,
PlatformCyclesPerDelayLoop16 = 3,
PlatformCyclesPerDelayLoop8 = 3
};

incorrect RFM70 module initialization

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.

Invalid read operation on inverted pin

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]

Possible bug in AVR adc.h

I think in Mcucpp/mcucpp/AVR/adc.h on line 110:
ADCSRA = (ADCSRA & DividerMask) | divider;
should be:
ADCSRA = (ADCSRA & ~DividerMask) | divider;

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.