blob: be8e5980b21668abab82168727c71deece168e6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#include <stdio.h>
#include "pico/stdlib.h"
#include "pico/cyw43_arch.h"
#include "bsp/board_api.h"
#include "tusb.h"
const uint LED_PIN = 25;
int btstack_main(int argc, const char * argv[]);
int main()
{
if (cyw43_arch_init()) {
printf("failed to initialise cyw43_arch\n");
return -1;
}
cyw43_arch_gpio_put(CYW43_WL_GPIO_LED_PIN, 1);
board_init();
tuh_init(BOARD_TUH_RHPORT);
btstack_main(0, NULL);
printf("Init done\n");
while(1)
{
tuh_task();
}
}
|