mirror of
https://github.com/YuzuZensai/MCUFRIEND_kbv.git
synced 2026-01-31 14:57:48 +00:00
support NUCLEO-F072RB
This commit is contained in:
@@ -391,6 +391,7 @@ void write_8(uint8_t x)
|
|||||||
|| defined(ARDUINO_NUCLEO_F401RE) || defined(ARDUINO_NUCLEO_F411RE) \
|
|| defined(ARDUINO_NUCLEO_F401RE) || defined(ARDUINO_NUCLEO_F411RE) \
|
||||||
|| defined(ARDUINO_NUCLEO_F446RE) || defined(ARDUINO_NUCLEO_L053R8) \
|
|| defined(ARDUINO_NUCLEO_F446RE) || defined(ARDUINO_NUCLEO_L053R8) \
|
||||||
|| defined(ARDUINO_NUCLEO_L152RE) || defined(ARDUINO_NUCLEO_L476RG) \
|
|| defined(ARDUINO_NUCLEO_L152RE) || defined(ARDUINO_NUCLEO_L476RG) \
|
||||||
|
|| defined(ARDUINO_NUCLEO_F072RB) \
|
||||||
)
|
)
|
||||||
#define IS_NUCLEO144 ( defined(ARDUINO_NUCLEO_F207ZG) \
|
#define IS_NUCLEO144 ( defined(ARDUINO_NUCLEO_F207ZG) \
|
||||||
|| defined(ARDUINO_NUCLEO_F429ZI) || defined(ARDUINO_NUCLEO_F767ZI) \
|
|| defined(ARDUINO_NUCLEO_F429ZI) || defined(ARDUINO_NUCLEO_F767ZI) \
|
||||||
@@ -437,6 +438,12 @@ void write_8(uint8_t x)
|
|||||||
#define GPIO_INIT() { RCC->AHBENR |= RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_GPIOCEN; }
|
#define GPIO_INIT() { RCC->AHBENR |= RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_GPIOCEN; }
|
||||||
#define PIN_OUTPUT(port, pin) PIN_MODE2((port)->MODER, pin, 0x1)
|
#define PIN_OUTPUT(port, pin) PIN_MODE2((port)->MODER, pin, 0x1)
|
||||||
|
|
||||||
|
#elif defined(STM32F072xB)
|
||||||
|
#define WRITE_DELAY { }
|
||||||
|
#define READ_DELAY { RD_ACTIVE; }
|
||||||
|
#define GPIO_INIT() { RCC->AHBENR |= RCC_AHBENR_GPIOAEN | RCC_AHBENR_GPIOBEN | RCC_AHBENR_GPIOCEN; }
|
||||||
|
#define PIN_OUTPUT(port, pin) PIN_MODE2((port)->MODER, pin, 0x1)
|
||||||
|
|
||||||
#elif defined(STM32F091xC)
|
#elif defined(STM32F091xC)
|
||||||
#define WRITE_DELAY { }
|
#define WRITE_DELAY { }
|
||||||
#define READ_DELAY { RD_ACTIVE; }
|
#define READ_DELAY { RD_ACTIVE; }
|
||||||
|
|||||||
Reference in New Issue
Block a user