- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I read some similar discussions, but still I have a questions about usage of hw_timer.h .
1. How can I compile to use this?
Currently, I added a line above to bottom of makefile.mk .
APP_PATCHES_AND_LIBS += hw_timer.a
Is this way is correct?
2. Is there need some initialization to use this?
It seems only 3 functions are defined in hw_timer.h to user, but don't have an init func.
If Q.1 is correct, I can not get an interrupt. Is there need some interrupt settings to use hw_timer?
Thank you,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi kwang and kawamura-san,
My makefile.mk is the following.
C_FLAGS += -std=gnu99
APP_SRC = Mosic.c Mosic_db.c
APP_PATCHES_AND_LIBS += hw_timer.a
hw_timer works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Kevin recently furnished some sample code with regards to the use of hw_timer. Let us know if it helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I already read it and sample code is very helpful for me.
But, There have no answer for my Question 1.
Question 1 is about environment setting of SDK not a code.
Thank you,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi kwang and kawamura-san,
My makefile.mk is the following.
C_FLAGS += -std=gnu99
APP_SRC = Mosic.c Mosic_db.c
APP_PATCHES_AND_LIBS += hw_timer.a
hw_timer works fine.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello yuichi,
Answer to question 1:
APP_PATCHES_AND_LIBS += hw_timer.a
Yes, this is correct
Thanks
JT