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