Add SPIv1, use cfg_attr to pick correct impl.

Add IRQ to impl_rng!() to accomodate RNG vs HASH_RNG split.
This commit is contained in:
Bob McWhirter
2021-05-13 14:28:53 -04:00
parent 07db3ed7c1
commit 9e93a0999f
299 changed files with 14196 additions and 8867 deletions

View File

@ -113,7 +113,10 @@ for chip in chips.values():
f.write(f'impl_usart_pin!({name}, CkPin, {pin}, {func});')
if block_mod == 'rng':
f.write(f'impl_rng!({name});')
if 'RNG' in chip['interrupts']:
f.write(f'impl_rng!({name}, RNG);')
else:
f.write(f'impl_rng!({name}, HASH_RNG);')
if block_mod == 'spi':
clock = peri['clock']