Add support for Sensor Watch Pro (#412)

* Sensor Watch Pro board definition

* Disable hot-plugging on SWCLK

* Add rainbow test

* Move interrupt mapping to board config

* New color definition for Pro boards in makefile
This commit is contained in:
Jose Castillo
2024-07-06 11:07:02 -04:00
committed by GitHub
parent 89a2af92ef
commit d98d14d236
15 changed files with 282 additions and 38 deletions

View File

@@ -37,6 +37,7 @@
#include <string.h>
#include <utils.h>
#include <utils_assert.h>
#include "pins.h"
#ifdef __MINGW32__
#define ffs __builtin_ffs
@@ -62,16 +63,6 @@ static int ffs(int v)
#define INVALID_EXTINT_NUMBER 0xFF
#define INVALID_PIN_NUMBER 0xFFFFFFFF
#ifndef CONFIG_EIC_EXTINT_MAP
/** Dummy mapping to pass compiling. */
#define CONFIG_EIC_EXTINT_MAP \
{ \
INVALID_EXTINT_NUMBER, INVALID_PIN_NUMBER \
}
#endif
#define EXT_IRQ_AMOUNT 6
/**
* \brief EXTINTx and pin number map
*/