add ra2a1 ek
also make some other changes
This commit is contained in:
@@ -38,9 +38,7 @@
|
||||
#if ESP_IDF_VERSION_MAJOR > 4
|
||||
#include "esp_private/periph_ctrl.h"
|
||||
#else
|
||||
|
||||
#include "driver/periph_ctrl.h"
|
||||
|
||||
#endif
|
||||
|
||||
// Note; current code use UART0 can cause device to reset while monitoring
|
||||
@@ -48,18 +46,13 @@
|
||||
#define UART_ID UART_NUM_0
|
||||
|
||||
#ifdef NEOPIXEL_PIN
|
||||
|
||||
#include "led_strip.h"
|
||||
|
||||
static led_strip_t* strip;
|
||||
#endif
|
||||
|
||||
#if CFG_TUH_ENABLED && CFG_TUH_MAX3421
|
||||
|
||||
#include "driver/spi_master.h"
|
||||
|
||||
static void max3421_init(void);
|
||||
|
||||
#endif
|
||||
|
||||
static void configure_pins(usb_hal_context_t* usb);
|
||||
@@ -152,7 +145,10 @@ static void configure_pins(usb_hal_context_t* usb) {
|
||||
}
|
||||
}
|
||||
|
||||
// Turn LED on or off
|
||||
//--------------------------------------------------------------------+
|
||||
// Board porting API
|
||||
//--------------------------------------------------------------------+
|
||||
|
||||
void board_led_write(bool state) {
|
||||
#ifdef NEOPIXEL_PIN
|
||||
strip->set_pixel(strip, 0, (state ? 0x88 : 0x00), 0x00, 0x00);
|
||||
|
Reference in New Issue
Block a user