Elimination of unused argument warnings.
This commit is contained in:
@ -34,6 +34,7 @@ void hard_fault_handler(void) {
|
|||||||
|
|
||||||
|
|
||||||
void hard_fault_handler_c(uint32_t* args) {
|
void hard_fault_handler_c(uint32_t* args) {
|
||||||
|
(void)args;
|
||||||
// args[0-7]: r0, r1, r2, r3, r12, lr, pc, psr
|
// args[0-7]: r0, r1, r2, r3, r12, lr, pc, psr
|
||||||
// Other interesting registers to examine:
|
// Other interesting registers to examine:
|
||||||
// CFSR: Configurable Fault Status Register
|
// CFSR: Configurable Fault Status Register
|
||||||
|
@ -379,6 +379,8 @@ void rffc5071_tx(uint8_t gpo) {
|
|||||||
gpo |= SWITCHCTRL_NO_TX_AMP_PWR;
|
gpo |= SWITCHCTRL_NO_TX_AMP_PWR;
|
||||||
gpo |= (SWITCHCTRL_TX | SWITCHCTRL_NO_RX_AMP_PWR);
|
gpo |= (SWITCHCTRL_TX | SWITCHCTRL_NO_RX_AMP_PWR);
|
||||||
rffc5071_set_gpo(gpo);
|
rffc5071_set_gpo(gpo);
|
||||||
|
#else
|
||||||
|
(void)gpo;
|
||||||
#endif
|
#endif
|
||||||
rffc5071_regs_commit();
|
rffc5071_regs_commit();
|
||||||
|
|
||||||
@ -403,6 +405,8 @@ void rffc5071_rx(uint8_t gpo) {
|
|||||||
gpo |= SWITCHCTRL_NO_RX_AMP_PWR;
|
gpo |= SWITCHCTRL_NO_RX_AMP_PWR;
|
||||||
gpo |= SWITCHCTRL_NO_TX_AMP_PWR;
|
gpo |= SWITCHCTRL_NO_TX_AMP_PWR;
|
||||||
rffc5071_set_gpo(gpo);
|
rffc5071_set_gpo(gpo);
|
||||||
|
#else
|
||||||
|
(void)gpo;
|
||||||
#endif
|
#endif
|
||||||
rffc5071_regs_commit();
|
rffc5071_regs_commit();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user