// Platform setup ------------------------------------------------------------------------------------ #pragma once // We define a more generic symbol, in case more Platform_Name boards based on different lines are supported // Base rate for critical task timing #define HAL_FRACTIONAL_SEC 100.0F // Analog read and write #ifndef HAL_VCC #define HAL_VCC 3.3F #endif #ifndef ANALOG_READ_RANGE #define ANALOG_READ_RANGE 1023 #else #error "Configuration (Config.h): ANALOG_READ_RANGE can't be changed on this platform" #endif #ifndef ANALOG_WRITE_RANGE #define ANALOG_WRITE_RANGE 255 #else #error "Configuration (Config.h): ANALOG_WRITE_RANGE can't be changed on this platform" #endif // Lower limit (fastest) step rate in uS for this platform (in SQW mode) and width of step pulse #ifndef HAL_MAXRATE_LOWER_LIMIT #define HAL_MAXRATE_LOWER_LIMIT 60 #endif #ifndef HAL_PULSE_WIDTH #define HAL_PULSE_WIDTH 10000 // in ns, estimated #endif // New symbol for the default I2C port ------------------------------------------------------------- #include #ifndef HAL_WIRE #define HAL_WIRE Wire #endif #ifndef HAL_WIRE_CLOCK #define HAL_WIRE_CLOCK 100000 #endif // Non-volatile storage ---------------------------------------------------------------------------- #if NV_DRIVER == NV_DEFAULT #undef NV_DRIVER #define NV_DRIVER NV_EEPROM #endif //-------------------------------------------------------------------------------------------------- // Internal MCU temperature (in degrees C) #define HAL_TEMP() ( NAN ) //-------------------------------------------------------------------------------------------------- // General purpose initialize for HAL //--------------------------------------------------------------------------------------------------- // Misc. includes to support this processor's operation