Adjusted declarations incompatible with C++.

git-svn-id: svn://svn.code.sf.net/p/chibios/svn/trunk@13331 27425a3e-05d8-49a3-a47f-9c15f0e5edd8
This commit is contained in:
Giovanni Di Sirio 2020-02-08 09:14:30 +00:00
parent 0f40d86fc0
commit bfb14516f8
4 changed files with 20 additions and 20 deletions

View File

@ -66,7 +66,7 @@
* @notapi * @notapi
*/ */
static inline void port_timer_start_alarm(systime_t time) { static inline void port_timer_start_alarm(systime_t time) {
extern void stStartAlarm(systime_t time); void stStartAlarm(systime_t time);
stStartAlarm(time); stStartAlarm(time);
} }
@ -77,7 +77,7 @@ static inline void port_timer_start_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline void port_timer_stop_alarm(void) { static inline void port_timer_stop_alarm(void) {
extern void stStopAlarm(void); void stStopAlarm(void);
stStopAlarm(); stStopAlarm();
} }
@ -90,7 +90,7 @@ static inline void port_timer_stop_alarm(void) {
* @notapi * @notapi
*/ */
static inline void port_timer_set_alarm(systime_t time) { static inline void port_timer_set_alarm(systime_t time) {
extern void stSetAlarm(systime_t time); void stSetAlarm(systime_t time);
stSetAlarm(time); stSetAlarm(time);
} }
@ -103,7 +103,7 @@ static inline void port_timer_set_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_time(void) { static inline systime_t port_timer_get_time(void) {
extern systime_t stGetCounter(void); systime_t stGetCounter(void);
return stGetCounter(); return stGetCounter();
} }
@ -116,7 +116,7 @@ static inline systime_t port_timer_get_time(void) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_alarm(void) { static inline systime_t port_timer_get_alarm(void) {
extern systime_t stGetAlarm(void); systime_t stGetAlarm(void);
return stGetAlarm(); return stGetAlarm();
} }

View File

@ -66,7 +66,7 @@
* @notapi * @notapi
*/ */
static inline void port_timer_start_alarm(systime_t time) { static inline void port_timer_start_alarm(systime_t time) {
extern void stStartAlarm(systime_t time); void stStartAlarm(systime_t time);
stStartAlarm(time); stStartAlarm(time);
} }
@ -77,7 +77,7 @@ static inline void port_timer_start_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline void port_timer_stop_alarm(void) { static inline void port_timer_stop_alarm(void) {
extern void stStopAlarm(void); void stStopAlarm(void);
stStopAlarm(); stStopAlarm();
} }
@ -90,7 +90,7 @@ static inline void port_timer_stop_alarm(void) {
* @notapi * @notapi
*/ */
static inline void port_timer_set_alarm(systime_t time) { static inline void port_timer_set_alarm(systime_t time) {
extern void stSetAlarm(systime_t time); void stSetAlarm(systime_t time);
stSetAlarm(time); stSetAlarm(time);
} }
@ -103,7 +103,7 @@ static inline void port_timer_set_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_time(void) { static inline systime_t port_timer_get_time(void) {
extern systime_t stGetCounter(void); systime_t stGetCounter(void);
return stGetCounter(); return stGetCounter();
} }
@ -116,7 +116,7 @@ static inline systime_t port_timer_get_time(void) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_alarm(void) { static inline systime_t port_timer_get_alarm(void) {
extern systime_t stGetAlarm(void); systime_t stGetAlarm(void);
return stGetAlarm(); return stGetAlarm();
} }

View File

@ -66,7 +66,7 @@
* @notapi * @notapi
*/ */
static inline void port_timer_start_alarm(systime_t time) { static inline void port_timer_start_alarm(systime_t time) {
extern void stStartAlarm(systime_t time); void stStartAlarm(systime_t time);
stStartAlarm(time); stStartAlarm(time);
} }
@ -77,7 +77,7 @@ static inline void port_timer_start_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline void port_timer_stop_alarm(void) { static inline void port_timer_stop_alarm(void) {
extern void stStopAlarm(void); void stStopAlarm(void);
stStopAlarm(); stStopAlarm();
} }
@ -90,7 +90,7 @@ static inline void port_timer_stop_alarm(void) {
* @notapi * @notapi
*/ */
static inline void port_timer_set_alarm(systime_t time) { static inline void port_timer_set_alarm(systime_t time) {
extern void stSetAlarm(systime_t time); void stSetAlarm(systime_t time);
stSetAlarm(time); stSetAlarm(time);
} }
@ -103,7 +103,7 @@ static inline void port_timer_set_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_time(void) { static inline systime_t port_timer_get_time(void) {
extern systime_t stGetCounter(void); systime_t stGetCounter(void);
return stGetCounter(); return stGetCounter();
} }
@ -116,7 +116,7 @@ static inline systime_t port_timer_get_time(void) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_alarm(void) { static inline systime_t port_timer_get_alarm(void) {
extern systime_t stGetAlarm(void); systime_t stGetAlarm(void);
return stGetAlarm(); return stGetAlarm();
} }

View File

@ -66,7 +66,7 @@
* @notapi * @notapi
*/ */
static inline void port_timer_start_alarm(systime_t time) { static inline void port_timer_start_alarm(systime_t time) {
extern void stStartAlarm(systime_t time); void stStartAlarm(systime_t time);
stStartAlarm(time); stStartAlarm(time);
} }
@ -77,7 +77,7 @@ static inline void port_timer_start_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline void port_timer_stop_alarm(void) { static inline void port_timer_stop_alarm(void) {
extern void stStopAlarm(void); void stStopAlarm(void);
stStopAlarm(); stStopAlarm();
} }
@ -90,7 +90,7 @@ static inline void port_timer_stop_alarm(void) {
* @notapi * @notapi
*/ */
static inline void port_timer_set_alarm(systime_t time) { static inline void port_timer_set_alarm(systime_t time) {
extern void stSetAlarm(systime_t time); void stSetAlarm(systime_t time);
stSetAlarm(time); stSetAlarm(time);
} }
@ -103,7 +103,7 @@ static inline void port_timer_set_alarm(systime_t time) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_time(void) { static inline systime_t port_timer_get_time(void) {
extern systime_t stGetCounter(void); systime_t stGetCounter(void);
return stGetCounter(); return stGetCounter();
} }
@ -116,7 +116,7 @@ static inline systime_t port_timer_get_time(void) {
* @notapi * @notapi
*/ */
static inline systime_t port_timer_get_alarm(void) { static inline systime_t port_timer_get_alarm(void) {
extern systime_t stGetAlarm(void); systime_t stGetAlarm(void);
return stGetAlarm(); return stGetAlarm();
} }