1234567891011121314151617181920 |
- #ifndef __BLACKSASI_GPIO_H__
- #define __BLACKSASI_GPIO_H__
- // LED control
- #define LED1_ON() PAREG->BSRR = 0b0000000000010000;
- #define LED1_OFF() PAREG->BSRR = 0b0000000000010000 << 16;
- #define LED2_ON() PAREG->BSRR = 0b0000000000100000;
- #define LED2_OFF() PAREG->BSRR = 0b0000000000100000 << 16;
- #define LED3_ON() PAREG->BSRR = 0b0000000001000000;
- #define LED3_OFF() PAREG->BSRR = 0b0000000001000000 << 16;
- #define LED_EXT_ON() PAREG->BSRR = 0b0000000000000001;
- #define LED_EXT_OFF() PAREG->BSRR = 0b0000000000000001 << 16;
- #define LED_ACT_ON() PAREG->BSRR = 0b0000000000010001;
- #define LED_ACT_OFF() PAREG->BSRR = 0b0000000000010001 << 16;
- bool gpioInit();
- #endif // __BLACKSASI_GPIO_H__
|