aboutsummaryrefslogtreecommitdiffstats
path: root/os/hal/templates/meta/driver_lld.c
diff options
context:
space:
mode:
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 */