File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 */
2121
2222#include "delay.h"
23- #include "hackrf_core.h"
2423#include "leds.h"
24+ #include "pins.h"
2525#include "platform_detect.h"
2626#include "power.h"
2727
2828int main (void )
2929{
3030 detect_hardware_platform ();
31- pin_setup ();
31+ pins_setup ();
3232
3333#ifndef PRALINE
3434 /* enable 1V8 power supply so that the 1V8 LED lights up */
Original file line number Diff line number Diff line change 2121 * Boston, MA 02110-1301, USA.
2222 */
2323
24- #include "hackrf_core .h"
24+ #include "pins .h"
2525
2626#include <libopencm3/lpc43xx/scu.h>
2727#include <libopencm3/lpc43xx/ssp.h>
4242 #include "fpga.h"
4343#endif
4444
45- void pin_shutdown (void )
45+ void pins_shutdown (void )
4646{
4747 const platform_gpio_t * gpio = platform_gpio ();
4848 const platform_scu_t * scu = platform_scu ();
@@ -182,8 +182,8 @@ void pin_shutdown(void)
182182 SCU_SFSI2C0 = SCU_I2C0_NOMINAL ;
183183}
184184
185- /* Run after pin_shutdown () and prior to enabling power supplies. */
186- void pin_setup (void )
185+ /* Run after pins_shutdown () and prior to enabling power supplies. */
186+ void pins_setup (void )
187187{
188188 const platform_gpio_t * gpio = platform_gpio ();
189189 const platform_scu_t * scu = platform_scu ();
Original file line number Diff line number Diff line change 2727extern "C" {
2828#endif
2929
30- void pin_shutdown (void );
31- void pin_setup (void );
30+ void pins_shutdown (void );
31+ void pins_setup (void );
3232
3333#ifdef __cplusplus
3434}
Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ macro(DeclareTargets)
172172 ${PATH_HACKRF_FIRMWARE_COMMON} /power.c
173173 ${PATH_HACKRF_FIRMWARE_COMMON} /cpu_clock.c
174174 ${PATH_HACKRF_FIRMWARE_COMMON} /delay.c
175- ${PATH_HACKRF_FIRMWARE_COMMON} /hackrf_core .c
175+ ${PATH_HACKRF_FIRMWARE_COMMON} /pins .c
176176 ${PATH_HACKRF_FIRMWARE_COMMON} /leds.c
177177 ${PATH_HACKRF_FIRMWARE_COMMON} /sgpio.c
178178 ${PATH_HACKRF_FIRMWARE_COMMON} /rf_path.c
Original file line number Diff line number Diff line change 3434#include <da7219.h>
3535#include <delay.h>
3636#include <drivers.h>
37- #include <hackrf_core.h>
3837#include <hackrf_ui.h>
3938#include <leds.h>
4039#include <operacake.h>
40+ #include <pins.h>
4141#include <platform_detect.h>
4242#include <power.h>
4343#include <radio.h>
@@ -313,12 +313,12 @@ int main(void)
313313 selftest .report .pass = true;
314314
315315 detect_hardware_platform ();
316- pin_shutdown ();
316+ pins_shutdown ();
317317#ifndef RAD1O
318318 clock_gen_shutdown ();
319319#endif
320320 delay_us_at_mhz (10000 , 96 );
321- pin_setup ();
321+ pins_setup ();
322322#ifndef PRALINE
323323 enable_1v8_power ();
324324 #ifndef RAD1O
Original file line number Diff line number Diff line change 2929
3030#include <clock_gen.h>
3131#include <firmware_info.h>
32- #include <hackrf_core .h>
32+ #include <pins .h>
3333#include <platform_detect.h>
3434#include <rom_iap.h>
3535#include <usb_queue.h>
@@ -130,7 +130,7 @@ usb_request_status_t usb_vendor_request_reset(
130130 const usb_transfer_stage_t stage )
131131{
132132 if (stage == USB_TRANSFER_STAGE_SETUP ) {
133- pin_shutdown ();
133+ pins_shutdown ();
134134 clock_gen_shutdown ();
135135#ifdef HACKRF_ONE
136136 /*
You can’t perform that action at this time.
0 commit comments