增加GPIO中断基本实现,fixing...

This commit is contained in:
FuChao committed 2021-09-09 00:54:54 +08:00
1 parent 1612d8900b
commit a33e89a79c
2 files changed
+68 -116

No files matched your search

File diff suppressed because it is too large. Load diff
+1 -1
View File
@@ -28,7 +28,7 @@ extern "C" {
#define PIN_PORT(pin) ((uint8_t)(((pin) >> 4) & 0xFu))
#define PIN_NO(pin) ((uint8_t)((pin) & 0xFu))
#define PIN_GDPORT(pin) ((GPIO_TypeDef *)(GPIOA_BASE + (0x400u * PIN_PORT(pin))))
#define PIN_GDPORT(pin) ((GPIO_TypeDef *)(GPIOB_BASE + (0x400u * PIN_PORT(pin))))
#define PIN_GDPIN(pin) ((uint16_t)(1u << PIN_NO(pin)))
struct pin_irq_map