|
|
@ -28,15 +28,15 @@ machine_float_t machine_sqrt(machine_float_t x); |
|
|
|
//#define STM32F4DISC
|
|
|
|
|
|
|
|
#if defined (PYBOARD) |
|
|
|
#define __HAVE_SWITCH (1) |
|
|
|
#define __HAVE_SDCARD (1) |
|
|
|
#define __HAVE_MMA7660 (1) |
|
|
|
#define __HAVE_LIS3DSH (0) |
|
|
|
#define __ENABLE_RNG (1) |
|
|
|
#define __ENABLE_RTC (1) |
|
|
|
#define __ENABLE_TIMER (1) |
|
|
|
#define __ENABLE_SERVO (1) |
|
|
|
#define __ENABLE_AUDIO (0) |
|
|
|
#define HAVE_SWITCH (1) |
|
|
|
#define HAVE_SDCARD (1) |
|
|
|
#define HAVE_MMA7660 (1) |
|
|
|
#define HAVE_LIS3DSH (0) |
|
|
|
#define ENABLE_RNG (1) |
|
|
|
#define ENABLE_RTC (1) |
|
|
|
#define ENABLE_TIMER (1) |
|
|
|
#define ENABLE_SERVO (1) |
|
|
|
#define ENABLE_AUDIO (0) |
|
|
|
|
|
|
|
#define USRSW_PORT (GPIOA) |
|
|
|
#define USRSW_PIN (GPIO_Pin_13) |
|
|
@ -47,15 +47,15 @@ machine_float_t machine_sqrt(machine_float_t x); |
|
|
|
#define USRSW_EXTI_IRQN (EXTI15_10_IRQn) |
|
|
|
#define USRSW_EXTI_EDGE (EXTI_Trigger_Rising) |
|
|
|
#elif defined (PYBOARD4) |
|
|
|
#define __HAVE_SWITCH (1) |
|
|
|
#define __HAVE_SDCARD (1) |
|
|
|
#define __HAVE_MMA7660 (1) |
|
|
|
#define __HAVE_LIS3DSH (0) |
|
|
|
#define __ENABLE_RNG (1) |
|
|
|
#define __ENABLE_RTC (1) |
|
|
|
#define __ENABLE_TIMER (1) |
|
|
|
#define __ENABLE_SERVO (1) |
|
|
|
#define __ENABLE_AUDIO (0) |
|
|
|
#define HAVE_SWITCH (1) |
|
|
|
#define HAVE_SDCARD (1) |
|
|
|
#define HAVE_MMA7660 (1) |
|
|
|
#define HAVE_LIS3DSH (0) |
|
|
|
#define ENABLE_RNG (1) |
|
|
|
#define ENABLE_RTC (1) |
|
|
|
#define ENABLE_TIMER (1) |
|
|
|
#define ENABLE_SERVO (1) |
|
|
|
#define ENABLE_AUDIO (0) |
|
|
|
|
|
|
|
#define USRSW_PORT (GPIOB) |
|
|
|
#define USRSW_PIN (GPIO_Pin_3) |
|
|
@ -66,15 +66,15 @@ machine_float_t machine_sqrt(machine_float_t x); |
|
|
|
#define USRSW_EXTI_IRQN (EXTI15_10_IRQn) |
|
|
|
#define USRSW_EXTI_EDGE (EXTI_Trigger_Rising) |
|
|
|
#elif defined (STM32F4DISC) |
|
|
|
#define __HAVE_SWITCH (1) |
|
|
|
#define __HAVE_SDCARD (0) |
|
|
|
#define __HAVE_MMA7660 (0) |
|
|
|
#define __HAVE_LIS3DSH (1) |
|
|
|
#define __ENABLE_RNG (1) |
|
|
|
#define __ENABLE_RTC (1) |
|
|
|
#define __ENABLE_TIMER (1) |
|
|
|
#define __ENABLE_SERVO (0) |
|
|
|
#define __ENABLE_AUDIO (0) |
|
|
|
#define HAVE_SWITCH (1) |
|
|
|
#define HAVE_SDCARD (0) |
|
|
|
#define HAVE_MMA7660 (0) |
|
|
|
#define HAVE_LIS3DSH (1) |
|
|
|
#define ENABLE_RNG (1) |
|
|
|
#define ENABLE_RTC (1) |
|
|
|
#define ENABLE_TIMER (1) |
|
|
|
#define ENABLE_SERVO (0) |
|
|
|
#define ENABLE_AUDIO (0) |
|
|
|
|
|
|
|
#define USRSW_PORT (GPIOA) |
|
|
|
#define USRSW_PIN (GPIO_Pin_0) |
|
|
|