mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-11-08 14:43:04 +08:00
增加GPIO中断基本实现,fixing...
This commit is contained in:
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
@@ -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
|
||||
|
||||
Reference in new issue
Block a user