Elimination of unused argument warnings.

This commit is contained in:
Jared Boone
2012-10-10 16:13:37 -07:00
parent c02bf358d1
commit 8a54e09e15
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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();