summaryrefslogtreecommitdiff
path: root/include/ultra64/motor.h
blob: 6fa7170183946a232435026ae0c1404654d10bd3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#ifndef ULTRA64_MOTOR_H
#define ULTRA64_MOTOR_H

#include "pfs.h"

#define MOTOR_START 1
#define MOTOR_STOP  0

#define osMotorStart(x) __osMotorAccess((x), MOTOR_START)
#define osMotorStop(x)  __osMotorAccess((x), MOTOR_STOP)

s32 __osMotorAccess(OSPfs* pfs, s32 vibrate);
s32 osMotorInit(OSMesgQueue* ctrlrqueue, OSPfs* pfs, s32 channel);

#endif