Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usart baud value not working proper #28

Open
WildfootW opened this issue May 13, 2019 · 0 comments
Open

Usart baud value not working proper #28

WildfootW opened this issue May 13, 2019 · 0 comments

Comments

@WildfootW
Copy link

I created a very simple file as below
but USART baud still working as 57600 which seems from ./inc/HAL/Atmel/Usart.hpp:26: Usart(uint32_t baud = 57600)

#pragma once

#include "auto_field.hpp"

#include "HAL/Atmel/Device.hpp"
#include "HAL/Atmel/Power.hpp"

using namespace HAL::Atmel;

struct Test
{
    typedef Test This;
    typedef Logging::Log<Loggers::Main> log;

    Usart0 usart0 = { 115200 };
    auto_var(pinTX, PinPD1<64>(usart0));

    typedef Delegate<This, decltype(pinTX), &This::pinTX> Handlers;

    Test() {}

    void loop()
    {
        log::debug(F("**Test**"));
    }

    void main() { while(true) loop(); }
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant