altos: Compute "real" RSSI value in radio code as needed
authorKeith Packard <keithp@keithp.com>
Tue, 30 Apr 2013 06:20:25 +0000 (23:20 -0700)
committerKeith Packard <keithp@keithp.com>
Wed, 8 May 2013 03:07:54 +0000 (20:07 -0700)
commiteb0e1720be2aa4fb6729ceada09c18947bfee2bc
tree77bfbad77fa2d2f653c9bf6814b7d63607672a77
parent949700f276b80b4eb28f15b5559714f430f227f1
altos: Compute "real" RSSI value in radio code as needed

Instead of dragging around the weird CC1111 RSSI values, just compute
a dBm value in a signed 8-bit integer, ao_radio_rssi. Use that
everywhere we need RSSI internally. We leave the weird CC1111 value in
the packet reply as that's what the host expects.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/cc1111/ao_radio.c
src/core/ao.h
src/core/ao_packet.h
src/core/ao_radio_cmac.c
src/drivers/ao_cc1120.c
src/drivers/ao_packet.c
src/drivers/ao_packet_master.c