You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- #ifndef MODBUS_BACKUP_TEST_MAIN_H
- #define MODBUS_BACKUP_TEST_MAIN_H
-
- #include <stdint.h>
-
- typedef struct
- {
- volatile uint32_t BKP0R;
- volatile uint32_t BKP1R;
- volatile uint32_t BKP2R;
- volatile uint32_t BKP3R;
- volatile uint32_t BKP4R;
- volatile uint32_t BKP5R;
- volatile uint32_t BKP6R;
- volatile uint32_t BKP7R;
- volatile uint32_t BKP8R;
- volatile uint32_t BKP9R;
- volatile uint32_t BKP10R;
- volatile uint32_t BKP11R;
- volatile uint32_t BKP12R;
- volatile uint32_t BKP13R;
- volatile uint32_t BKP14R;
- volatile uint32_t BKP15R;
- volatile uint32_t BKP16R;
- volatile uint32_t BKP17R;
- volatile uint32_t BKP18R;
- volatile uint32_t BKP19R;
- } TEST_RTC_TYPEDEF;
-
- extern TEST_RTC_TYPEDEF TestRtc;
-
- #define RTC (&TestRtc)
- #define RCC_RTCCLKSOURCE_NO_CLK (0U)
- #define RCC_FLAG_LSIRDY (0U)
- #define RESET (0U)
-
- #define __HAL_RCC_PWR_CLK_ENABLE() do { } while (0)
- #define HAL_PWR_EnableBkUpAccess() do { } while (0)
- #define __HAL_RCC_GET_RTC_SOURCE() (1U)
- #define __HAL_RCC_LSI_ENABLE() do { } while (0)
- #define __HAL_RCC_GET_FLAG(flag) (1U)
- #define __HAL_RCC_RTC_CONFIG(source) do { } while (0)
- #define __HAL_RCC_RTC_ENABLE() do { } while (0)
- #define HAL_GetTick() (0U)
-
- #endif
|