mirror of
https://github.com/eddyem/STM8_samples.git
synced 2026-03-22 01:31:00 +03:00
added 4-digit src
This commit is contained in:
@@ -74,8 +74,6 @@ int main() {
|
||||
// Configure pins
|
||||
CFG_GCR |= 1; // disable SWIM
|
||||
LED_init();
|
||||
// configure PD3[TIM2_CH2] as input for zacwire
|
||||
PD_CR1 |= GPIO_PIN3; // weak pullup
|
||||
CCR |= 0x28; // make shure that we are on level 3 - disabled SW priority
|
||||
// Configure Timer1
|
||||
// prescaler = f_{in}/f_{tim1} - 1
|
||||
|
||||
Reference in New Issue
Block a user