implement traffic lights?
This commit is contained in:
13
TrafficLightsPlus/Core/Inc/breadboard.h
Normal file
13
TrafficLightsPlus/Core/Inc/breadboard.h
Normal file
@@ -0,0 +1,13 @@
|
||||
/*
|
||||
* breadboard.h
|
||||
*
|
||||
* Created on: Sep 20, 2025
|
||||
* Author: ja
|
||||
*/
|
||||
|
||||
#ifndef INC_BREADBOARD_H_
|
||||
#define INC_BREADBOARD_H_
|
||||
|
||||
void breadboard(int);
|
||||
|
||||
#endif /* INC_BREADBOARD_H_ */
|
||||
@@ -57,6 +57,12 @@ void Error_Handler(void);
|
||||
/* USER CODE END EFP */
|
||||
|
||||
/* Private defines -----------------------------------------------------------*/
|
||||
#define RedLight_Pin GPIO_PIN_2
|
||||
#define RedLight_GPIO_Port GPIOE
|
||||
#define YellowLight_Pin GPIO_PIN_3
|
||||
#define YellowLight_GPIO_Port GPIOE
|
||||
#define GreenLight_Pin GPIO_PIN_4
|
||||
#define GreenLight_GPIO_Port GPIOE
|
||||
#define PC14_OSC32_IN_Pin GPIO_PIN_14
|
||||
#define PC14_OSC32_IN_GPIO_Port GPIOC
|
||||
#define PC15_OSC32_OUT_Pin GPIO_PIN_15
|
||||
|
||||
Reference in New Issue
Block a user