From 4aa4d251e2f9f05bbb6a959bf3bb96abfd99a807 Mon Sep 17 00:00:00 2001 From: NicoHood Date: Fri, 27 Jan 2017 12:48:13 +0100 Subject: [PATCH] Fix compiling of assembler functions --- src/Gamecube_N64.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Gamecube_N64.h b/src/Gamecube_N64.h index 22f6a51..8bd5967 100644 --- a/src/Gamecube_N64.h +++ b/src/Gamecube_N64.h @@ -76,13 +76,15 @@ extern "C" { // functions to communicate with the gc/n64 controller uint8_t gc_n64_send_get(const uint8_t pin, uint8_t* command, const uint8_t commandLen, - uint8_t* report, const uint8_t reportLen); + uint8_t* report, const uint8_t reportLen) __attribute__((noinline)); void gc_n64_send(const uint8_t* buff, uint8_t len, - volatile uint8_t* modePort, volatile uint8_t* outPort, uint8_t bitMask); + volatile uint8_t* modePort, volatile uint8_t* outPort, uint8_t bitMask) + __attribute__((noinline)); uint8_t gc_n64_get(uint8_t* buff, uint8_t len, - volatile uint8_t* modePort, volatile uint8_t* outPort, volatile uint8_t * inPort, uint8_t bitMask); + volatile uint8_t* modePort, volatile uint8_t* outPort, volatile uint8_t * inPort, uint8_t bitMask) + __attribute__((noinline)); #ifdef __cplusplus }