Hi,
I would like to use my PIT (used in my sequencer) in the ChibiOS/RT. But I don't see where the hardware timer is initialized. I only see virtual timer functions. Do you know where the hardware timer is initialized?
For information, I use a PowerPC SPC564A with CW.
Thank you for you help.
Louis
Hardware Timer
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Hardware Timer
Hi,
Look in hal_lld.c (there is one for each device), it is part of the HAL provided by ST. PIT is initialized and used there.
Giovanni
Look in hal_lld.c (there is one for each device), it is part of the HAL provided by ST. PIT is initialized and used there.
Giovanni
Re: Hardware Timer
Thank you Giovani,
If I only want to change my sequencor by your scheduler of your RTOS with your clock, which files should I take?
Louis
If I only want to change my sequencor by your scheduler of your RTOS with your clock, which files should I take?
Louis
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Hardware Timer
In our project, we didn't use a RTOS. So, we created a scheduler named task_manager. Now, we decided to use another scheduler (with a new clock) from a RTOS. We chose yours
The file which initalizes my clock is in the HAL component, and the scheduler is in ChibiOS/RT.
So my questions is : which files (of HAL and RT) should I keep and modify?
This is my subject of my internship . So, sorry to disturb you with novice questions
Louis
The file which initalizes my clock is in the HAL component, and the scheduler is in ChibiOS/RT.
So my questions is : which files (of HAL and RT) should I keep and modify?
This is my subject of my internship . So, sorry to disturb you with novice questions
Louis
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Hardware Timer
The best way is to take an example ChibiOS project and then add your files to the Makefile. It is much easier this way.
If you want to integrate the RTOS in a different environment there would be many pitfalls.
Giovanni
If you want to integrate the RTOS in a different environment there would be many pitfalls.
Giovanni
Re: Hardware Timer
Hi,
Thank you. I will do it. I already checked your test and there is one for my PowerPC (SPC564A80). But the compiler is not CW.
But if I take the test of SPC56EC (which uses CW) and I change/edit some files, it should work, isn't it?
Louis
Thank you. I will do it. I already checked your test and there is one for my PowerPC (SPC564A80). But the compiler is not CW.
But if I take the test of SPC56EC (which uses CW) and I change/edit some files, it should work, isn't it?
Louis
- Giovanni
- Site Admin
- Posts: 14455
- Joined: Wed May 27, 2009 8:48 am
- Location: Salerno, Italy
- Has thanked: 1076 times
- Been thanked: 922 times
- Contact:
Re: Hardware Timer
Hi,
Only two demos have CW project files but all of them should work if you create the CW project correctly.
Giovanni
Only two demos have CW project files but all of them should work if you create the CW project correctly.
Giovanni
Who is online
Users browsing this forum: No registered users and 9 guests