keil programming of some operations stm32

Only as a learning record, Gangster skip.

1, run their own writing led light does not shine:

It found that the main function was not introduced

#include "delay.h"

with

deley_init();

Because bloggers used the c-file led'sdelay_ms(500);

2, as long as gpio led to an initialization (push-pull output), not led default operation, the operation is led bright.

The following warning appears when 3,2019.12.03 write multiple external interrupts:
Here Insert Picture Description
main.c (11): warning: # 223-D: function "trytemp" declared implicitly

By troubleshooting, I found try.hfile written #ifdef #ifndef

Here Insert Picture Description

After modifications would have to be resolved:

Here Insert Picture Description
Here Insert Picture Description

Published 71 original articles · won praise 9 · views 6570

Guess you like

Origin blog.csdn.net/weixin_41529093/article/details/103348142