This repository has been archived on 2024-05-28. You can view files and clone it, but cannot push or open issues or pull requests.
2023-11-14 16:25:09 -05:00

29 lines
822 B
C
Executable File

#include <stdint.h>
typedef struct {
uint32_t t : 7; // 0 7-bit counter (MSB to LSB)
uint32_t wdga : 1; // 7 Activation bit
uint32_t reserve0 : 24; // 8 Reserve
} reg_wwdg_cr_t;
typedef struct {
uint32_t w : 7; // 0 7-bit window value
uint32_t reserve0 : 2; // 7 Reserve
uint32_t ewi : 1; // 9 Early wakeup interrupt
uint32_t reserve1 : 1; // 10 Reserve
uint32_t wdgtb : 3; // 11 Timer base
uint32_t reserve2 : 18; // 14 Reserve
} reg_wwdg_cfr_t;
typedef struct {
uint32_t ewif : 1; // 0 Early wakeup interrupt flag
uint32_t reserve0 : 31; // 1 Reserve
} reg_wwdg_sr_t;
typedef struct {
volatile reg_wwdg_cr_t cr;
volatile reg_wwdg_cfr_t cfr;
volatile reg_wwdg_sr_t sr;
} reg_wwdg_t;