Skip to content

Commit

Permalink
Export macro_XXX_DEV macros (I2C_DEV)
Browse files Browse the repository at this point in the history
Merges: #17
  • Loading branch information
chrysn authored Feb 14, 2023
2 parents 8397c2a + 8e98049 commit 3496769
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,16 @@ fn main() {
// several nightly features (const_ptr_offset, const_mut_refs).
false,
),
// These are bound to the signature already in periph_init.
("I2C_DEV", "i2c_t", Some("unsigned num"), false),
("SPI_DEV", "spi_t", Some("unsigned num"), false),
// No good source on why this sould have a fixed signature, but at this point it's a
// pattern.
("UART_DEV", "uart_t", Some("unsigned num"), false),
("PWM_DEV", "pwm_t", Some("unsigned num"), false),
("ADC_DEV", "adc_t", Some("unsigned num"), false),
("TIMER_DEV", "timer_t", Some("unsigned num"), false),
("QDEC_DEV", "qdec_t", Some("unsigned num"), false),
];
let mut macro_functions: Vec<_> = macro_functions
.iter()
Expand Down

0 comments on commit 3496769

Please # to comment.