mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-18 16:27:34 +01:00
29 lines
745 B
C++
29 lines
745 B
C++
#ifndef ION_DEVICE_N0110_CONFIG_LED_H
|
|
#define ION_DEVICE_N0110_CONFIG_LED_H
|
|
|
|
#include <regs/regs.h>
|
|
|
|
namespace Ion {
|
|
namespace Device {
|
|
namespace LED {
|
|
namespace Config {
|
|
|
|
using namespace Regs;
|
|
|
|
static constexpr int RedChannel = 1;
|
|
static constexpr int GreenChannel = 2;
|
|
static constexpr int BlueChannel = 3;
|
|
|
|
constexpr static AFGPIOPin RGBPins[] = {
|
|
AFGPIOPin(GPIOB, 4, GPIO::AFR::AlternateFunction::AF2, GPIO::PUPDR::Pull::None, GPIO::OSPEEDR::OutputSpeed::Low), // RED
|
|
AFGPIOPin(GPIOB, 5, GPIO::AFR::AlternateFunction::AF2, GPIO::PUPDR::Pull::None, GPIO::OSPEEDR::OutputSpeed::Low), // GREEN
|
|
AFGPIOPin(GPIOB, 0, GPIO::AFR::AlternateFunction::AF2, GPIO::PUPDR::Pull::None, GPIO::OSPEEDR::OutputSpeed::Low) // BLUE
|
|
};
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#endif
|