changes type bc of name clashes

This commit is contained in:
Eyck-Alexander Jentzsch 2024-04-15 12:17:01 +02:00
parent a45fee1f7e
commit 71c7fd6981
1 changed files with 7 additions and 9 deletions

View File

@ -1,21 +1,19 @@
#ifndef _BSP_TIMER_H
#define _BSP_TIMER_H
#include <stdint.h>
#include "gen/Apb3Timer.h"
#include <stdint.h>
#define timer_t apb3timer_t
inline void prescaler_init(timer_t* reg, uint16_t value){
set_timer_prescaler(reg, value);
inline void prescaler_init(apb3timer_t *reg, uint16_t value) {
set_timer_prescaler(reg, value);
}
inline void timer_t0__init(timer_t *reg){
set_timer_t0_overflow(reg, 0xffffffff);
inline void timer_t0__init(apb3timer_t *reg) {
set_timer_t0_overflow(reg, 0xffffffff);
}
inline void timer_t1__init(timer_t *reg){
set_timer_t1_overflow(reg, 0xffffffff);
inline void timer_t1__init(apb3timer_t *reg) {
set_timer_t1_overflow(reg, 0xffffffff);
}
#endif /* _BSP_TIMER_H */