Coder Social home page Coder Social logo

jorgeaparicio / libstm32pp Goto Github PK

View Code? Open in Web Editor NEW
85.0 85.0 36.0 613 KB

A template peripheral library for the STM32 microcontrollers, written in C++.

Home Page: http://embeddedprogrammer.blogspot.pe/2012/07/open-source-template-peripheral-library.html

C++ 100.00%

libstm32pp's People

Contributors

jorgeaparicio 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

Watchers

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

libstm32pp's Issues

docs/

Hey Jorge,

Thanks for this great piece of work, it's super cool!
I have some questions that might get solved with a small documentation file.

  • Any relevant defines? I found out that I need to define STM32F1XX to pick that platform. I'm also digging on USING_HSE_CRYSTAL, should I define USING_HSE_CRYSTAL and set HSE (in the enum) to the tick rate (in Hz)?
  • I'm struggling to make a LED blink hello world. It does not work yet but stuff I've found out in my way is that I need to compile it like this:
$(CXX) -o firmware.elf $(CPPFILES) -nostdlib -T ../linker/stm32f107vc.ld -I../../libstm32pp/include/ -std=c++11 -mthumb -ggdb

I'm able to debug in using st-link and seems to run well (although LED does never get ON).

Thanks again!

External interuppt

Hi Jorge,
i saw your projects and tutorials. You are doing a very good job.
I have a question about external interuppt support.

I have written a small program that should controll a small power unit.
It will rule the carburetor with a small servo for holding the messured rpm constant.

I have the problem that the external interuppt is not triggering.

My dev is a stm32vldiscovery board.

What i have got (It is more, but this are the hot parts here):

typedef PA1 RPMPIN; typedef EXTI1 RPMINT;

void initializeGpio()
{
GPIOA::enableClock();

RPMINT::enableHardwareInterruptByRisingEdge();
RPMPIN::setMode(gpio::cr::INPUT_PULL_X);

}

void interrupt::EXTI1()
{
RPMINT::clearPendingFlag();
}

I read in the spec that i have to set the nvic and the interupt enabeled, but I can not see how to make that work with your libary.

I want to make it happen with internal pull-up.

So, what have i missed ?

If you help me here i will write an example and give that to your project if you want.

Thanks, Peter

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.