aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/meta/driver_lld.c
diff options
context:
space:
mode:
authorgdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-28 18:44:46 +0000
committergdisirio <gdisirio@35acf78f-673a-0410-8e92-d51de3d6d3f4>2011-02-28 18:44:46 +0000
commit6b5ddb71fcb396ec826a283427b4771018d193e8 (patch)
tree89b2fdc761a8a39cc75db7b97a91f4088da6612e /os/hal/templates/meta/driver_lld.c
parent381bddaf5af985848e36ed8abbd4321bbb442538 (diff)
downloadChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.tar.gz
ChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.tar.bz2
ChibiOS-6b5ddb71fcb396ec826a283427b4771018d193e8.zip
GPT driver model, STM32 GPT driver implementation, not tested, documentation not done yet.
git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@2779 35acf78f-673a-0410-8e92-d51de3d6d3f4
Diffstat (limited to 'os/hal/templates/meta/driver_lld.c')
-rw-r--r--os/hal/templates/meta/driver_lld.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/os/hal/templates/meta/driver_lld.c b/os/hal/templates/meta/driver_lld.c
index 051dfac03..c548ccd8a 100644
--- a/os/hal/templates/meta/driver_lld.c
+++ b/os/hal/templates/meta/driver_lld.c
@@ -68,7 +68,7 @@ void xxx_lld_init(void) {
*/
void xxx_lld_start(XXXDriver *xxxp) {
- if (xxxp->xxx_state == XXX_STOP) {
+ if (xxxp->state == XXX_STOP) {
/* Clock activation.*/
}
/* Configuration.*/
@@ -83,6 +83,10 @@ void xxx_lld_start(XXXDriver *xxxp) {
*/
void xxx_lld_stop(XXXDriver *xxxp) {
+ if (xxxp->state == XXX_READY) {
+ /* Clock deactivation.*/
+
+ }
}
#endif /* HAL_USE_XXX */