mirror of
https://github.com/whowechina/iidx_pico.git
synced 2025-02-17 11:08:37 +01:00
Give up BLE and fix UF2 firmware
This commit is contained in:
parent
3afccb19c4
commit
e44a8a0a2c
Binary file not shown.
@ -6,13 +6,12 @@ function(make_firmware board board_def)
|
||||
add_executable(${board}
|
||||
main.c buttons.c rgb.c save.c config.c setup.c
|
||||
turntable.c tt_rainbow.c tt_blade.c
|
||||
usb_descriptors.c ble.c)
|
||||
usb_descriptors.c)
|
||||
target_compile_definitions(${board} PUBLIC ${board_def})
|
||||
pico_enable_stdio_usb(${board} 1)
|
||||
pico_enable_stdio_uart(${board} 0)
|
||||
|
||||
pico_generate_pio_header(${board} ${CMAKE_CURRENT_LIST_DIR}/ws2812.pio)
|
||||
pico_btstack_make_gatt_header(${board} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/gamepad.gatt)
|
||||
|
||||
target_compile_options(${board} PRIVATE -Wfatal-errors -O3)
|
||||
target_include_directories(${board} PRIVATE ${CMAKE_CURRENT_LIST_DIR})
|
||||
@ -23,8 +22,7 @@ function(make_firmware board board_def)
|
||||
target_link_libraries(${board} PRIVATE
|
||||
pico_multicore pico_stdlib hardware_pio hardware_pwm hardware_flash
|
||||
hardware_adc hardware_i2c hardware_watchdog
|
||||
tinyusb_device tinyusb_board
|
||||
pico_cyw43_arch_none pico_btstack_ble pico_btstack_cyw43)
|
||||
tinyusb_device tinyusb_board)
|
||||
|
||||
pico_add_extra_outputs(${board})
|
||||
|
||||
|
@ -1,12 +0,0 @@
|
||||
/*
|
||||
* Bluetooth Support
|
||||
* WHowe <github.com/whowechina>
|
||||
*/
|
||||
|
||||
#include "ble.h"
|
||||
#include "gamepad.h"
|
||||
|
||||
void init_bluetooth()
|
||||
{
|
||||
|
||||
}
|
@ -1,11 +0,0 @@
|
||||
/*
|
||||
* Bluetooth Support
|
||||
* WHowe <github.com/whowechina>
|
||||
*/
|
||||
|
||||
#ifndef BLE_H
|
||||
#define BLE_H
|
||||
|
||||
void init_bluetooth();
|
||||
|
||||
#endif
|
@ -1,11 +0,0 @@
|
||||
PRIMARY_SERVICE, GAP_SERVICE
|
||||
CHARACTERISTIC, GAP_DEVICE_NAME, READ, "HID Gamepad"
|
||||
|
||||
// add Device ID Service
|
||||
#import <device_information_service.gatt>
|
||||
|
||||
// add HID Service
|
||||
#import <hids.gatt>
|
||||
|
||||
PRIMARY_SERVICE, GATT_SERVICE
|
||||
CHARACTERISTIC, GATT_DATABASE_HASH, READ,
|
@ -15,8 +15,6 @@
|
||||
#include "tusb.h"
|
||||
#include "usb_descriptors.h"
|
||||
|
||||
#include "ble.h"
|
||||
|
||||
#include "setup.h"
|
||||
|
||||
#include "buttons.h"
|
||||
@ -148,7 +146,6 @@ void init()
|
||||
board_init();
|
||||
tusb_init();
|
||||
|
||||
init_bluetooth();
|
||||
button_init();
|
||||
tt_rainbow_init();
|
||||
tt_blade_init();
|
||||
|
Loading…
x
Reference in New Issue
Block a user