migrate
This commit is contained in:
17
fw/stm8s/test1/defaults.h
Normal file
17
fw/stm8s/test1/defaults.h
Normal file
@@ -0,0 +1,17 @@
|
||||
#ifndef DEFAULTS_H
|
||||
#define DEFAULTS_H
|
||||
|
||||
#define LED0_PORT PB
|
||||
#define LED0_PIN PIN5
|
||||
|
||||
#define SSR0_PORT PD
|
||||
#define SSR0_PIN PIN3
|
||||
#define SSR1_PORT PA
|
||||
#define SSR1_PIN PIN3
|
||||
|
||||
#define PWM_PSCR 2
|
||||
#define PWM_CLK (F_CPU / 4)
|
||||
#define PWM_FREQ 240
|
||||
#define PWM_ARR (PWM_CLK / PWM_FREQ) - 1
|
||||
|
||||
#endif /* DEFAULTS_H */
|
||||
Reference in New Issue
Block a user