1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

nrf51822: Suppress unused argument warnings

This commit is contained in:
René Kijewski 2014-11-24 16:14:39 +01:00
parent 7d7002305d
commit f258c3e7ac
4 changed files with 18 additions and 0 deletions

View File

@ -32,6 +32,7 @@ void (*timeout_handler)(int);
void hwtimer_arch_init(void (*handler)(int), uint32_t fcpu)
{
(void) fcpu;
timeout_handler = handler;
timer_init(HW_TIMER, 1, &irq_handler);
}

View File

@ -27,6 +27,7 @@ void lpm_arch_init(void)
enum lpm_mode lpm_arch_set(enum lpm_mode target)
{
(void) target;
/* TODO: needs to be implemented */
return 0;
}

View File

@ -88,6 +88,7 @@ uint32_t rtt_get_counter(void)
void rtt_set_counter(uint32_t counter)
{
(void) counter;
/* not supported for the NRF51822? -> could not find out how to do this */
}

View File

@ -156,6 +156,8 @@ int _getpid(void)
__attribute__ ((weak))
int _kill_r(struct _reent *r, int pid, int sig)
{
(void) pid;
(void) sig;
r->_errno = ESRCH; /* not implemented yet */
return -1;
}
@ -171,6 +173,8 @@ int _kill_r(struct _reent *r, int pid, int sig)
__attribute__ ((weak))
int _kill(int pid, int sig)
{
(void) pid;
(void) sig;
errno = ESRCH; /* not implemented yet */
return -1;
}
@ -186,6 +190,8 @@ int _kill(int pid, int sig)
*/
int _open_r(struct _reent *r, const char *name, int mode)
{
(void) name;
(void) mode;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}
@ -270,6 +276,7 @@ int _write_r(struct _reent *r, int fd, const void *data, unsigned int count)
*/
int _close_r(struct _reent *r, int fd)
{
(void) fd;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}
@ -286,6 +293,9 @@ int _close_r(struct _reent *r, int fd)
*/
_off_t _lseek_r(struct _reent *r, int fd, _off_t pos, int dir)
{
(void) fd;
(void) pos;
(void) dir;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}
@ -301,6 +311,8 @@ _off_t _lseek_r(struct _reent *r, int fd, _off_t pos, int dir)
*/
int _fstat_r(struct _reent *r, int fd, struct stat * st)
{
(void) fd;
(void) st;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}
@ -316,6 +328,8 @@ int _fstat_r(struct _reent *r, int fd, struct stat * st)
*/
int _stat_r(struct _reent *r, char *name, struct stat *st)
{
(void) name;
(void) st;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}
@ -349,6 +363,7 @@ int _isatty_r(struct _reent *r, int fd)
*/
int _unlink_r(struct _reent *r, char* path)
{
(void) path;
r->_errno = ENODEV; /* not implemented yet */
return -1;
}