测试软件IIC

This commit is contained in:
2024-12-28 14:20:30 +08:00
parent 8c1cf00d2f
commit d97d017f42
6 changed files with 106 additions and 18 deletions

View File

@@ -45,9 +45,9 @@
/* select a system clock by uncommenting the following line */
//#define __SYSTEM_CLOCK_8M_HXTAL (__HXTAL)
#define __SYSTEM_CLOCK_8M_IRC8M (__IRC8M)
// #define __SYSTEM_CLOCK_8M_IRC8M (__IRC8M)
// #define __SYSTEM_CLOCK_72M_PLL_HXTAL (uint32_t)(72000000)
// #define __SYSTEM_CLOCK_72M_PLL_IRC8M_DIV2 (uint32_t)(72000000)
#define __SYSTEM_CLOCK_72M_PLL_IRC8M_DIV2 (uint32_t)(72000000)
#define RCU_MODIFY(__delay) do{ \
volatile uint32_t i; \