stm32l: update other code to use delay lib