• Welcome to Andy's Workshop Forums. Please login or sign up.
 
May 10, 2024, 07:20:32 am

News:

SMF - Just Installed!


Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - pratipm

1
I am struggling to grasp this whole new concept of variadic templates etc. and can't figure out how do I define a USART device as a class variable where the usart parameters are set out side the constructor of the usart. Something like this:

class MyClass {
public:
    Usart1<> usart1;

    void setBaudRate(int rate) { /* Set the baudrate of usart1 */ }

    void run() {
   
        setBaurate(9600);
    .....
    }
};

Any pointers?
Thanks.

-Pratip

2
I downloaded the library couple of weeks back from GitHub, and do not remember which version was it. Looking at the file README.md I do see reference to STM32F030 device, so I must be having the latest.
Is there a direct way to verify?
Thanks.

Pratip
3
What is the best way to duplicate an eclipse/CDT project? I tried to duplicate an existing project in the example directory by right click/edit-copy/edit-paste followed by renaming everything about the original project/files both at the Project Explorer level as well as in the Project properties. Everything up to build works fine, but GDB always complains about missing original source file. I used grep on every file in my project directory and could not find a single instance of that original .cpp file/directory name. Not sure where GDB is getting the reference to the file from the old project.
I understand this is not really stm32plus issue, but any help will be greatly appreciated.
Thanks in advance.

-Pratip
4
Is there any simple way I can use the library for STM32F103C8 (Medium density Performance line)? Boards with this cpu are available for about $5 on ebay, and I happen to have 2 of them.
Thanks.

-Pratip