Skip to content

Commit abe0003

Browse files
ficetoficeto
authored andcommitted
removing timer aliases
1 parent 41d370f commit abe0003

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

hardware/esp8266com/esp8266/cores/esp8266/core_esp8266_timer.c

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,32 @@ void timer1_isr_handler(void *para){
3030
if(timer1_user_cb) timer1_user_cb();
3131
}
3232

33-
extern void __timer1_isr_init(){
33+
void timer1_isr_init(){
3434
ETS_FRC_TIMER1_INTR_ATTACH(timer1_isr_handler, NULL);
3535
}
3636

37-
extern void __timer1_attachInterrupt(void (*userFunc)(void)) {
37+
void timer1_attachInterrupt(void (*userFunc)(void)) {
3838
timer1_user_cb = userFunc;
3939
ETS_FRC1_INTR_ENABLE();
4040
}
4141

42-
extern void __timer1_detachInterrupt() {
42+
void timer1_detachInterrupt() {
4343
timer1_user_cb = 0;
4444
TEIE &= ~TEIE1;//edge int disable
4545
ETS_FRC1_INTR_DISABLE();
4646
}
4747

48-
extern void __timer1_enable(uint8_t divider, uint8_t int_type, uint8_t reload){
48+
void timer1_enable(uint8_t divider, uint8_t int_type, uint8_t reload){
4949
T1C = (1 << TCTE) | ((divider & 3) << TCPD) | ((int_type & 1) << TCIT) | ((reload & 1) << TCAR);
5050
T1I = 0;
5151
}
5252

53-
extern void __timer1_write(uint32_t ticks){
53+
void timer1_write(uint32_t ticks){
5454
T1L = ((ticks) & 0x7FFFFF);
5555
if((T1C & (1 << TCIT)) == 0) TEIE |= TEIE1;//edge int enable
5656
}
5757

58-
extern void __timer1_disable(){
58+
void timer1_disable(){
5959
T1C = 0;
6060
T1I = 0;
6161
}
62-
63-
extern void timer1_isr_init(void) __attribute__ ((weak, alias("__timer1_isr_init")));
64-
extern void timer1_detachInterrupt(void) __attribute__ ((weak, alias("__timer1_detachInterrupt")));
65-
extern void timer1_disable(void) __attribute__ ((weak, alias("__timer1_disable")));
66-
extern void timer1_attachInterrupt(void (*userFunc)(void)) __attribute__ ((weak, alias("__timer1_attachInterrupt")));
67-
extern void timer1_write(uint32_t ticks) __attribute__ ((weak, alias("__timer1_write")));
68-
extern void timer1_enable(uint8_t divider, uint8_t int_type, uint8_t reload) __attribute__ ((weak, alias("__timer1_enable")));

0 commit comments

Comments
 (0)