mirror of https://github.com/ARMmbed/mbed-os.git
Merge pull request #4471 from c1728p9/workshop_rebase_4042
[Silicon Labs] Fix compile warnings and ticker test failurepull/4478/head^2
commit
c136c1330f
|
@ -37,9 +37,9 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
typedef struct {
|
||||
PinName pin:8;
|
||||
PinMode mode:6;
|
||||
PinDirection dir:2;
|
||||
PinName pin;
|
||||
PinMode mode;
|
||||
PinDirection dir;
|
||||
} gpio_t;
|
||||
|
||||
#if DEVICE_ANALOGIN
|
||||
|
@ -85,9 +85,9 @@ struct pwmout_s {
|
|||
|
||||
#if DEVICE_INTERRUPTIN
|
||||
struct gpio_irq_s {
|
||||
PinName pin:8; // Pin number 4 least significant bits, port number 4 most significant bits
|
||||
uint32_t risingEdge:1;
|
||||
uint32_t fallingEdge:1;
|
||||
PinName pin;
|
||||
uint8_t risingEdge;
|
||||
uint8_t fallingEdge;
|
||||
};
|
||||
#endif
|
||||
|
||||
|
|
|
@ -95,7 +95,6 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
|
|||
inline void lp_ticker_disable_interrupt()
|
||||
{
|
||||
RTC_IntDisable(RTC_IF_COMP0);
|
||||
lp_ticker_free();
|
||||
}
|
||||
|
||||
inline void lp_ticker_clear_interrupt()
|
||||
|
@ -164,7 +163,6 @@ void lp_ticker_set_interrupt(timestamp_t timestamp)
|
|||
inline void lp_ticker_disable_interrupt()
|
||||
{
|
||||
RTCC_IntDisable(RTCC_IF_CC0);
|
||||
lp_ticker_free();
|
||||
}
|
||||
|
||||
inline void lp_ticker_clear_interrupt()
|
||||
|
|
Loading…
Reference in New Issue