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:
@ -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']
|
||||
|
Reference in New Issue
Block a user