@@ -11,6 +11,7 | |||
|
11 | 11 | #include <uart.h> |
|
12 | 12 | #include <stdint.h> |
|
13 | 13 | #include <bsp.h> |
|
14 | #include <core.h> | |
|
14 | 15 | |
|
15 | 16 | #undef errno |
|
16 | 17 |
@@ -40,7 +40,8 i2c_t i2copen(int count) | |||
|
40 | 40 | #define _INIT_DEV(_RCC_) \ |
|
41 | 41 | RCC_APB1PeriphClockCmd(_RCC_, ENABLE); \ |
|
42 | 42 | RCC_APB1PeriphResetCmd(_RCC_, ENABLE); \ |
|
43 | RCC_APB1PeriphResetCmd(_RCC_, DISABLE); | |
|
43 | RCC_APB1PeriphResetCmd(_RCC_, DISABLE); \ | |
|
44 | RCC_APB1PeriphClockCmd(_RCC_, ENABLE); | |
|
44 | 45 | |
|
45 | 46 | switch(count) |
|
46 | 47 | { |
General Comments 0
You need to be logged in to leave comments.
Login now