-
Notifications
You must be signed in to change notification settings - Fork 2
Mchp zephyr dspic release v4.0 #3
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
base: dsPIC33A
Are you sure you want to change the base?
Conversation
e346da9
to
933d1d4
Compare
1d6b675
to
ad4c3e3
Compare
933d1d4
to
68ced8c
Compare
The following west manifest projects have changed revision in this Pull Request:
✅ All manifest checks OK Note: This message is automatically posted and updated by the Manifest GitHub Action. |
? 0 | ||
: (uint32_t)TMR1 / (uint32_t)TIMER1_CYCLES_PER_TICK; | ||
ticks_elapsed = | ||
(uint32_t)TMR1 < (uint32_t)TIMER1_CYCLES_PER_TICK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TMR 1 should not be hardcoded as a bigger device can have multiple TMRs. Also, the 128K device has only one TMR1 that is also used as a tick timer for the RTOS but the SCCP can be configured as a Timer and used by the application. This needs to be checked.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Noted: We will make this driver configurable for different instances of the same IP with DTS.
#include <zephyr/drivers/timer/system_timer.h> | ||
#include <xc.h> | ||
|
||
#define TIMER1_CYCLES_PER_TICK \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Generic and Kernel timer drivers' must be different
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarification: This is the kernel timer driver, used for kernel ticks.
Highlights:
- UART interrupt support
- Program memory optimisation
- Support for ztest and twister
- Context switch refignment
- Kernel and thread test cases
- Samples support
- UART: Echo bot, native tty, passthrough
- Blinky
- Philosophers
- Hello world
- Pin control driver
- New board support (sdPIC33AK512MPS512)
Fixes:
- Context switch fixes
- System timer fixes
- Build fixes