Remove more inline warnings
This commit is contained in:
parent
86bdea292a
commit
2660730b52
|
@ -106,7 +106,7 @@ void detachInterrupt(uint8 pin);
|
|||
*
|
||||
* @see noInterrupts()
|
||||
*/
|
||||
static __always_inline void interrupts() {
|
||||
static inline void interrupts() {
|
||||
nvic_globalirq_enable();
|
||||
}
|
||||
|
||||
|
@ -120,7 +120,7 @@ static __always_inline void interrupts() {
|
|||
*
|
||||
* @see interrupts()
|
||||
*/
|
||||
static __always_inline void noInterrupts() {
|
||||
static inline void noInterrupts() {
|
||||
nvic_globalirq_disable();
|
||||
}
|
||||
|
||||
|
|
|
@ -72,9 +72,15 @@ void USBSerial::begin(void) {
|
|||
//Roger Clark. Two new begin functions has been added so that normal Arduino Sketches that use Serial.begin(xxx) will compile.
|
||||
void USBSerial::begin(unsigned long ignoreBaud)
|
||||
{
|
||||
volatile unsigned long removeCompilerWarningsIgnoreBaud=ignoreBaud;
|
||||
ignoreBaud=removeCompilerWarningsIgnoreBaud;
|
||||
}
|
||||
void USBSerial::begin(unsigned long ignoreBaud, uint8_t ignore)
|
||||
{
|
||||
volatile unsigned long removeCompilerWarningsIgnoreBaud=ignoreBaud;
|
||||
volatile uint8_t removeCompilerWarningsIgnore=ignore;
|
||||
ignoreBaud=removeCompilerWarningsIgnoreBaud;
|
||||
ignore=removeCompilerWarningsIgnore;
|
||||
}
|
||||
|
||||
void USBSerial::end(void) {
|
||||
|
|
|
@ -109,14 +109,14 @@ void nvic_sys_reset();
|
|||
/**
|
||||
* Enables interrupts and configurable fault handlers (clear PRIMASK).
|
||||
*/
|
||||
static __always_inline void nvic_globalirq_enable() {
|
||||
static inline void nvic_globalirq_enable() {
|
||||
asm volatile("cpsie i");
|
||||
}
|
||||
|
||||
/**
|
||||
* Disable interrupts and configurable fault handlers (set PRIMASK).
|
||||
*/
|
||||
static __always_inline void nvic_globalirq_disable() {
|
||||
static inline void nvic_globalirq_disable() {
|
||||
asm volatile("cpsid i");
|
||||
}
|
||||
|
||||
|
|
|
@ -169,7 +169,7 @@ int usb_cdcacm_get_n_data_bits(void); /* bDataBits */
|
|||
|
||||
void usb_cdcacm_set_hooks(unsigned hook_flags, void (*hook)(unsigned, void*));
|
||||
|
||||
static __always_inline void usb_cdcacm_remove_hooks(unsigned hook_flags) {
|
||||
static inline void usb_cdcacm_remove_hooks(unsigned hook_flags) {
|
||||
usb_cdcacm_set_hooks(hook_flags, 0);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue