mirror of
https://github.com/eddyem/stm32samples.git
synced 2026-02-28 11:54:30 +03:00
fixed bugs in shutter; need to check its work and finish readme
This commit is contained in:
@@ -35,16 +35,15 @@ void sys_tick_handler(void){
|
||||
int main(void){
|
||||
char inbuff[MAXSTRLEN+1];
|
||||
StartHSE();
|
||||
hw_setup();
|
||||
SysTick_Config(72000);
|
||||
USBPU_OFF();
|
||||
hw_setup();
|
||||
flashstorage_init();
|
||||
hw_setup();
|
||||
USB_setup();
|
||||
// close shutter and only after that turn on USB pullup
|
||||
while(!close_shutter() && Tms < the_conf.waitingtime) IWDG->KR = IWDG_REFRESH;
|
||||
USBPU_ON();
|
||||
|
||||
close_shutter();
|
||||
|
||||
uint32_t Terr = Tms + 2*ERRPERIOD;
|
||||
while(1){
|
||||
IWDG->KR = IWDG_REFRESH; // refresh watchdog
|
||||
|
||||
Reference in New Issue
Block a user