Skip to content

Commit bef54e0

Browse files
committed
mb9bf566k added analog_numbers to all analog pins
1 parent 1e7c8b5 commit bef54e0

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

targets/chip/mb9bf566k/io/pins.hpp

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
184184

185185
// bit number in port
186186
constexpr static uint32_t number = 2;
187+
188+
// bit number in port for the analog selection
189+
constexpr static uint32_t analog_number = 0;
187190
};
188191

189192
struct p28 {
@@ -192,6 +195,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
192195

193196
// bit number in port
194197
constexpr static uint32_t number = 3;
198+
199+
// bit number in port for the analog selection
200+
constexpr static uint32_t analog_number = 1;
195201
};
196202

197203
struct p29 {
@@ -200,6 +206,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
200206

201207
// bit number in port
202208
constexpr static uint32_t number = 0;
209+
210+
// bit number in port for the analog selection
211+
constexpr static uint32_t analog_number = 2;
203212
};
204213

205214
struct p30 {
@@ -224,6 +233,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
224233

225234
// bit number in port
226235
constexpr static uint32_t number = 1;
236+
237+
// bit number in port for the analog selection
238+
constexpr static uint32_t analog_number = 3;
227239
};
228240

229241
struct p35 {
@@ -232,6 +244,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
232244

233245
// bit number in port
234246
constexpr static uint32_t number = 2;
247+
248+
// bit number in port for the analog selection
249+
constexpr static uint32_t analog_number = 4;
235250
};
236251

237252
struct p36 {
@@ -240,6 +255,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
240255

241256
// bit number in port
242257
constexpr static uint32_t number = 3;
258+
259+
// bit number in port for the analog selection
260+
constexpr static uint32_t analog_number = 5;
243261
};
244262

245263
struct p37 {
@@ -288,6 +306,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
288306

289307
// bit number in port
290308
constexpr static uint32_t number = 6;
309+
310+
// bit number in port for the analog selection
311+
constexpr static uint32_t analog_number = 9;
291312
};
292313

293314
struct p43 {
@@ -296,6 +317,9 @@ namespace klib::mb9bf566k::pins::package::lqfp_48 {
296317

297318
// bit number in port
298319
constexpr static uint32_t number = 1;
320+
321+
// bit number in port for the analog selection
322+
constexpr static uint32_t analog_number = 14;
299323
};
300324

301325
struct p44 {

targets/core/cypress/mb9bf560l/port.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ namespace klib::core::mb9bf560l::io::detail::pins {
3939
static_assert(
4040
!std::is_same_v<Periph, io::detail::alternate::analog> ||
4141
(std::is_same_v<Periph, io::detail::alternate::analog> && has_analog),
42-
"Pin does not support analog"
42+
"Pin does not support analog mode"
4343
);
4444

4545
// always disable analog mode if we are not switching to analog mode

0 commit comments

Comments
 (0)