// PB0  - Green LED
// PB7  - Blue LED
// PB14 - Red LED
// PC13 - User Button

PD8 TX USART3
PD9 RX USART3

MSP: Microcontroller Support Package


#define	GPIO_INPUT_MODE	            (0x0)  // 0b00
#define	GPIO_OUTPUT_MODE	    (0x1)  // 0b01
#define	GPIO_ALTERNATE_MODE	    (0x2)  // 0b10
#define	GPIO_ANALOG_MODE	    (0x3)  // 0b11

// GPIO clock enable through RCC_AHB1ENR register
#define GPIOA_EN		    (1U<<0)
#define GPIOB_EN		    (1U<<1)
#define GPIOC_EN		    (1U<<2)
#define GPIOD_EN		    (1U<<3)
#define GPIOE_EN		    (1U<<4)
#define GPIOF_EN		    (1U<<5)
#define GPIOG_EN		    (1U<<6)
#define GPIOH_EN		    (1U<<7)
#define GPIOI_EN	            (1U<<8)
#define GPIOJ_EN		    (1U<<9)
#define GPIOK_EN		    (1U<<10)

// Peripheral clock enable through RCC_APB1ENR register
#define	CAN3_EN		    	    (1U<<13)
#define	SPI2_EN		    	    (1U<<14)
#define	SPI3_EN		    	    (1U<<15)
#define	USART2_EN		    (1U<<17)
#define	USART3_EN		    (1U<<18)
#define	UART4_EN		    (1U<<19)
#define	UART5_EN		    (1U<<20)
#define	I2C1_EN		            (1U<<21)
#define	I2C2_EN		    	    (1U<<22)
#define	I2C3_EN		    	    (1U<<23)
#define	I2C4_EN		    	    (1U<<24)
#define	CAN1_EN		    	    (1U<<25)
#define	CAN2_EN		    	    (1U<<26)
#define	UART7_EN		    (1U<<30)
#define	UART8_EN		    (1U<<31)