Fewer channel traits, more cfg to make the system work

This commit is contained in:
Dion Dokter
2021-10-26 09:45:29 +02:00
committed by Dario Nieuwenhuis
parent 4d3341dbb9
commit c63d747209
12 changed files with 335 additions and 312 deletions

View File

@ -167,28 +167,28 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_04, ANALOGINPUT2);
impl_saadc_input!(P0_05, ANALOGINPUT3);

View File

@ -172,38 +172,38 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_02, ANALOGINPUT0);
impl_saadc_input!(P0_03, ANALOGINPUT1);

View File

@ -173,38 +173,38 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_02, ANALOGINPUT0);
impl_saadc_input!(P0_03, ANALOGINPUT1);

View File

@ -168,38 +168,38 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
pub mod irqs {
use crate::pac::Interrupt as InterruptEnum;

View File

@ -190,38 +190,38 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_02, ANALOGINPUT0);
impl_saadc_input!(P0_03, ANALOGINPUT1);

View File

@ -226,38 +226,38 @@ impl_pin!(P1_13, 1, 13);
impl_pin!(P1_14, 1, 14);
impl_pin!(P1_15, 1, 15);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_02, ANALOGINPUT0);
impl_saadc_input!(P0_03, ANALOGINPUT1);

View File

@ -231,38 +231,38 @@ impl_pin!(P1_13, 1, 13);
impl_pin!(P1_14, 1, 14);
impl_pin!(P1_15, 1, 15);
impl_ppi_channel!(PPI_CH0, 0, true, 1, 2);
impl_ppi_channel!(PPI_CH1, 1, true, 1, 2);
impl_ppi_channel!(PPI_CH2, 2, true, 1, 2);
impl_ppi_channel!(PPI_CH3, 3, true, 1, 2);
impl_ppi_channel!(PPI_CH4, 4, true, 1, 2);
impl_ppi_channel!(PPI_CH5, 5, true, 1, 2);
impl_ppi_channel!(PPI_CH6, 6, true, 1, 2);
impl_ppi_channel!(PPI_CH7, 7, true, 1, 2);
impl_ppi_channel!(PPI_CH8, 8, true, 1, 2);
impl_ppi_channel!(PPI_CH9, 9, true, 1, 2);
impl_ppi_channel!(PPI_CH10, 10, true, 1, 2);
impl_ppi_channel!(PPI_CH11, 11, true, 1, 2);
impl_ppi_channel!(PPI_CH12, 12, true, 1, 2);
impl_ppi_channel!(PPI_CH13, 13, true, 1, 2);
impl_ppi_channel!(PPI_CH14, 14, true, 1, 2);
impl_ppi_channel!(PPI_CH15, 15, true, 1, 2);
impl_ppi_channel!(PPI_CH16, 16, true, 1, 2);
impl_ppi_channel!(PPI_CH17, 17, true, 1, 2);
impl_ppi_channel!(PPI_CH18, 18, true, 1, 2);
impl_ppi_channel!(PPI_CH19, 19, true, 1, 2);
impl_ppi_channel!(PPI_CH20, 20, false, 0, 1);
impl_ppi_channel!(PPI_CH21, 21, false, 0, 1);
impl_ppi_channel!(PPI_CH22, 22, false, 0, 1);
impl_ppi_channel!(PPI_CH23, 23, false, 0, 1);
impl_ppi_channel!(PPI_CH24, 24, false, 0, 1);
impl_ppi_channel!(PPI_CH25, 25, false, 0, 1);
impl_ppi_channel!(PPI_CH26, 26, false, 0, 1);
impl_ppi_channel!(PPI_CH27, 27, false, 0, 1);
impl_ppi_channel!(PPI_CH28, 28, false, 0, 1);
impl_ppi_channel!(PPI_CH29, 29, false, 0, 1);
impl_ppi_channel!(PPI_CH30, 30, false, 0, 1);
impl_ppi_channel!(PPI_CH31, 31, false, 0, 1);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_ppi_channel!(PPI_CH16, 16 => configurable);
impl_ppi_channel!(PPI_CH17, 17 => configurable);
impl_ppi_channel!(PPI_CH18, 18 => configurable);
impl_ppi_channel!(PPI_CH19, 19 => configurable);
impl_ppi_channel!(PPI_CH20, 20 => static);
impl_ppi_channel!(PPI_CH21, 21 => static);
impl_ppi_channel!(PPI_CH22, 22 => static);
impl_ppi_channel!(PPI_CH23, 23 => static);
impl_ppi_channel!(PPI_CH24, 24 => static);
impl_ppi_channel!(PPI_CH25, 25 => static);
impl_ppi_channel!(PPI_CH26, 26 => static);
impl_ppi_channel!(PPI_CH27, 27 => static);
impl_ppi_channel!(PPI_CH28, 28 => static);
impl_ppi_channel!(PPI_CH29, 29 => static);
impl_ppi_channel!(PPI_CH30, 30 => static);
impl_ppi_channel!(PPI_CH31, 31 => static);
impl_saadc_input!(P0_02, ANALOGINPUT0);
impl_saadc_input!(P0_03, ANALOGINPUT1);

View File

@ -184,22 +184,22 @@ impl_pin!(P0_29, 0, 29);
impl_pin!(P0_30, 0, 30);
impl_pin!(P0_31, 0, 31);
impl_ppi_channel!(PPI_CH0, 0, true, many, many);
impl_ppi_channel!(PPI_CH1, 1, true, many, many);
impl_ppi_channel!(PPI_CH2, 2, true, many, many);
impl_ppi_channel!(PPI_CH3, 3, true, many, many);
impl_ppi_channel!(PPI_CH4, 4, true, many, many);
impl_ppi_channel!(PPI_CH5, 5, true, many, many);
impl_ppi_channel!(PPI_CH6, 6, true, many, many);
impl_ppi_channel!(PPI_CH7, 7, true, many, many);
impl_ppi_channel!(PPI_CH8, 8, true, many, many);
impl_ppi_channel!(PPI_CH9, 9, true, many, many);
impl_ppi_channel!(PPI_CH10, 10, true, many, many);
impl_ppi_channel!(PPI_CH11, 11, true, many, many);
impl_ppi_channel!(PPI_CH12, 12, true, many, many);
impl_ppi_channel!(PPI_CH13, 13, true, many, many);
impl_ppi_channel!(PPI_CH14, 14, true, many, many);
impl_ppi_channel!(PPI_CH15, 15, true, many, many);
impl_ppi_channel!(PPI_CH0, 0 => configurable);
impl_ppi_channel!(PPI_CH1, 1 => configurable);
impl_ppi_channel!(PPI_CH2, 2 => configurable);
impl_ppi_channel!(PPI_CH3, 3 => configurable);
impl_ppi_channel!(PPI_CH4, 4 => configurable);
impl_ppi_channel!(PPI_CH5, 5 => configurable);
impl_ppi_channel!(PPI_CH6, 6 => configurable);
impl_ppi_channel!(PPI_CH7, 7 => configurable);
impl_ppi_channel!(PPI_CH8, 8 => configurable);
impl_ppi_channel!(PPI_CH9, 9 => configurable);
impl_ppi_channel!(PPI_CH10, 10 => configurable);
impl_ppi_channel!(PPI_CH11, 11 => configurable);
impl_ppi_channel!(PPI_CH12, 12 => configurable);
impl_ppi_channel!(PPI_CH13, 13 => configurable);
impl_ppi_channel!(PPI_CH14, 14 => configurable);
impl_ppi_channel!(PPI_CH15, 15 => configurable);
impl_saadc_input!(P0_13, ANALOGINPUT0);
impl_saadc_input!(P0_14, ANALOGINPUT1);